The fastest way to spot and remove duplicates
Excel has a built-in tool that finds and removes duplicate rows in seconds. Open your spreadsheet, select the data range that might contain duplicates, then go to the Data tab and click Remove Duplicates. A dialog box appears asking which columns to check — if you want Excel to match entire rows, leave all columns selected. Click OK, and Excel deletes the duplicate rows and tells you how many it removed.
This method works best when your data is already organized in a table with headers. If your spreadsheet is messy or you need more control over which duplicates stay and which go, the manual methods below give you that choice.
Key Takeaways
- The Data tab's Remove Duplicates tool deletes matching rows in one click, but it removes duplicates permanently without showing you what it deleted first.
- Conditional formatting with the COUNTIF function highlights duplicates so you can review them before deciding what to delete.
- Sorting your data by the column most likely to contain duplicates makes it easier to spot them by eye and delete them manually.
- If you only want to find duplicates without deleting them, filtering and sorting are safer than the automatic removal tool.
Using Remove Duplicates for one-step deletion
The Remove Duplicates feature is the quickest option if you trust your data and want duplicates gone immediately. Select all your data including headers — click the top-left cell, then press Ctrl+Shift+End to select to the last cell with data. Go to Data > Remove Duplicates.
In the dialog that opens, you see a list of all your columns with checkboxes. By default, all are checked, which means Excel will only delete a row if every single column matches another row exactly. If you want to find duplicates based on one column only — for example, removing duplicate email addresses even if other details differ — uncheck all columns except the one you care about. Click OK and Excel removes the duplicates and shows a message saying how many rows it deleted.
The downside: this tool deletes rows without showing you what it removed first. If you are not certain about your data, use one of the methods below to review duplicates before deletion.
Highlighting duplicates with conditional formatting
Conditional formatting lets you see which rows are duplicates before you delete anything. Select your data range, then go to Home > Conditional Formatting > New Rule. Click Use a formula to determine which cells to format.
In the formula box, type =COUNTIF($A$2:$A$1000,A2)>1 — replace A2 and A1000 with your actual data range, and replace the first A with whichever column you want to check for duplicates. This formula counts how many times each value appears in that column. If it appears more than once, the cell gets highlighted. Click Format, choose a fill color like yellow or light red, then click OK twice.
Now every duplicate value in that column is highlighted. You can see at a glance which rows match, review them, and then delete the ones you want to remove. This method is slower than Remove Duplicates but gives you full control.
Sorting to find duplicates by hand
Sorting groups identical values together, making duplicates obvious. Select your entire data range including headers. Go to Data > Sort. In the dialog, choose the column most likely to contain duplicates — for example, if you are looking for duplicate names, sort by the Name column. Click OK.
Now all matching values sit next to each other. Scroll through and you will immediately see which rows are identical or nearly identical. You can then click on each duplicate row and delete it manually by right-clicking and selecting Delete Row. This method takes longer but works well if you have only a few duplicates or if you want to keep the first occurrence and delete only the later ones.
Using filters to isolate and review duplicates
Filters let you hide non-duplicate rows so you see only the ones that match. Select your data and go to Data > AutoFilter. Dropdown arrows appear in the header row. Click the dropdown for the column you want to check — for example, the Email column.
In the filter menu, uncheck All first, then manually check only the values that appear more than once in your list. Click OK. Now the spreadsheet shows only rows with those values, making it easy to spot which ones are true duplicates. You can then select and delete the rows you do not need. When you are done, go back to Data > AutoFilter to turn off the filter and see all remaining rows.
Removing duplicates while keeping the first occurrence
By default, Remove Duplicates keeps the first occurrence of each value and deletes the rest. If you want to keep a different row — for example, the one with the most recent date — sort by that column first before running Remove Duplicates. The row at the top of each duplicate group will be the one that stays.
Alternatively, use the manual sorting and deletion method described above. Sort by the column you care about, review each duplicate group, and delete only the rows you want to remove. This gives you complete control over which version of a duplicate stays in your spreadsheet.
What to do if Remove Duplicates does not work
Remove Duplicates only finds exact matches. If your duplicates have extra spaces, different capitalization, or slightly different text, the tool will not recognize them as duplicates. For example, "John Smith" and "john smith" are treated as different values.
To handle these cases, clean your data first. Use the TRIM function to remove extra spaces, and the UPPER or LOWER function to make all text the same case. Create a helper column with a formula like =UPPER(TRIM(A2)), copy it down for all rows, then use Remove Duplicates on that helper column. Once duplicates are removed, you can delete the helper column.
Frequently Asked Questions
Can I undo Remove Duplicates after I click OK?
Yes. Press Ctrl+Z immediately after the deletion to undo it. If you have already closed the file or performed other actions, undo may not work. This is why it is safer to use conditional formatting or sorting first to review duplicates before using the automatic removal tool.
Does Remove Duplicates work on filtered data?
No. Remove Duplicates works on your entire selected range, including hidden rows. If you have filters applied, turn them off first by going to Data > AutoFilter to toggle it off. Then select all your data and run Remove Duplicates.
What if I want to keep duplicates but just see where they are?
Use conditional formatting with COUNTIF or the filter method. Both let you highlight or isolate duplicates without deleting anything. You can then export the list, print it, or leave the highlighting in place as a reference.
How do I find duplicates across multiple columns?
In the Remove Duplicates dialog, keep all relevant columns checked. Excel will only mark a row as a duplicate if every checked column matches another row exactly. For example, if you check both Name and Email, a row is a duplicate only if both the name and email match another row.
Can I remove duplicates from just one column without affecting the rest?
Remove Duplicates deletes entire rows, not individual cells. If you only want to remove duplicate values from one column while keeping the rest of the row, use conditional formatting to highlight them, then manually delete or edit those cells. Alternatively, sort by that column and manually review which rows to delete.