Matching up non identical lists of names

gmittar

Board Regular
Joined
Sep 16, 2013
Messages
62
Hi All,

I'm racking my brains for a good solution to a seemingly simple problem. I have two lists of names, one is last, first, and the other is first last.

My problem is that the lists are not consistent. Some of the Last,First have spaces between in the middle, some do not. Some on my First Last list are actually Last First. I feel like this is a classic personnel management issue. When people are relied on to enter employee names, there's rarely consistency in how they do it.

My end goal is to add employee numbers from the Last/First list to the First/Last list.

Does anyone have a good solution to something like this? Example file in the link.

https://sagehospitalityllc.box.com/s/u3uf5mmqtprwrtjwtrrdrz44xta8lapc
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi,

I was unsure exactly how your Actual data is laid out, and how you want the results...
You had both Columns of names all lined up in your sample, so I threw in a few that's not in "order":


Book1
ABCD
1First/LastLast/FirstEE #
2James Redigan10001Redigan,James10001
3Donald DuckNO MATCHMouse,Mickey33333
4John ,Doe99999Rogers , Roy77777
5Charles Ford10002Ford,Charles10002
6William Blakely10003Blakely, William10003
7Richard Freeman10004Freeman,Richard10004
8Scott, James10005James,Scott10005
9Chuck Darford10006Darford , Chuck10006
10Curt Froseth10007Froseth,Curt10007
11Ben Padilla10008Padilla, Ben10008
12Gonzales, Juan10009Juan,Gonzales10009
13Frank Fink10010Fink,Frank10010
14Roy Rogers77777Doe, John99999
Sheet1
Cell Formulas
RangeFormula
B2=IFERROR(LOOKUP(2,1/SEARCH(SUBSTITUTE(SUBSTITUTE(A2,",","")," ",""),SUBSTITUTE(SUBSTITUTE(C$2:C$14&C$2:C$14,",","")," ","")),D$2:D$14),"NO MATCH")


B2 formula copied down.
 
Upvote 0
Thank you!

That gets me most of the way. The last place that it seems to break is when there is a middle initial on the list with the employee numbers.

So, if John Doe was listed at Doe,John A it would return No Match.

Can you think of a way around that? Otherwise, this has already cut my work significantly.

Thanks again!
 
Upvote 0
This updated formula will handle Middle initials in the Last/First name column (Column C) that are Not present in First/Last name column (Column A)
Please note, if there are more than one person with the Same First and Last name, but Different Middle initial, you will get incorrect results.


Book1
ABCD
1First/LastLast/FirstEE #
2James Redigan10001Redigan,James10001
3Donald DuckNO MATCHMouse,Mickey33333
4John ,Doe99999Rogers , Roy77777
5Charles Ford10002Ford,Charles10002
6William Blakely10003Blakely, William10003
7Richard Freeman10004Freeman,Richard10004
8Scott, James10005James,Scott10005
9Chuck Darford10006Darford , Chuck10006
10Curt Froseth10007Froseth,Curt10007
11Ben Padilla10008Padilla, Ben10008
12Gonzales, Juan10009Juan,Gonzales10009
13Frank Fink10010Fink,Frank10010
14Roy Rogers77777Doe, John99999
15Jack Doe55555Doe, Jane A22222
16Jane Doe22222Doe Jack A55555
Sheet1
Cell Formulas
RangeFormula
B2=IFERROR(LOOKUP(2,1/SEARCH(SUBSTITUTE(SUBSTITUTE(A2,",","")," ",""),SUBSTITUTE(LEFT(SUBSTITUTE(TRIM(SUBSTITUTE(C$2:C$16,","," "))," ",REPT(" ",100)),200)&LEFT(SUBSTITUTE(SUBSTITUTE(C$2:C$16,","," ")," ",REPT(" ",100)),100)," ","")),D$2:D$16),"NO MATCH")
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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
Back
Top