Introduction
How to Remove Duplicates in Excel? Managing data efficiently is crucial in Excel, especially when dealing with large datasets. Duplicate values can clutter your spreadsheet, leading to inaccurate analysis and reporting.
Whether you’re handling sales reports, customer lists, or inventory data, removing duplicates helps maintain clean and reliable records. In this guide, we’ll explore various methods to identify and remove duplicates in Excel.
Understanding Duplicates in Excel
What Are Duplicates?
Duplicates refer to repeated values or entire rows within a dataset. They may occur due to data entry errors, system imports, or merging multiple data sources.
Also Read: How to Delete a Page in Microsoft Word
How Do Duplicates Impact Data Analysis?
- Skewed statistics and insights
- Inflated counts in reports
- Redundant records affecting performance
How to Identify Duplicates in Excel
Using Conditional Formatting
- Select the dataset.
- Go to Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.
- Choose a formatting style and click OK.
Using the COUNTIF Function
=COUNTIF(A:A, A2)
If the count is greater than 1, the value is duplicated.
Using Pivot Tables
- Insert a pivot table.
- Drag the column with potential duplicates to the Rows area.
- Add the same column to the Values area and set it to Count.
- Sort and filter counts greater than 1.
How to Remove Duplicates in Excel Using Built-in Feature
- Select your dataset.
- Go to Data > Remove Duplicates.
- Choose the columns where duplicates exist.
- Click OK and review the summary message.
Using Advanced Filters to Remove Duplicates
- Select your data range.
- Go to Data > Advanced.
- Choose Copy to another location.
- Check Unique records only and click OK.
Removing Duplicates with Power Query
- Select the dataset and go to Data > Get & Transform > From Table/Range.
- In Power Query, select the column(s) and click Remove Duplicates.
- Click Close & Load to refresh your dataset.
Using Excel Formulas to Remove Duplicates
Using UNIQUE Function (Excel 365 & 2019)
=UNIQUE(A2:A100)
This extracts only unique values.
Using INDEX-MATCH for Unique Values
=IFERROR(INDEX(A:A, MATCH(0, COUNTIF($B$1:B1, A:A), 0)), "")
Removing Duplicates in Excel VBA (Macro Method)
Simple VBA Script
Sub RemoveDuplicates()
Dim ws As Worksheet
Set ws = ActiveSheet
ws.Range("A1:A100").RemoveDuplicates Columns:=1, Header:=xlYes
End Sub