Excel Tutorials

How to Remove Duplicates in Excel

Find and delete duplicate rows safely, preview what would be removed first, and control exactly which columns count toward a match. This lesson uses the Basic Budget workbook from Excel Foundations, free to download below.

Return to Class

Download the Basic Budget Workbook

Follow along in the same file used in the video. No email required.

⬇ Basic Budget Workbook (.xlsx)

What Does Remove Duplicates Do?

Remove Duplicates scans a range top to bottom and permanently deletes any row whose values, in the columns you choose, exactly match a row that appeared earlier. Only the first occurrence of each unique combination survives.

It's a genuinely destructive tool, rows are actually deleted, not just hidden, which is why previewing duplicates before running it is worth doing on anything you can't easily rebuild.

How to Remove Duplicates

Step-by-step, matching the video above.

1

Select your full data range

Include the header row. An incomplete selection can misalign which columns Excel actually compares.

2

Open the Data tab

Click Data on the ribbon.

3

Click Remove Duplicates

Found in the Data Tools group. A dialog opens listing every column in your selection as a checkbox.

4

Choose which columns count

Leave every column checked to require an exact match across the whole row, or uncheck columns that shouldn't factor into what counts as a duplicate.

5

Click OK

Excel deletes matching rows and shows a summary: how many duplicate values were removed and how many unique values remain.

6

Undo immediately if something looks wrong

Ctrl+Z reverses it right away, but only until you save or close the file, after that the deleted rows are gone.

Worked Example
RowA: Order IDB: ItemResult
21001ChairsKept (first)
31002TablesKept (unique)
41001ChairsDeleted (duplicate)
51001LinensKept if only Order ID is checked; deleted if both columns are checked

Row 4 is deleted no matter what, since it exactly matches row 2 in both columns. Row 5 is the case that shows why column selection matters: it shares an Order ID with row 2 but has a different Item, so it only counts as a duplicate if you checked Order ID alone, not if you required both columns to match.

Preview Duplicates Before Deleting Anything

Since Remove Duplicates is permanent, previewing first is worth the extra minute on any data you can't easily rebuild.

Highlight duplicates with Conditional Formatting

Select your range, go to Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values. Every duplicate gets colored without anything being deleted.

Review what's actually highlighted

Scroll through and confirm the highlighted rows are genuinely duplicates you want gone, not legitimately similar records that happen to share one column's value.

Then run Remove Duplicates with confidence

Once you've confirmed what would be affected, go to Data > Remove Duplicates and proceed knowing exactly what's about to happen.

COUNTIF: A Non-Destructive Alternative

When you'd rather flag duplicates for manual review than delete anything automatically.

The formula

=COUNTIF(A:A,A2)>1 in a helper column returns TRUE for any row whose value in column A appears more than once anywhere in that column.

Why this is sometimes better

Nothing gets deleted, you keep every row and simply filter or sort by the helper column to review flagged duplicates on your own terms.

Common Remove Duplicates Mistakes to Avoid

⚠️

Not selecting the full range first

A partial selection can leave some columns out of the comparison entirely, or worse, misalign rows if the selection doesn't match your actual data boundaries.

⚠️

Checking too few columns

Requiring a match on just one column, like Name, can delete legitimately different records that happen to share that one value, like two different customers with the same first name.

⚠️

Assuming you can undo it later

Ctrl+Z only works immediately, before the file is saved or closed. Preview with Conditional Formatting first if the data matters and you're not certain.

⚠️

Confusing highlighting duplicates with removing them

Conditional Formatting's Duplicate Values rule only colors cells, it doesn't delete anything. Remove Duplicates is the separate tool that actually deletes rows.

Beyond the Spreadsheet

3 Duplicates You Clean Up by Hand.Already Prevented in Updoot.

A record shouldn't need a cleanup pass to stay accurate.

📇
You dedupe
Customer contact records
Sales CRM
Every record is unique from the start
🏷️
You dedupe
Asset and inventory lists
Asset Tracking
No duplicate entries to clean up later
You dedupe
Purchase orders and requests
Purchasing & Approvals
Every order logged once, automatically

Free 14-day trial. No credit card required.

Frequently Asked Questions

How do I remove duplicates in Excel?

Select your data range including headers, go to the Data tab, click Remove Duplicates, choose which columns to check, and click OK.

Does Remove Duplicates delete the whole row or just the cell?

The whole row. If a duplicate is found based on the columns you selected, Excel deletes that entire row, not just the matching cell.

Which row does Excel keep when removing duplicates, the first or the last?

The first occurrence. Excel scans top to bottom and keeps whichever row it encounters first, deleting any later rows that match.

Can I remove duplicates based on only some columns?

Yes, the Remove Duplicates dialog lists every column as a checkbox, uncheck any column you don't want counted toward what makes a row a duplicate.

Can I undo Remove Duplicates after running it?

Yes, but only immediately with Ctrl+Z. If you save or close the file first, the deleted rows are gone for good.

How do I preview duplicates before deleting them?

Use Conditional Formatting > Highlight Cells Rules > Duplicate Values first, it highlights every duplicate without deleting anything, so you can review what would be affected.

What's the difference between Remove Duplicates and Conditional Formatting's Duplicate Values?

Remove Duplicates permanently deletes rows. Conditional Formatting just highlights duplicate values visually, leaving every row intact for you to review or handle manually.

Does Remove Duplicates work inside an Excel Table?

Yes, click any cell in the Table, then Table Design > Remove Duplicates, it works the same way and the Table automatically adjusts to the new row count.

Ready for records that stay clean?

Every business starts with a spreadsheet. Updoot is where you scale past it, no duplicate cleanup required.

Start Your Free Trial →