Remove Duplicates and Count Unique Values in Excel: 5 Methods

Video tutorial · 8:46 · Published

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

  1. 0:00 What this video covers
  2. 0:15 Highlight duplicates first
  3. 1:02 Remove duplicates, keep the first
  4. 1:31 Choose the columns carefully
  5. 2:07 Copy unique records with Advanced Filter
  6. 2:54 List unique values with UNIQUE
  7. 3:36 Unique pairs and values seen once
  8. 4:12 Count unique values, with a condition
  9. 5:19 Count unique in Excel 2019 and earlier
  10. 6:09 Distinct Count in a PivotTable
  11. 7:06 Fix Remove Duplicates not working
  12. 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)

Other versions of this video

More videos

All EpiFive videos