ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Match similar names (https://www.excelbanter.com/excel-worksheet-functions/254460-match-similar-names.html)

Sam

Match similar names
 
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.

Jacob Skaria

Match similar names
 
This might work for you...Try the below formula in cell C1...

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

--
Jacob


"Sam" wrote:

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.


Ron Rosenfeld

Match similar names
 
On Tue, 26 Jan 2010 03:18:02 -0800, Sam wrote:

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

Jacob Skaria

Match similar names
 
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")

--
Jacob


"Sam" wrote:

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.



All times are GMT +1. The time now is 11:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com