Find if a text cell contains a string of characters from an array in a different workbook

kpieper876

New Member
Joined
Aug 12, 2011
Messages
13
I've scoured the internet for this answer and have not found a formula that works.

I have a list of domain names/URLs in column A of workbook 1:
jhjh.com
hajfh.co.nz
123.123.12.12

I have a list of domain name extensions in workbook #2:
.com
.co.nz
.net

I want to determine if the cells in column A workbook one contain any of the strings in workbook 2 - note that I need to look at the string, not the entire cell in workbook one. If there is a match, true, if not, false for that cell within workbook one.

It's sort of a reverse array lookup with text. It seems that cross workbook and text is what causes the challenge.

Thanks in advance.
 
It Works! :)
but i forgot one thing, Sheet1 Column A, can be also filled like:
Igorwanna eat
I know Charliewanna Eat
Max killed Johnny
Johnny and Max-are friends
U know_Charlie_andJoe drunk a lot of alcohol yesterday

<tbody>
</tbody>

so i need use wildcard somehow....

if i put
=LOOKUP(9.99999999999999E+307, SEARCH("&"&Sheet2!$A$2:$A$8&"&"," "&A2&" "),Sheet2!$A$2:$A$8)
but it returns zero :(((</pre>
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
It Works! :)
but i forgot one thing, Sheet1 Column A, can be also filled like:


so i need use wildcard somehow....

if i put

but it returns zero :(((

Try without space delimiting...
Rich (BB code):
=LOOKUP(9.99999999999999E+307,SEARCH(Sheet2!$A$2:$A$8,A2),Sheet2!$A$2:$A$8)
 
Upvote 0

Forum statistics

Threads
1,215,256
Messages
6,123,914
Members
449,132
Latest member
Rosie14

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