A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Match similar names



 
 
Thread Tools Display Modes
  #1  
Old January 26th 10, 11:18 AM posted to microsoft.public.excel.worksheet.functions
Sam
external usenet poster
 
Posts: 699
Default 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.
Ads
  #2  
Old January 26th 10, 11:22 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 8,521
Default 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.

  #3  
Old January 26th 10, 12:13 PM posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
external usenet poster
 
Posts: 5,651
Default 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
  #4  
Old January 26th 10, 12:50 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 8,521
Default 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.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INDEX similar names in different rows mariekek5 Excel Discussion (Misc queries) 4 June 25th 09 10:28 AM
similar names - two spreadsheets jtkuehn Excel Worksheet Functions 3 August 28th 08 10:07 PM
Finding the MAX number while considering similar names Ninjapowa Excel Discussion (Misc queries) 3 November 4th 06 05:06 AM
SIMILAR NAMES IN A TABLE Dimitri Kryukov Excel Discussion (Misc queries) 5 June 28th 05 03:27 PM
Combine query to count products with similar names pomalley Excel Worksheet Functions 8 April 22nd 05 02:15 AM


All times are GMT +1. The time now is 05:59 AM.


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