finding duplicate names in 2 sheets

markman235

New Member
Joined
May 10, 2011
Messages
46
Hi everyone,

I have 2 separate sheet. Sheet 1 has Last Name, First Name in columns A & B respectively.

On Sheet 2 I have First Name, Last Name in columns A & B respectively.

Is there any easy way to check for duplicate first and last names between the two sheets?


Thanks!

Mark
 

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.
One way would be to concatenate the names in a helper column on each sheet then compare the two helper columns. Something like this:

On Sheet1 with say Last name in col A and First name in col B, then in col C:
Code:
=B1&"|"&A1
and copy down.
On Sheet2 (reversal)
Code:
=A1&"|"&B1
and copy down.
Then on both sheets in col D:
Code:
=IF(ISNA(MATCH(C1,Sheet2!$C$1:$C$100,0)),"NM","")
change the range to cover all your names and change the sheet name to the sheet you want to check for a match.
Names that have no match will have "NM" in col D while those that are matched will have nothing in col D.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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