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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,224,828
Messages
6,181,206
Members
453,022
Latest member
RobertV1609

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