Comparing Two Lists

coloradoperkins

New Member
Joined
Mar 11, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I have two very large data lists with names. One list has the names as LastName, FirstName all in one field. The other list has a field for LastName and a field for FirstName. I tried doing a conditional formatting to highlight duplicates, but this did not show up anything, I assume because the first list includes both first and last names. Is there a way to get it to flag partial duplicates so it will catch the last name? I know this would be imperfect but I thought I could use it to start.

These lists are large, list one is 3500 records and list two is about 30,000. Please help! We started going through the lists manually and spent about two hours to just get through the D's.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi,

Can you show some sample data, preferably using XL2BB, or at least in Table format, so helpers can copy for testing.
 
Upvote 0
Welcome to the MrExcel board!

Is this what you mean?

22 03 12.xlsm
ABCD
1NameLast NameFirst name
2Doe, JohnDoeJohnny
3Doe, JaneDerfFred
4Derf, FredSmithSamantha
5Smith, SamDoeJohn
6
Dupe Names
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:D5Expression=MATCH($C2&", "&$D2,$A$2:$A$5,0)textNO
A2:A5Expression=COUNTIFS(C$2:C$5,LEFT(A2,FIND(",",A2)-1),D$2:D$5,REPLACE(A2,1,FIND(" ",A2),""))textNO
 
Upvote 0
Is this what you mean?
If it is, this has a shorter rule for column A

22 03 12.xlsm
ABCD
1NameLast NameFirst name
2Doe, JohnDoeJohnny
3Doe, JaneDerfFred
4Derf, FredSmithSamantha
5Smith, SamDoeJohn
6
Dupe Names (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:D5Expression=MATCH($C2&", "&$D2,$A$2:$A$5,0)textNO
A2:A5Expression=ROWS(FILTER(C$2:C$5,C$2:C$5&", "&D$2:D$5=A2))textNO
 
Upvote 0
Yes, that is what I'm working with. I'm not very experienced with formulas though so your explanation is not very clear to me. I will try to figure it out though, I appreciate your response. I've worked with excel just super-casually for a long time, but have often felt like it "should" be able to do this or that. I need to start trying to work with the formulas.
 
Upvote 0
What I ended up doing was googling how to separate first and last names. Then I used flash fill to separate the first and last names into two columns. Then I was able to compare the last name columns using the find duplicate function. But I am going to start watching some videos about how to use formulas in excel. And I'm sure I will be back with another question at some point! Thank you for your help.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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