How to remove duplicates in Excel
Excel's built-in Remove Duplicates deletes repeated rows in a few clicks. It permanently removes data, so work on a copy of your sheet.
Method 1: the Remove Duplicates button
- Select your data, including the header row.
- Go to the Data tab and choose Remove Duplicates.
- Tick My data has headers if it does.
- Tick the columns that must match. Rows count as duplicates only when all ticked columns match.
- Click OK. Excel tells you how many rows it removed and keeps the first one in each group.
Method 2: the UNIQUE function
In Microsoft 365 and recent versions of Excel, type =UNIQUE(A2:C100) in an empty cell. It lists the rows without duplicates and leaves your original data untouched.
Method 3: highlight first
To review duplicates before deleting anything, select the column and choose Home, Conditional Formatting, Highlight Cells Rules, Duplicate Values.
If duplicates survive
Hidden spaces are the usual cause: "Ann" and "Ann " look the same but are different. Clean a column with =TRIM(A2) and copy the results back as values before you remove duplicates.
No Excel handy?
If you have the data as a CSV file, our CSV duplicate remover does the same job in your browser, ignores case and extra spaces, and shows you exactly which rows it removed. Menu names can differ slightly between Excel versions.
Remove duplicates from a CSV