Match similar names

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

A1 B1
Frank Mark Allen Frank Mark Allen Frank Mark

I want to compare two cells. A1 contain full name , B1 contain short name .
searching for formula to do a minimum match.
 
This might work for you...Try the below formula in cell C1...

=IF(ISNUMBER(SEARCH(B1,A1)),"Probable Match","No match")
 
A1 B1
Frank Mark Allen Frank Mark Allen Frank Mark

I want to compare two cells. A1 contain full name , B1 contain short name .
searching for formula to do a minimum match.

I made the following assumptions:

The short name will have two and only two words

If the two names in the short name exist in the same order in the long name
(but not necessarily adjacent), then there is a match.

=IF(ISNUMBER(FIND(LEFT(B1,FIND(" ",B1)-1),A1)+
FIND(TRIM(MID(B1,FIND(" ",B1),99)),A1,FIND(
LEFT(B1,FIND(" ",B1)-1),A1))),"Match","No Match")

--ron
 
Try the below in cell C1 which will identify the last name from cell B1 and
search in A1 for a match..You can add more conditions depending on your
data...For example check whether the 1st character of both cells are same..

=IF(ISNUMBER(SEARCH(TRIM(RIGHT(SUBSTITUTE(B1," ",
REPT(" ",255)),255)),A1)),"Match","No match")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top