Lookup within Vlookup - Search more than one cell and use vectors instead of array

sapientsaphead

New Member
Joined
Dec 29, 2008
Messages
4
Hello there!
I have the following sample setup:

Excel | Flickr - Photo Sharing!

(sorry I tried attaching an image several times and it didn't work)

I am trying to find words from column E in either cell A2 or cell B2 (preferably it would search A2 and if it didn't find anything would then search B2), and input the corresponding word in column F as the Product Type. I am encountering two problems:
1. I can't figure out how to tell it to search within both A2 or B2 or better yet, search A2 and if no results then search B2 as an alternative
2. I can't figure out how to do column E and column F vs. E1:E9 and F1:F9

Here's what I have so far:
=VLOOKUP(LOOKUP(2,1/SEARCH($E$1:$E$9,A2),$E$1:$E$9),E:F,2, FALSE)

Any help would be greatly appreciated.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,215,036
Messages
6,122,796
Members
449,095
Latest member
m_smith_solihull

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