IF(VLOOKUP) not working

Sandy01UK

New Member
Joined
Apr 16, 2013
Messages
19
Hi


Looking for some help/pointers. I'm trying to combine an IF and a VLOOKUP and it doesn't seem to work!

If cell B2("LIVE MASTER TAB") contains the word/text "WEB" lookup the value in Cell E2("LIVE MASTER TAB) against Columns U:W("PRICING DATA TAB) and return the value in column W.

The formula I'm using is

=IF(B2="WEB",0,VLOOKUP(M2,'Pricing Data'!U:W,3,FALSE))

If the value in B2 Is not "WEB" I need to return a blank.

Thanks in advance

Sandy
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try

=IF(B2="WEB",IFERROR(VLOOKUP(M2,'Pricing Data'!U:W,3,FALSE),"No price"),"")
 
Upvote 0

Forum statistics

Threads
1,224,213
Messages
6,177,167
Members
452,763
Latest member
WH12TTY

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