Remove Duplicates and Count Unique Values in Excel: 5 Methods
Read the full guideWatch on YouTubeMore fixes on the EpiFive channel
About this video
Remove duplicate rows, list unique values and count them in Excel with Remove Duplicates, Advanced Filter, UNIQUE, COUNTIF and a PivotTable Distinct Count.
This tutorial walks through the steps of the full guide on screen; the chapters below jump to each part.
Chapters
- 0:00 What this video covers
- 0:15 Highlight duplicates first
- 1:02 Remove duplicates, keep the first
- 1:31 Choose the columns carefully
- 2:07 Copy unique records with Advanced Filter
- 2:54 List unique values with UNIQUE
- 3:36 Unique pairs and values seen once
- 4:12 Count unique values, with a condition
- 5:19 Count unique in Excel 2019 and earlier
- 6:09 Distinct Count in a PivotTable
- 7:06 Fix Remove Duplicates not working
- 8:02 Recap
Key points
- Data, Remove Duplicates permanently deletes every row whose selected columns match an earlier row, keeping only the first occurrence.
- Advanced Filter with Unique records only copies a deduplicated list to a new location without deleting anything.
- UNIQUE returns distinct values that update automatically, and its third argument set to TRUE returns only values that occur exactly once.
- Wrap UNIQUE in FILTER with a not-blank condition so empty cells are not counted as a value.
- A PivotTable shows Distinct Count only when it is created with Add this data to the Data Model checked.
In the full guide
Remove Duplicates and Count Unique Values in Excel: 5 Methods That Work (13 min read, Microsoft 365)
- Who this is for and what you will have
- The sample data
- Step 1: Highlight duplicates before deleting anything
- Method 1: Remove Duplicates (deletes rows, keeps the first)
- Method 2: Advanced Filter (unique records without deleting)
- Method 3: The UNIQUE function (a live list)
- Method 4: Count unique values with a formula
- Method 5: PivotTable Distinct Count



