Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old January 26th 10, 11:18 AM posted to microsoft.public.excel.worksheet.functions
Sam Sam is offline
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
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.

  #2   Report Post  
Old January 26th 10, 11:22 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Mar 2009
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   Report Post  
Old January 26th 10, 12:13 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
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   Report Post  
Old January 26th 10, 12:50 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Mar 2009
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.



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
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 03:49 PM.

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017