DataGenius BI ← All Guides

Guide • Updated October 2026

How to Remove Duplicate Rows in Excel (3 Methods)

Duplicate rows creep into almost every spreadsheet. You paste in a fresh export, merge two lists, or import the same CSV twice, and suddenly your totals look too good to be true. Here are three ways to deal with duplicates in Excel, plus a few traps that catch people out.

Method 1: The Remove Duplicates button

  1. Click any cell inside your data.
  2. Go to Data → Remove Duplicates.
  3. Tick the columns Excel should compare. Tick all of them if you only want to remove rows that are identical from start to finish.
  4. Make sure "My data has headers" is ticked, then click OK.

Excel tells you how many duplicates it removed and how many unique rows are left. It keeps the first copy and deletes the rest for good, so save a copy of the file first. Ctrl+Z brings the rows back right away, but not after you close the file.

Method 2: Highlight first, delete later

If you would rather look before you delete, select the column and choose Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values. Every repeated value gets a color. This is handy when you want to understand why something repeats, for example the same invoice number typed in by two different people.

Method 3: The UNIQUE function

In Excel 365 and Excel 2021 you can type this in an empty cell:

=UNIQUE(A2:D500)

Excel spills a list of unique rows next to your data and leaves the original alone. Nothing is deleted, which makes it the safest choice for important files. Older versions of Excel do not have this function.

Why some duplicates do not get removed

A quicker way for big files

Excel gets slow on large files, and doing this by hand after every export gets old. In DataGenius BI you upload the Excel or CSV file, open the Data Cleaning Center, keep "Remove duplicate rows" ticked and press Clean my data. It trims extra spaces first, so "Asha " and "Asha" are caught as the same row, and it shows a before-and-after report. Then you can download the cleaned .xlsx file.

One difference to know about: DataGenius BI treats upper and lower case as different, so check that if your data mixes them. Your file stays on your own device the whole time.

Common questions

Which duplicate does Excel keep?

Excel keeps the first row it finds and removes the later ones.

Why do some duplicates remain?

They are not identical to Excel, for example because of a trailing space, a different capital letter or a number saved as text. Clean the data first.

Can I get my data back after removing duplicates?

Press Ctrl+Z straight away. After you save and close, it is gone, so work on a copy. DataGenius BI keeps your original and has a restore button.

Related guides

Got a messy Excel or CSV file?
Check its quality score and clean it in your browser. Free, no signup, and your file is never uploaded.
Try DataGenius BI