Lookup?

midfieldgeneral11

Active Member
Joined
Feb 11, 2004
Messages
461
Can you help, I have TWO spreadsheet both with a list of names.

I am trying to do a look up table to match the two spreadsheets.

But….

I have a name in the spreadsheet like John L Workington but I may have one named John Workington.

Is there a way to do a look up table to look some of the cell and state that this is a match instead of looking at the whole cell.

Please help Simon
:LOL:
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

midfieldgeneral11

Active Member
Joined
Feb 11, 2004
Messages
461
Sorry i do not know which one to use.

You have 3 Bills matches where there is only 2!

Sorry i do not understand could you give the correct formulae.

So Jack White matches Jack L White

That would be great
 

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,015
Office Version
  1. 365
The 3 in Alan's top post refers to the row number of the match, not the count.

But, the method in Alan's first post will fail if your data has Jack White, Jim White, and Jim Smith, as that case does not allow matching based on first name or last name alone. You'd have to use the "big boys" approach in Alan's second post.

Maybe I am misinterpreting your question though. If all you need to do is strip out middle initials from one post so it matches up with the other, that's MUCH easier.

Where the fuzzy matching is necessary is if one file has Jim Smith and the other has James Smith and they're the same person, you need to perform a fuzzy match (such as Alan's method) as no embedded Excel formula combination can do that.
 

Todd Bardoni

Well-known Member
Joined
Aug 29, 2002
Messages
3,042
Perhaps:-
Book1
ABCDEFGHI
1NAMESTSALESFORMULA1
2JohnLWorkingtonMI$1,200.00WorkingtonNAMESTFORMULA2FORMULA3
3JackLWhiteIN$136.00WhiteJackLWhiteINWhite$136.00
4JackWhiteIN$922.00White
Sheet1


Formula1:- =MID(A2,IF(LEN(A2)-LEN(SUBSTITUTE(A2," ",""))>1,FIND(" ",SUBSTITUTE(A2," ","",1))+2,FIND(" ",A2)+1),LEN(A2))

Formula2:- =MID(F3,IF(LEN(F3)-LEN(SUBSTITUTE(F3," ",""))>1,FIND(" ",SUBSTITUTE(F3," ","",1))+2,FIND(" ",F3)+1),LEN(F3))

Formula3:- =INDEX($C$2:$C$4,MATCH(H3&G3,$D$2:$D$4&$B$2:$B$4,0))
Confirmed with Ctrl/Shift/Enter
 

Forum statistics

Threads
1,140,917
Messages
5,703,168
Members
421,279
Latest member
emzy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top