Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to find and highlight the duplicate names which both match first name and last name in Excel?

In this article, I talk about how to find the duplicate names which both match first name and last name in two cases.

Case 1 find duplicate names while the first name and last name in separate columns
doc find duplicate names 1

Case 2 compare two ranges and find duplicate names while the first name and last name in separate columns
doc find duplicate names 2


Case 1 find duplicate names while the first name and last name in separate columns

If the first name and last name in separate columns, you need to combine them first, then find the duplicate names.

 In the next column of the first names and last names, type this formula =E2&" "&F2, drag fill handle down to combine all names.
doc find duplicate names 4

Now you can find the duplicate names.

Method 1 Conditional Formatting

Select the combined names, then click Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.
doc find duplicate names 5

Select the format you want to highlight duplicates from the values with list.
doc find duplicate names 6

Click OK.
doc find duplicate names 7

Method 2 Select Duplicate & Unique Cells

Kutools for Excel, with more than 200 handy functions, makes your jobs easier. 

Select the combined names, click Kutools > Select > Select Duplicate & Unique Cells.
doc find duplicate names 8

In the popping dialog, check Duplicates (Except 1 st one), or All duplicates (Including 1st one) as you need, then check Fill backcolor or Fill font color to select a color to highlight the duplicate values. You can check Select entire rows option to select the entire row.
doc find duplicate names 9

Click Ok, dialog pops out to remind you the number of duplicates. Click OK to close it.
doc find duplicate names 10

Duplicates (Except 1st One) All duplicates (Including 1st One)
doc find duplicate names 11 doc find duplicate names 12


Case 2 compare two ranges and find duplicate names while the first name and last name in separate columns

If you want to compare two ranges as below screenshot shown, you can do as these
doc find duplicate names 2

Method 1 Array formula

In Sheet 6, select the cell next to the names, type this formula =IF(ISNUMBER(MATCH(A2&B2,Sheet7!A$2:A$100&Sheet7!B$2:B$100,0)),"","X"), press Shift + Ctrl + Enter keys. Then drag fill handle down to fill the formula to cells.

As below screenshot shown, the blank results indicate duplicate values, X’s are the unique values.
doc find duplicate names 13

Tip: In the formula, A2, B2 is the first name and last name, Sheet7 is the sheet you want to compare to.

Method 2 Select Same & Different Cells

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

Click Kutools > Select > Select Same & Different Cells.
doc find duplicate names 14

In the popping dialog, select the two ranges in the Find values in and According to boxes, check Each row option and Same values option, go to specify the Fill backcolor and Fill font color as you need.
doc find duplicate names 15

Click Ok, a dialog pops out to remind you the number of selected rows, click OK to close it. Now the duplicate names are highlighted.
doc find duplicate names 16

pay attention1Kutools for Excel: The 200+ functions you must have in Excel, you can free download from here


Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.