Skip to content

Remove Duplicates in Excel

Clean up lists with repeated entries: highlight copies first, then remove them by all columns or by one key column. Practice with a sign-up list in your browser.

  • Free, no sign-up
  • No upload – files stay on your device
  • Phone, tablet and computer
Loading the spreadsheet …

Sign-up lists, customer lists and exports tend to collect the same entries twice. To remove duplicates in Excel, you first decide what “duplicate” means: the whole row, or just one column like the email address. Above, you clean up the sign-up list of a company 5K: count, highlight, remove exact copies, then remove repeated emails without losing a real participant.

How to remove duplicates in Excel

  1. Click any cell inside the list. You don’t need to select the whole list; the connected range is detected.
  2. Go to Data → Remove Duplicates.
  3. Leave “My data has headers” checked if the first row contains column names.
  4. Choose the columns to compare. All columns: a row is only removed if every value matches. One column: rows are removed as soon as that column repeats.
  5. Click OK. The first occurrence stays, later copies are deleted, and you see how many were removed.

This works the same way in the Spreadsheet Editor. Upper and lower case don’t matter: “Tyler.Brandt@example.com” and “tyler.brandt@example.com” count as the same address.

Practice right here

The list above has 18 sign-ups, and some people registered twice. Work through the four tasks and click Check after each one:

  1. Count the sign-ups with =COUNTA(A2:A19).
  2. Highlight duplicate emails with conditional formatting.
  3. Remove rows that are identical in every column.
  4. Remove the remaining duplicates by email only.

The trap: there are two different people named Tom Walker with their own email addresses. If you compare by name, you lose one of them. The check notices and tells you how to undo it.

Look before you delete

Remove Duplicates deletes rows without asking which copy to keep. Check first what’s affected:

  • Highlight: select the column and choose Home → Conditional Formatting → Duplicate Values. Nothing is deleted, the repeats are just colored. More on rules in conditional formatting.
  • Count: a helper column with =COUNTIF($B$2:$B$19,B2) shows how often each email occurs. Anything above 1 is a duplicate. See COUNTIF.
  • Sort: sort the list by the column you compare, and the copies end up next to each other.
Tip: Work on a copy, or remember Ctrl+Z. Once a workbook is saved and closed, removed rows are gone.

Which columns to compare

Compare Result in the practice list
All columns 3 exact copies removed, 15 rows left
Email only 2 more removed (different size or capitalization), 13 rows left
Name only Wrong: one of the two Tom Walkers disappears

Choose the column that really identifies a person or record: an email, a customer number, an order ID. Names are rarely unique.

Common mistakes

  • Only one column selected: if you select just column B before running the command, the Spreadsheet Editor only processes that column, and names and emails no longer match up. Excel asks whether to expand the selection. Click a single cell inside the list instead.
  • Header row treated as data: without “My data has headers”, the header row is compared too.
  • Hidden differences: extra spaces make “Jenna Kramer ” and “Jenna Kramer” different. Clean them up first with TRIM in a helper column.

Frequently asked questions

Is there a formula that removes duplicates?

In Excel 2021 and Microsoft 365, UNIQUE returns a list without duplicates. In older versions and in the Spreadsheet Editor, use a COUNTIF helper column and filter by it.

Which copy is kept?

Always the first one from the top. If you want to keep the newest entry, sort the list by date in descending order first.

Can I copy a unique list somewhere else?

In Excel, use Data → Advanced with “Unique records only” and a target range. The Spreadsheet Editor doesn’t have that option; copy the list first and remove the duplicates in the copy.

Microsoft Excel is a trademark of Microsoft Corporation. The Spreadsheet Editor is not affiliated with Microsoft.