Combining an If Or statement with a Vlookup

RLB1127

New Member
Joined
Sep 14, 2016
Messages
11
I have (2) sheets,
Sheet 1 contains all of my data with Col. B listing types of skincare products.

I have (2) conditions I'm searching for in Col B:

If Col B contains (or equals) "Lotion" I need to look at the brands in Col C, then perform a VLOOKUP which tell assigns a type to the lotion. If the brand isn't listed the result should be "AO HBL".

If Col B contains (or equals) "Cleanser" then look in Column D and give me the Type.

If something else is in Col B, then ignore.

This is the formula I've tried:
=IF(Or($B3="LOTION",VLOOKUP($C3,'SHEET2'!$B$3:$D$19,2,0),"AO HBL"),IF($B3="CLEANSER",D2),<>))

Any assistance appreciated.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Mybe this...
=IF($B3="LOTION",if(iserror(VLOOKUP($C3,'SHEET2'!$B$3:$D$19,2,0)),"AO HBL"),IF($B3="CLEANSER",D2),<>))
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,970
Members
449,095
Latest member
Mr Hughes

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