Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Like match between 2 ranges

Hi,
I'm trying to flag records that CONTAIN any of the strings in another
range. My purpose, in this specific case, is to examine a range of
website URLs and to remove any URLs belonging to particular domains.
For example:

ColumnA: List of URLS
www.sports.cnn.com/basketball.htm
www.aaa.baddomain.com/trouble.htm
www.groups.google.com/excel/
www.nothanksdomain.com
http://www.trouble.dontwantdomain.or...ouble/go/away/

ColumnB: List of domains to suppress
baddomain.com
nogooddomain.net
dontwantdomain.org
nothanksdomain.com

ColumnC: Result
I'm looking for a formulae that identifies if there is a LIKE match
between ColumnA and ColumnB and outputs TRUE/FALSE (or similar).

Thanks
Dean

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

With the list of url's in column B starting in B1. Enter this formula in C1:

=SUMPRODUCT(--(ISNUMBER(SEARCH(B1,A$1:A$5))))

Copy down as needed. Any matches found will return a value greater than 0.
Zero means no matches found.

However, this in and of itself will not "flag" the url's in column A. You
could use conditional formatting to actually "mark" any matches.

Select the url's in column A.
Goto FormatConditional Formatting
Formula is: =OR(ISNUMBER(SEARCH($B$1:$B$4,A1)))
Select a fill color or whatever style you would like.
OK out

Biff

wrote in message
oups.com...
Hi,
I'm trying to flag records that CONTAIN any of the strings in another
range. My purpose, in this specific case, is to examine a range of
website URLs and to remove any URLs belonging to particular domains.
For example:

ColumnA: List of URLS
www.sports.cnn.com/basketball.htm
www.aaa.baddomain.com/trouble.htm
www.groups.google.com/excel/
www.nothanksdomain.com
http://www.trouble.dontwantdomain.or...ouble/go/away/

ColumnB: List of domains to suppress
baddomain.com
nogooddomain.net
dontwantdomain.org
nothanksdomain.com

ColumnC: Result
I'm looking for a formulae that identifies if there is a LIKE match
between ColumnA and ColumnB and outputs TRUE/FALSE (or similar).

Thanks
Dean



  #3   Report Post  
 
Posts: n/a
Default

Hi,
THanks for that. I followed the instructions and all results are coming
up 0. Would you mind checking the formula?

Thanks for your help
Dean

  #4   Report Post  
 
Posts: n/a
Default

Hi,
searching for elements of the forumula you gave I found the following
on the web that is working for me:

=IF(SUMPRODUCT(--(ISNUMBER(SEARCH($A$1:$A$4,B1)))),"Found","Not Found")

Thanks for getting me there!
Dean

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 22nd 05 01:41 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 19th 05 09:27 PM
Match Function arguments Stan Altshuller Excel Worksheet Functions 3 March 11th 05 08:48 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 05:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"