How to Remove Duplicates in Excel
Easy The Built-in Remove Duplicates Tool
Section titled “ The Built-in Remove Duplicates Tool”For most scenarios, Excel’s built-in feature gets the job done quickly:
- Select your data range (including headers)
- Go to Data tab → Remove Duplicates
- Choose which columns to check for duplicates
- Click OK
Excel will tell you how many duplicates were found and removed, keeping the first occurrence of each unique record.
Source: Microsoft
When This Method Works Best
Section titled “When This Method Works Best”- Clean, structured data with consistent formatting
- Simple duplicate detection across entire rows
- Small to medium datasets (under 100,000 rows)
- One-time cleanup tasks
Intermediate Conditional Duplicates with Formulas
Section titled “ Conditional Duplicates with Formulas”Sometimes you need more control over which duplicates to keep:
=COUNTIFS($A$2:$A$100,A2,$B$2:$B$100,B2)>1This formula identifies duplicates based on multiple columns, allowing you to:
- Flag duplicates without removing them
- Apply different rules for different types of duplicates
- Keep the most recent entry instead of the first
Intermediate Intermediate: Using Pivot Tables for Duplicate Analysis
Section titled “ Intermediate: Using Pivot Tables for Duplicate Analysis”Before removing duplicates, smart analysts understand their data:
- Create a PivotTable from your data
- Add suspect fields to Rows
- Add a count field to Values
- Filter for counts > 1
This reveals patterns: Are duplicates random errors or systematic issues?
Advanced Advanced Filtering for Complex Scenarios
Section titled “ Advanced Filtering for Complex Scenarios”When you need surgical precision:
- Data → Advanced Filter
- Check “Unique records only”
- Set criteria range for conditional logic
- Copy results to new location
This method preserves your original data while creating a clean copy.