Search Strings For Text From Glossary

shawnthegrom

New Member
Joined
May 12, 2015
Messages
1
Hi All,

I have thousands of text strings in Column A on Sheet 1 such as "hotels in chicago" and then I have a list of text values in Column A of Sheet 2 that contain possible category matches such as "hotels" or "flights". I'm trying to get Column B in Sheet 1 to give me the category of the text in Column A by searching the cell for a match in Sheet 2.

For example, if Sheet1 - A1 is "hotels in chicago" and Sheet 2 - A1-A100 contains "hotels", then Sheet 1 - Column B should return "hotels". If not, then leave blank.

I've tried all kinds of SEARCH, MATCH, INDEX and VLOOKUP formulas. The best option I have at the moment is to add each value from Sheet 2 - Column A in the formula itself like this:

=IF(OR(ISNUMBER(SEARCH({"hotel","room","marriott","hilton"},A2))),"hotels","")

I'd like to use Sheet 2 for my list of possible matches instead.
Thanks!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

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