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:
[TABLE="class: cms_table, width: 337"]
<tbody>[TR]
[TD]Igorwanna eat
[/TD]
[/TR]
[TR]
[TD]I know Charliewanna Eat
[/TD]
[/TR]
[TR]
[TD]Max killed Johnny[/TD]
[/TR]
[TR]
[TD]Johnny and Max-are friends
[/TD]
[/TR]
[TR]
[TD]U know_Charlie_andJoe drunk a lot of alcohol yesterday
[/TD]
[/TR]
</tbody>[/TABLE]

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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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