The fastest way to remove duplicates in Excel

Excel has a built-in tool that finds and deletes duplicate rows in seconds. Open your spreadsheet, select all the data you want to check (including headers), then go to the Data tab at the top and click Remove Duplicates. A box will appear asking which columns to check — leave them all selected unless you have a reason not to, then click Remove Duplicates again. Excel will tell you how many rows it deleted.

This method works best when your data is clean and organized in a single block. If your spreadsheet has gaps, merged cells, or data scattered across different areas, the tool may miss some duplicates or behave unexpectedly. In those cases, the manual methods below give you more control.

One important thing: the Remove Duplicates tool is permanent. It deletes the rows right away and does not put them in a separate location. If you are not sure whether you want to keep those rows, make a copy of your spreadsheet first.

Key Takeaways

  • The Data tab's Remove Duplicates button is the fastest method and works on most organized spreadsheets in under a minute.
  • You can tell Excel which columns to check for duplicates, so it only removes rows that match on the columns you care about.
  • If your data has gaps or is scattered across the sheet, use filtering or sorting instead to spot duplicates manually.
  • Always save a backup copy before removing duplicates, because the deletion is permanent and cannot be undone.

Using the Remove Duplicates tool step by step

Start by clicking the first cell in your data — usually the top-left corner where your headers are. Then hold Ctrl and press A to select all the data in that block, or click and drag to select the exact range you want to check. Your selection should include the header row (the row with column names) and every row of data below it.

Go to the Data tab in the ribbon at the top of the screen. Look for the Remove Duplicates button — it is usually in the middle-right area of the Data tab. Click it. A dialog box will open showing all your column names with checkboxes next to each one.

By default, all columns are checked. This means Excel will only count a row as a duplicate if every single column matches another row exactly. If you want to check only certain columns — for example, only the Name and Email columns — uncheck the columns you do not care about. Then click the Remove Duplicates button at the bottom of the dialog.

Excel will process your data and show you a message saying how many duplicate rows were found and deleted. Click OK to close the message. Your duplicates are now gone.

Spotting duplicates manually with sorting and filtering

If the Remove Duplicates tool does not work for your spreadsheet, or if you want to review duplicates before deleting them, you can sort or filter your data to group matching rows together. Start by selecting all your data again, then go to Data and click Sort. Choose the column you think contains the duplicates — usually a name, ID number, or email address — and click OK. Excel will rearrange your rows so that matching values sit next to each other.

Now scroll through your data and look for rows that are identical or nearly identical. When you find a duplicate, you can click on the row number on the left side to select the entire row, then right-click and choose Delete to remove it. Repeat this for each duplicate you find. This method takes longer but gives you a chance to review each one before it is gone.

Filtering works similarly. Go to Data and click AutoFilter. Small dropdown arrows will appear in your header row. Click the dropdown for the column you think has duplicates, then look through the list of values. If you see the same value listed multiple times, you know there are duplicates in that column. You can then sort or manually delete the extra rows.

What happens when columns have slightly different data

The Remove Duplicates tool looks for exact matches. If one row says "John Smith" and another says "john smith" (different capitalization), Excel will treat them as different and keep both. The same is true for extra spaces, different date formats, or any other variation. If you suspect your duplicates have small differences like this, clean up your data first before running the tool.

To clean up capitalization, select the column with the problem, go to Data, click Text to Columns, and in the dialog that appears, look for a button labeled Tools or Options. Some versions of Excel have a Change Case option here. If you do not see it, you can use a formula instead: type =UPPER(A1) in a new column to convert all text to uppercase, then copy the results and paste them back as values. After that, the Remove Duplicates tool will catch the matches.

Recovering if you deleted the wrong rows

If you ran Remove Duplicates and realized it deleted rows you wanted to keep, press Ctrl and Z immediately to undo the action. This works as long as you have not saved the file or performed other actions since the deletion. If you have already saved, you will need to close the file without saving and reopen the last saved version.

This is why making a backup copy before removing duplicates is so important. If something goes wrong and you cannot undo it, you still have the original data. Keep the backup file in a separate folder so you do not accidentally overwrite it.

Checking for duplicates across multiple sheets

The Remove Duplicates tool only works on one sheet at a time. If your workbook has multiple sheets and you think there are duplicates across different sheets, you will need to combine the data first. Click the first sheet tab, select all its data, copy it, then go to a new blank sheet and paste it. Repeat for each sheet you want to check, pasting all the data into the same new sheet. Once all the data is in one place, you can run Remove Duplicates on the combined data.

After you have removed the duplicates from the combined sheet, you can delete the temporary sheet and keep only the cleaned version. This method takes a bit longer but ensures you catch duplicates that exist across multiple sheets.

Frequently Asked Questions

Does Remove Duplicates delete the entire row or just the duplicate values?

It deletes the entire row. If a row is identified as a duplicate, every cell in that row is removed, not just the cells that matched. This is why you should check which columns you are comparing before running the tool.

Can I undo Remove Duplicates after I save the file?

No. Once you save the file after deleting duplicates, the rows are permanently gone and cannot be recovered through Excel's undo function. Always save a backup copy before running the tool, and test it on a copy first if you are unsure.

What if I only want to remove duplicates based on one column, like email address?

In the Remove Duplicates dialog, uncheck all columns except the one you care about. Excel will then delete any row that has the same value in that column as a previous row, even if the other columns are different.

Why does Remove Duplicates not work on my data?

The tool works best on data organized in a single continuous block with no blank rows or columns in the middle. If your data has gaps, merged cells, or is split across different areas of the sheet, select only the specific range you want to check instead of using Ctrl+A.

Can I see which rows are duplicates before deleting them?

The Remove Duplicates tool does not show you a preview. If you want to review duplicates first, use the sorting method instead: sort by the column you think has duplicates, then scroll through and manually delete the rows you want to remove.