#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Match function

I basicaly have 2 worksheets and I would like to see if a match is found, if
the name is found in Sheet2
display Found otherwise Display Not Found.
For the most part it seems to work but for some reasons some should be found
but are not....
See below example

Sheet1.Name Results Sheet2.name

ABC'S Found AAA CS
A & B Shop Not Found ABC's CS
Curt Sporting Goods NOt Found ANDY's Place CS
CHUCK'S GUN AND PAWN Found BBB Shop CS
Duke's Not Found CCC's Goods
Dave's Shop Found CHAD's Shop
Don's Not Found Cuck's Gun and Pawn CS

Curt Sporting Goods CS
Dave's Shop CS
Don's


As you can see Don's is an Exact match (as far as I can tell) and it is not
found, Curt Sporting goods is real close and it displays not found. (CS
exists on Sheet2)

The formula that I am using in the results column is as follows:
=IF(SUM(IF(ISNUMBER(MATCH("*"&$B$2:$B$206&"*",Shee t2!$J$2:Sheet2!$J$553,0)),1,0))0,"Found","Not Found")


Any suggestions will be greatly appreciated

Thanks
TSharp
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Match function

Maybe something like this:

On Sheet1...This formula returns "Found" if the value in
B2 is located in Sheet2, cells J2:J553....otherwise, "Not Found":
C2: =IF(COUNTIF(Sheet2!$J$2:$J$553,"*"&B2&"*"),,"Not ")&"Found"

Copy that formula down as far as you need.

Is that something you can work with?
Post back if you have more questions.

Regards,

Ron
Microsoft MVP - Excel

"ToniS" wrote in message
...
I basicaly have 2 worksheets and I would like to see if a match is found,
if
the name is found in Sheet2
display Found otherwise Display Not Found.
For the most part it seems to work but for some reasons some should be
found
but are not....
See below example

Sheet1.Name Results Sheet2.name

ABC'S Found AAA CS
A & B Shop Not Found ABC's CS
Curt Sporting Goods NOt Found ANDY's Place
CS
CHUCK'S GUN AND PAWN Found BBB Shop CS
Duke's Not Found CCC's Goods
Dave's Shop Found CHAD's Shop
Don's Not Found Cuck's Gun and Pawn CS

Curt Sporting Goods CS
Dave's Shop CS
Don's


As you can see Don's is an Exact match (as far as I can tell) and it is
not
found, Curt Sporting goods is real close and it displays not found. (CS
exists on Sheet2)

The formula that I am using in the results column is as follows:
=IF(SUM(IF(ISNUMBER(MATCH("*"&$B$2:$B$206&"*",Shee t2!$J$2:Sheet2!$J$553,0)),1,0))0,"Found","Not
Found")


Any suggestions will be greatly appreciated

Thanks
TSharp


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Match function


Thanks for responding back so quickly, I tried the below formula
C2: =IF(COUNTIF(Sheet2!$J$2:$J$553,"*"&B2&"*"),,"Not ")&"Found"
and I ended up with the same results. Another example of one that failed is

Sheet1
ACE SPORTING GOODS, INC.
sheet2
ACE * SPORTING GOODS INC. CS

To me this should return 'Found' instead of 'Not Found'

Thanks
Tsharp



"Ron Coderre" wrote:

Maybe something like this:

On Sheet1...This formula returns "Found" if the value in
B2 is located in Sheet2, cells J2:J553....otherwise, "Not Found":
C2: =IF(COUNTIF(Sheet2!$J$2:$J$553,"*"&B2&"*"),,"Not ")&"Found"

Copy that formula down as far as you need.

Is that something you can work with?
Post back if you have more questions.

Regards,

Ron
Microsoft MVP - Excel

"ToniS" wrote in message
...
I basicaly have 2 worksheets and I would like to see if a match is found,
if
the name is found in Sheet2
display Found otherwise Display Not Found.
For the most part it seems to work but for some reasons some should be
found
but are not....
See below example

Sheet1.Name Results Sheet2.name

ABC'S Found AAA CS
A & B Shop Not Found ABC's CS
Curt Sporting Goods NOt Found ANDY's Place
CS
CHUCK'S GUN AND PAWN Found BBB Shop CS
Duke's Not Found CCC's Goods
Dave's Shop Found CHAD's Shop
Don's Not Found Cuck's Gun and Pawn CS

Curt Sporting Goods CS
Dave's Shop CS
Don's


As you can see Don's is an Exact match (as far as I can tell) and it is
not
found, Curt Sporting goods is real close and it displays not found. (CS
exists on Sheet2)

The formula that I am using in the results column is as follows:
=IF(SUM(IF(ISNUMBER(MATCH("*"&$B$2:$B$206&"*",Shee t2!$J$2:Sheet2!$J$553,0)),1,0))0,"Found","Not
Found")


Any suggestions will be greatly appreciated

Thanks
TSharp


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Match function

The way you described your situation, the list is on Sheet2
and the items to find are on Sheet1.

If that's true, then the wildcard would need to be in the
Sheet1 list, not the Sheet2 list.

Example:
If the Sheet2 list includes this item:
"ACE's REALLY GOOD SPORTING GOODS, INC. CS"

then the formula I posted will find it using this criteria:
"Sheet1!C2: ACE* SPORTING GOODS INC"

Does that help?.

Regards,

Ron
Microsoft MVP - Excel

"ToniS" wrote in message
...

Thanks for responding back so quickly, I tried the below formula
C2: =IF(COUNTIF(Sheet2!$J$2:$J$553,"*"&B2&"*"),,"Not ")&"Found"
and I ended up with the same results. Another example of one that failed
is

Sheet1
ACE SPORTING GOODS, INC.
sheet2
ACE * SPORTING GOODS INC. CS

To me this should return 'Found' instead of 'Not Found'

Thanks
Tsharp



"Ron Coderre" wrote:

Maybe something like this:

On Sheet1...This formula returns "Found" if the value in
B2 is located in Sheet2, cells J2:J553....otherwise, "Not Found":
C2: =IF(COUNTIF(Sheet2!$J$2:$J$553,"*"&B2&"*"),,"Not ")&"Found"

Copy that formula down as far as you need.

Is that something you can work with?
Post back if you have more questions.

Regards,

Ron
Microsoft MVP - Excel

"ToniS" wrote in message
...
I basicaly have 2 worksheets and I would like to see if a match is
found,
if
the name is found in Sheet2
display Found otherwise Display Not Found.
For the most part it seems to work but for some reasons some should be
found
but are not....
See below example

Sheet1.Name Results Sheet2.name

ABC'S Found AAA CS
A & B Shop Not Found ABC's CS
Curt Sporting Goods NOt Found ANDY's
Place
CS
CHUCK'S GUN AND PAWN Found BBB Shop CS
Duke's Not Found CCC's Goods
Dave's Shop Found CHAD's Shop
Don's Not Found Cuck's Gun and Pawn CS

Curt Sporting Goods CS
Dave's Shop CS
Don's


As you can see Don's is an Exact match (as far as I can tell) and it is
not
found, Curt Sporting goods is real close and it displays not found. (CS
exists on Sheet2)

The formula that I am using in the results column is as follows:
=IF(SUM(IF(ISNUMBER(MATCH("*"&$B$2:$B$206&"*",Shee t2!$J$2:Sheet2!$J$553,0)),1,0))0,"Found","Not
Found")


Any suggestions will be greatly appreciated

Thanks
TSharp


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
how can we get unique values in match function for same match key. Xcel[_2_] Excel Worksheet Functions 11 December 7th 07 08:13 PM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Match as well as does not match array function Vikram Dhemare Excel Discussion (Misc queries) 7 April 25th 06 09:15 AM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM


All times are GMT +1. The time now is 03:15 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"