Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default common characters in seperate strings

I have two columns of names. I would like to identify similar names
between the two columns for a possible match. For example column A
row 13 = "Epogen"; column B row 15 "Epogen / 100 mg". I would like
to indicate next to b 15 that it is a possible match to column a row
13. I tried an array formula like =IF(COUNTIF($a$8:$a
$15,b15)0,+b15,"") but that only works if there is an exact match.
Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default common characters in seperate strings

Are there/ will there ever be empty cells in your range A8:A15 ?

Biff

wrote in message
oups.com...
I have two columns of names. I would like to identify similar names
between the two columns for a possible match. For example column A
row 13 = "Epogen"; column B row 15 "Epogen / 100 mg". I would like
to indicate next to b 15 that it is a possible match to column a row
13. I tried an array formula like =IF(COUNTIF($a$8:$a
$15,b15)0,+b15,"") but that only works if there is an exact match.
Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default common characters in seperate strings

On Feb 26, 4:36 pm, "T. Valko" wrote:
Are there/ will there ever be empty cells in your range A8:A15 ?

Biff

wrote in message

oups.com...



I have two columns of names. I would like to identify similar names
between the two columns for a possible match. For example column A
row 13 = "Epogen"; column B row 15 "Epogen / 100 mg". I would like
to indicate next to b 15 that it is a possible match to column a row
13. I tried an array formula like =IF(COUNTIF($a$8:$a
$15,b15)0,+b15,"") but that only works if there is an exact match.
Any ideas?- Hide quoted text -


- Show quoted text -


The stated range will be a continous list of pharmaceuticals. (no
blank cells)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default common characters in seperate strings

Ok....

Based on the logic of your formula you want the value in column B returned.
Try this:

=IF(SUMPRODUCT(--(ISNUMBER(SEARCH(A$8:A$15,B15)))),B15,"")

The reason I asked about empty cells is because an empty cell evaluates as
0. So, an empty cell would match with Epogen / 100 mg since that string
contains a 0.

Biff

wrote in message
oups.com...
On Feb 26, 4:36 pm, "T. Valko" wrote:
Are there/ will there ever be empty cells in your range A8:A15 ?

Biff

wrote in message

oups.com...



I have two columns of names. I would like to identify similar names
between the two columns for a possible match. For example column A
row 13 = "Epogen"; column B row 15 "Epogen / 100 mg". I would like
to indicate next to b 15 that it is a possible match to column a row
13. I tried an array formula like =IF(COUNTIF($a$8:$a
$15,b15)0,+b15,"") but that only works if there is an exact match.
Any ideas?- Hide quoted text -


- Show quoted text -


The stated range will be a continous list of pharmaceuticals. (no
blank cells)



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default common characters in seperate strings

On Feb 27, 3:08 pm, "T. Valko" wrote:
Ok....

Based on the logic of your formula you want the value in column B returned.
Try this:

=IF(SUMPRODUCT(--(ISNUMBER(SEARCH(A$8:A$15,B15)))),B15,"")

The reason I asked about empty cells is because an empty cell evaluates as
0. So, an empty cell would match with Epogen / 100 mg since that string
contains a 0.

Biff

wrote in message

oups.com...



On Feb 26, 4:36 pm, "T. Valko" wrote:
Are there/ will there ever be empty cells in your range A8:A15 ?


Biff


wrote in message


groups.com...


I have two columns of names. I would like to identify similar names
between the two columns for a possible match. For example column A
row 13 = "Epogen"; column B row 15 "Epogen / 100 mg". I would like
to indicate next to b 15 that it is a possible match to column a row
13. I tried an array formula like =IF(COUNTIF($a$8:$a
$15,b15)0,+b15,"") but that only works if there is an exact match.
Any ideas?- Hide quoted text -


- Show quoted text -


The stated range will be a continous list of pharmaceuticals. (no
blank cells)- Hide quoted text -


- Show quoted text -


That works great, one subtle twist, what if in Column b i come across
an abreviation of Epogen or "Epo", could I somehow expand on the
formula to catch these possibilities?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default common characters in seperate strings

You might be able to use something like this:

=IF(SUMPRODUCT(--(ISNUMBER(SEARCH(LEFT(A$8:A$15,3),B15)))),B15,"")

This compares the first 3 letters of column A with the entry in B15.

Biff

wrote in message
ups.com...
On Feb 27, 3:08 pm, "T. Valko" wrote:
Ok....

Based on the logic of your formula you want the value in column B
returned.
Try this:

=IF(SUMPRODUCT(--(ISNUMBER(SEARCH(A$8:A$15,B15)))),B15,"")

The reason I asked about empty cells is because an empty cell evaluates
as
0. So, an empty cell would match with Epogen / 100 mg since that string
contains a 0.

Biff

wrote in message

oups.com...



On Feb 26, 4:36 pm, "T. Valko" wrote:
Are there/ will there ever be empty cells in your range A8:A15 ?


Biff


wrote in message


groups.com...


I have two columns of names. I would like to identify similar names
between the two columns for a possible match. For example column A
row 13 = "Epogen"; column B row 15 "Epogen / 100 mg". I would like
to indicate next to b 15 that it is a possible match to column a row
13. I tried an array formula like =IF(COUNTIF($a$8:$a
$15,b15)0,+b15,"") but that only works if there is an exact match.
Any ideas?- Hide quoted text -


- Show quoted text -


The stated range will be a continous list of pharmaceuticals. (no
blank cells)- Hide quoted text -


- Show quoted text -


That works great, one subtle twist, what if in Column b i come across
an abreviation of Epogen or "Epo", could I somehow expand on the
formula to catch these possibilities?



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
Lookup strings with ~ and ^ characters kmhnhsuk Excel Worksheet Functions 6 May 25th 06 08:30 PM
Replacing characters in numeric text strings and SUMming rkd Excel Discussion (Misc queries) 7 April 20th 06 12:25 PM
characters and strings elicamacho Excel Discussion (Misc queries) 4 March 20th 06 06:17 PM
Numbers from seperate worksheet to common sheet S.C Excel Worksheet Functions 0 January 14th 05 02:47 AM
Count unique alpha numeric "characters" in a common cell WIM4246 Excel Worksheet Functions 4 December 11th 04 02:27 AM


All times are GMT +1. The time now is 02:37 AM.

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"