Need an Excel Formula to find columns with certain key words?

ltn123

New Member
Joined
May 22, 2015
Messages
5
Lets say Column A is a list of URLs. Column B is a list of keywords.

I need a formula where if any of the keywords in Column B is found within the url structure in A it spits out the URL is column C.

Thanks
 
With all due respect, I think there is some misunderstanding about what you are looking for.
Scott's formula verifies for each keyword if it can be found anywhere in column A.
My formula verifies for each URL if it contains any of the keywords in column B.

So if I'm right, with your settings, type in C2:

Code:
=IF(OR(NOT(ISERROR(SEARCH(B:B|A2))))|A2|"")

Finish typing not with ENTER but with CTRL-SHIFT-ENTER which makes it an array formula, surrounded by curley brackets (don't type these yourself):

Code:
{=IF(OR(NOT(ISERROR(SEARCH(B:B|A2))))|A2|"")}

Copy down and it really should work. i.e. if I'm right with respect to what you're looking for.
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Wouldn't this accomplish the same thing?

=IF(ISNUMBER(SEARCH(B:B,A3)),A3,"")

Confirm with CTRL-SHIFT-ENTER
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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