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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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