How to Find Duplicates in Excel (PivotTable + COUNTIFS Tutorial)

Duplicate records can cause serious problems when uploading spreadsheet data into other systems. If you need to find duplicates in Excel, there are several simple tools that can help you identify repeated rows or duplicate record combinations quickly. In this tutorial, you’ll learn two easy methods to find duplicates in Excel using PivotTables and the COUNTIFS formula, so you can clean and validate your spreadsheet data before importing it into another system..

In this tutorial, you’ll learn two easy ways to find duplicates in Excel:

  1. Using a PivotTable to summarize duplicate combinations

  2. Using a COUNTIFS formula to identify the exact duplicate rows

Video Block
Double-click here to add a video by URL or embed code. Learn more

Example Scenario

In this example, we have a spreadsheet containing:

  • Employee ID

  • Skill

Each employee should only have one record for each skill.

If a duplicate record appears (for example an employee with the same skill listed twice), we want to identify and remove it before uploading the data into a system.

Method 1: Find Duplicates in Excel Using a PivotTable

Using a PivotTable is one of the fastest ways to identify duplicate combinations of values.

Step 1: Insert a PivotTable

  1. Select your dataset.

  2. Go to the Insert tab.

  3. Click PivotTable.

  4. Choose New Worksheet and click OK.

Step 2: Build the PivotTable

Now we’ll configure the PivotTable to count records.

  1. Drag Employee ID into the Rows area.

  2. Drag Skill below Employee ID in the Rows area.

  3. Drag Employee ID into the Values area.

Excel may default to Sum. If so:

  1. Click the dropdown next to the field in Values.

  2. Select Value Field Settings.

  3. Choose Count.

The PivotTable now shows how many times each Employee ID + Skill combination appears.

Step 3: Identify Duplicate Records

If the count equals 1, the record is unique.

If the count is greater than 1, that means a duplicate record exists.

To make duplicates easier to see:

  1. Select the Count column.

  2. Go to Home → Conditional Formatting.

  3. Choose Highlight Cells Rules → Greater Than.

  4. Enter 1.

Excel will now highlight any duplicate records.

Method 2: Identify Duplicate Rows in Excel with COUNTIFS

While the PivotTable method summarizes duplicates, the COUNTIFS formula can identify the exact duplicate rows in your spreadsheet.

Step 1: Insert a Helper Column

Add a new column next to your dataset called:

Duplicate Check

Step 2: Enter the COUNTIFS Formula

In the first data row, enter:

=COUNTIFS(A:A,A2,B:B,B2)

This formula counts how many times the combination of:

  • Employee ID

  • Skill

appears in the dataset.

Step 3: Copy the Formula Down

Use the fill handle to copy the formula down the column.

If the result is:

  • 1 → Unique record

  • 2 or more → Duplicate record

Now you can filter the column to quickly locate duplicate rows.

Removing Duplicate Records

Once duplicates are identified, you can:

  • delete the extra rows manually

  • or use Excel’s Remove Duplicates tool

To remove duplicates automatically:

  1. Select your data.

  2. Go to the Data tab.

  3. Click Remove Duplicates.

  4. Select the columns that define the unique record (Employee ID and Skill).

Excel will remove duplicate combinations.

Why This Step Matters Before Uploading Data

Checking for duplicates is an important data cleanup step before importing Excel data into another system.

It helps prevent:

  • duplicate employee records

  • incorrect reporting results

  • system upload errors

  • data integrity issues

Running a quick duplicate check can save a lot of time fixing data problems later.

Related Excel Tutorials

If you're preparing Excel data for system uploads, you may also find these tutorials helpful:

Final Thoughts

Finding duplicate records in Excel is a simple but important step when preparing spreadsheet data for uploads or system imports.

Using a PivotTable gives you a quick summary of duplicate combinations, while COUNTIFS helps you identify the exact duplicate rows.

Together, these methods make it much easier to clean and validate your Excel data before importing it into another system.

Next
Next

How to Restart Numbering in Excel Automatically (Step-by-Step Tutorial)