Skip to main content
 

How to find and highlight duplicate names that match both first and last names in Excel?

Author: Sun Last Modified: 2024-11-06

In this tutorial, we'll walk you through two effective methods for identifying and highlighting duplicate names in Excel. You'll learn how to find duplicates when first and last names are in separate columns - either within a single range or across two different ranges. Whether you're working with a small dataset or comparing multiple lists, these techniques will help you quickly spot and manage duplicate entries.

Case 1: Find duplicate names in a range where the first name and last name are in separate columns
A screenshot of two columns in Excel showing first name and last name data

Case 2: Find duplicate names in two ranges where the first name and last name are in separate columns
A screenshot of two ranges in Excel showing first and last names for comparison


Case 1: Find duplicate names in a range where the first name and last name are in separate columns

If the first name and last name are 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.
A screenshot of the formula being entered in Excel to combine first and last names

Now you can find the duplicate names.

Method 1: Using Conditional Formatting

Select the combined names, then click Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.
A screenshot of Excel's Conditional Formatting menu with 'Duplicate Values' highlighted

Select the format you want to highlight duplicates from the values with list.
A screenshot showing the 'Duplicate Values' formatting options in Excel's Conditional Formatting menu

Click OK.
A screenshot of highlighted duplicate names

Method 2: Using Select Duplicate & Unique Cells tool

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Enhanced with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

Select the combined names, click Kutools > Select > Select Duplicate & Unique Cells.
A screenshot of the Kutools 'Select Duplicate & Unique Cells' option in Excel

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.
A screenshot of the 'Select Duplicate & Unique Cells' dialog box with color options selected

Click Ok, dialog pops out to remind you the number of duplicates. Click OK to close it.
A screenshot of the reminder message after selecting duplicates using Kutools

Duplicates (Except 1st One) All duplicates (Including 1st One)
A screenshot showing duplicate names excluding 1st occurence highlighted A screenshot showing duplicate names including 1st occurence highlighted

Case 2: Find duplicate names in two ranges where the first name and last name are in separate columns

If you want to compare two ranges as below screenshot shown, you can do as these
A screenshot of two ranges in Excel showing first and last names for comparison

Method 1: Using 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.
A screenshot showing Excel with blank cells indicating duplicate values in two ranges

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

Method 2: Using Select Same & Different Cells tool

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Enhanced with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

Click Kutools > Select > Select Same & Different Cells.
A screenshot of the Kutools 'Select Same & Different Cells' menu in Excel

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.
A screenshot of the 'Select Same & Different Cells' dialog box with range options selected

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.
A screenshot showing highlighted duplicate values in Excel after using Kutools

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, 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!