Udf vlookup

VBE313

Well-known Member
Joined
Mar 22, 2019
Messages
686
Office Version
  1. 365
Platform
  1. Windows
I have a table of items that are assigned a fixed cost.
Example:
Item) Name) Price
1) Red Ruby Shirt) $35.22
2) Blue Tuxedo) $47.90

On a separate sheet I have a UserForm with a list box that grabs the table from the other sheet. I would like to sometimes override the fixed price aka “mark it up” for certain occasions (ex: Red Ruby Shirt needs extra stitching). But if I were to produce 1000 units of this item, in my ERP system it is set a fixed cost, I need a UDF that helps the ERP team know that I “marked the price up”

Example:
Item) Name) Price) UDF
1) Red Ruby Shirt) $37.32) “$2.10 higher”
2) Blue Tuxedo) $47.90) “No markup”
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Why do you need a UDF? Could we use standard worksheet formulas like this?
I've done this on a single sheet but it could easily be adapted to two.

Excel Workbook
ABCDEFGH
1ItemNamePriceItemNamePriceMark Up?
21Red Ruby Shirt$35.221Red Ruby Shirt$37.32$2.10 higher
32Blue Tuxedo$47.902Blue Tuxedo$47.90No markup
41Red Ruby Shirt$34.00$1.22 lower
Check Mark Up
 
Upvote 0

Forum statistics

Threads
1,214,387
Messages
6,119,225
Members
448,877
Latest member
gb24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top