Duplicate data in Excel can lead to incorrect reports, wrong calculations, and poor decision-making. Whether you're working with small datasets or large reports, knowing how to remove duplicates in Excel is an essential skill.
In this guide, you'll learn 7 easy and powerful methods to remove duplicate data in Excel, from basic tools to advanced techniques.
Let’s explore all 7 methods 👇
Remove Duplicates Tool (Easiest Method)
Excel's
built-in tool is the fastest path from messy to clean. It permanently removes
duplicate rows in seconds — perfect for quick data cleanup.
- Select
your data range or any cell within it.
- Go
to the Data tab on the ribbon
- Click
Remove Duplicates
4. Select
which columns to check for duplicates, you can expand it up to next column.
5. Click
OK— Excel tells you how many rows were removed.
Important: This method permanently deletes rows.
Always work on a copy of your data or use "Ctrl+Z" to undo.
Advanced
Filter (Non-Destructive)
Want to extract unique records without touching the
original? Advanced Filter copies unique rows to a new location, leaving your
source data untouched.
1. Go
to Data → Sort & Filter → Advanced
2. Choose
"Copy to another location"
3. Set
the List Range to your data
4. Set
the Copy To range (destination cell)
5. Check
"Unique records only" → Click OK
💡
This is ideal for audit scenarios where you need
to show before & after, or when your boss wants to review what was removed
first.
UNIQUE
Function (Excel
365 / 2021)
The
most powerful modern approach. The UNIQUE function returns a live, dynamic list
that updates automatically whenever your source data changes.
=UNIQUE (A2:D100, FALSE, FALSE) ← entire row
deduplication
- Click
an empty cell where you want unique values
- Type=UNIQUE
(and select your range
- Press
Enter— results spill automatically
✨ Combine with =SORT (UNIQUE
(A2:A100)) to get a clean, alphabetically sorted unique list in one formula!
Power
Query (Best
for Large Data)
Power Query is Excel's ETL powerhouse. Once set up, you can
refresh it with a single click — making it perfect for repeated monthly or
weekly data cleaning tasks.
1. Select
your data → Data→ From Table/Range
2. The
Power Query Editor opens
3. Go
to Home → Remove Rows → Remove Duplicates
4. Click
Close & Load to send clean data back to Excel
Conditional
Formatting (Visual Review First)
Not
ready to delete yet? Highlight duplicates first, review them manually, then
decide what to delete. Perfect for sensitive data where human review matters.
1. Select
your column or range
2. Home
→ Conditional Formatting → Highlight
Cell Rules
3. Click
Duplicate Values
4. Choose
a highlight color → Click OK
5. Review
highlighted rows, then manually delete what you don't need
COUNTIF Formula
Use a formula to flag duplicates, giving you granular
control over which occurrence to keep — the first, the last, or any based on
your own logic.
1. Add
a helper column next to your data
2. Paste
the formula above in the first row, drag it down
3. Rows
showing TRUE are duplicates (2nd occurrence onward)
4. Filter
by TRUE → Select those rows → Delete them
5. Remove
the helper column when done
=COUNTIF($D$2:D2, D2) > 1
💡This approach keeps the first occurrence and
removes all later repeats. Change the formula logic to keep the last instead.
Pivot Table (For Reporting)
Don't
need to clean the source — just need a unique list for a report? A Pivot Table
extracts unique values instantly without modifying anything.
1. Click
any cell in your data
2. Insert
→ Pivot Table
3. Drag
your column to the Rows area
4. The
Pivot Table shows only unique values automatically
5. Copy
→ Paste as Values to use the list elsewhere
Which
Method Should You Use?
Other Related Post
How to Create a Search Box in Excel (No VBA Required)
VLOOKUP for Beginners: Find Data from Another Sheet (Step-by-Step Guide)
Excel VBA Data Cleaning Automation – Remove Special Characters Step by Step (Beginner Guide)
No comments:
Post a Comment