How to: Search cell for multiple criteria, enter value in adjacent cell

enlas

New Member
Joined
Jun 10, 2015
Messages
1
Hello,

In column F I have a list of URLS. I want to search each cell in F to see if it contains any one of my keywords. If it does, I want to insert the corresponding keyword in G.

Entering =IF(ISNUMBER(SEARCH("*psychosis*",F2)),"psychosis","") in G2 returns "psychosis", but how do I have it search for all of my keywords and input it's corresponding category in G??

Thank you in advance for any & all help.

URL
http://www.privateurl.com/psychosis
http://www.privateurl.com/cold-flu/best-remedies-stomach-flu
http://www.privateurl.com/allergies/mosquito-bite
http://www.privateurl.com/dextrose
http://www.privateurl.com/tick-bites


KeywordCategory
psychosisPsychosis
cold-fluCold & Flu
allergiesAllergies
tick-bitesTick Bites

<tbody>
</tbody>
 
Last edited:

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Are your keywords always the next word after "http://www.privateurl.com/" and either the last word in the URL or followed by "/"
If so, then the word to be checked can be extracted and compared to a key word list using =match or =lookup
 
Upvote 0

Forum statistics

Threads
1,196,277
Messages
6,014,406
Members
441,818
Latest member
itsfaisalkhalid

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