![]() |
| 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. |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |