Matching part of a web address in another cell

alanyip

New Member
Joined
Apr 8, 2012
Messages
3
I Require assistance with the following problem:

In column A I have a lengthy data set of complete web addresses circa 50,000 lines long all with the domain somewhere in the middle eg:

http://movie.lagri.com.cn/alexa_2010-02-25/432
http://wopin.com.cn/rank/domainlist.cn_4.html
http://film.wopin.com.cn/alexa_2011-04-25/292
http://www.domains5.cn/view/21229.html

In column B I have the list of about 1000 domain names themselves eg:

wikipedia.com
wopin.com.cn
yahoo.com

I would like Column C to somehow show if "wopin.com.cn" was found as part of the data in any cell in Column A by saying "True" or similar.


I think that some sort of VLOOKUP is required but as the data in Column B will not exactly match any cell in Column A it always returns a False.

Can someone please help me out with the formula I need in Column C?

I am using Excel 2008 for Mac.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi Andrew,

Great! That is much closer than I had got. But what I need is to search for the contents of B1 anywhere in A1:A50000.

If it is found just once (even there may be hundreds of cells containing the string) I need it to say "True" in C1.

Thanks.
 
Upvote 0
I Require assistance with the following problem:

In column A I have a lengthy data set of complete web addresses circa 50,000 lines long all with the domain somewhere in the middle eg:

http://movie.lagri.com.cn/alexa_2010-02-25/432
http://wopin.com.cn/rank/domainlist.cn_4.html
http://film.wopin.com.cn/alexa_2011-04-25/292
http://www.domains5.cn/view/21229.html

In column B I have the list of about 1000 domain names themselves eg:

wikipedia.com
wopin.com.cn
yahoo.com

I would like Column C to somehow show if "wopin.com.cn" was found as part of the data in any cell in Column A by saying "True" or similar.


I think that some sort of VLOOKUP is required but as the data in Column B will not exactly match any cell in Column A it always returns a False.

Can someone please help me out with the formula I need in Column C?

I am using Excel 2008 for Mac.

Try...

C1, copy down:

=ISNUMBER(MATCH("*"&B1&"*",A:A,0))
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

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