Remove Duplicates in Excel: The Complete Guide
Last year, a client sent me their customer database. 50,000 rows. They wanted to run an email campaign. The problem? About 8,000 of those rows were duplicates.
Same customers, multiple times. Different spellings. Slightly different addresses. They were about to send 8,000 duplicate emails. Their marketing manager would have killed them.
Duplicate data is like that one friend who shows up twice to every party. Annoying, hard to spot, and messes up the headcount every time.
Here's everything I know about finding and removing duplicates.
Method 1: The Built-in Remove Duplicates Tool
This is the easiest method. It's like a Roomba—it gets the job done without much thinking.
Steps:
- Select your data range (Ctrl+A is your friend)
- Click the Data tab on the ribbon
- Look for "Remove Duplicates" (right side, usually)
- A dialog box pops up—choose which columns to check
- Click OK
Excel will tell you how many duplicates it found and removed. If it says 0 but you know there are duplicates, you probably selected the wrong columns. Happens to the best of us.
Method 2: Conditional Formatting (See What You're Deleting)
Sometimes you don't want to blindly delete. Maybe you want to review duplicates first. Conditional formatting is perfect for this.
Here's what I do:
- Select your data
- Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values
- Boom! Every duplicate lights up
Why I love this: Last week, I was cleaning a contact list and found that 50 "different" entries were actually the same person with slightly different spellings. "John Smith" vs "Jon Smith". The visual highlight helped me catch these before deleting.
You can then filter by color and review what you're about to remove. Takes two extra minutes, saves hours of regret.
Method 3: Advanced Filter (The Safe Way)
This is my go-to when I need more control. Advanced Filter copies unique values to another location, leaving your original data untouched.
Why I use this:
- Original data stays safe (no "oops" moments)
- You can see exactly what's being kept
- Works great for large datasets
- I sleep better at night
How to do it:
- Select your data
- Data → Advanced (under Sort & Filter)
- Choose "Copy to another location"
- Check "Unique records only"
- Choose where to copy
- Click OK
I use this about 80% of the time. It's slower than the Remove Duplicates button, but it's safer.
Method 4: COUNTIF (The Formula Way)
This one requires a bit of Excel comfort, but it's incredibly powerful. COUNTIF lets you flag duplicates with a formula.
The formula:
=COUNTIF(A:A, A2)>1
Put this in a helper column, and it'll show TRUE for duplicates. You can then filter and review them.
Why this is useful: You can see exactly which rows are duplicates before you delete anything. You can also modify it to check multiple columns:
=COUNTIFS(A:A, A2, B:B, B2)>1
A consultant taught me this in 2021. It's been a game-changer for complex datasets where duplicates aren't always obvious—like when order numbers should be unique but customer names might repeat legitimately.
Method 5: Power Query (For Repeat Offenders)
If you clean the same type of data every week, Power Query is worth learning.
Quick setup:
- Select your data → Data → From Table/Range
- In Power Query, right-click the column you want to check
- Select "Remove Duplicates"
- Click "Close & Load"
The best part? You can save these steps and reuse them. I have a saved query that cleans my weekly sales reports in about 10 seconds. Used to take me 20 minutes.
Method 6: Pivot Tables (The Visual Way)
Pivot tables won't remove duplicates, but they'll show you what's duplicated.
Quick pivot:
- Select your data
- Insert → PivotTable
- Put the column you want to check in Rows
- Put the same column in Values
If the count is more than 1, you've got duplicates. I use this when I'm exploring new data and want to understand what I'm dealing with.
Method 7: VBA Macro (The "Do It For Me" Way)
If you do this constantly, a macro can save you time. Here's a simple one:
Sub RemoveDuplicates()
Selection.RemoveDuplicates Columns:=Array(1,2), Header:=xlYes
End Sub
This removes duplicates based on columns 1 and 2. Change the numbers for your needs.
🎯 My Personal Duplicate Removal Flow
After years of doing this, here's my actual process:
- Make a backup (always!) - Ctrl+S, then Save As with "_BACKUP"
- Conditional formatting (2 minutes) - See what I'm dealing with
- Review patterns (2 minutes) - Are they real duplicates or just similar?
- Decide on columns (1 minute) - Which columns define a duplicate?
- Advanced Filter (2 minutes) - Copy unique values to new sheet
- COUNTIF check (1 minute) - Verify I didn't miss anything
- Save the process (1 minute) - If I'll do this again, save as Power Query
Real Examples: When Duplicates Aren't Obvious
Example 1: The Spelling Problem
"McDonald's" vs "McDonalds" vs "Mc Donald's". Same restaurant, three spellings. A simple Remove Duplicates won't catch these.
Fix: Standardize first. Use find/replace or create a lookup table.
Example 2: The Address Issue
"123 Main St" vs "123 Main Street". Same place, different abbreviation.
Fix: Use consistent abbreviations. Or use a tool that handles fuzzy matching.
Example 3: The Date Difference
Same transaction, different date formats. Excel sees them as different.
Fix: Standardize all dates first, then remove duplicates.
Common Mistakes I See
Mistake 1: Not Checking Headers
I've done this. You've done this. Everyone's done this. Check the box.
Mistake 2: Ignoring Whitespace
"John" and "John " look the same to you, but Excel sees different strings. Always TRIM your data first.
Mistake 3: Deleting Without Reviewing
That time I deleted 200 legitimate entries? I was in a hurry and didn't preview. Now I always use conditional formatting first.
Mistake 4: Wrong Columns Selected
If you check every column, Excel will only remove rows where everything matches. Sometimes that's right, sometimes it's wrong. Think about which columns actually define a duplicate.
Quick Reference Card
- Quick and dirty: Remove Duplicates button
- See what you're deleting: Conditional Formatting
- Safe method: Advanced Filter
- More control: COUNTIF formula
- Repeat offenders: Power Query
- Exploring: Pivot Tables
- Automation: VBA Macro
Let our tool handle duplicates
Upload your messy Excel file, download a clean one. Duplicates removed, numbers fixed, dates standardized. Free, no signup.
Clean Your File →