How to Remove Duplicates in Excel and Google Sheets
The fastest way to remove duplicates in Excel is Data → Remove Duplicates. In Google Sheets, use =UNIQUE(range) to keep your original data intact, or Data → Data cleanup → Remove duplicates. To find duplicates before deleting, flag them with COUNTIF.
Duplicate rows quietly inflate totals, skew counts, and break lookups. Here are the four reliable ways to remove them in Excel and Google Sheets — and when to reach for each.
=UNIQUE(range) to keep your original data intact. Need it without opening a spreadsheet? Paste into our remove-duplicates tool.Method 1: Excel’s built-in Remove Duplicates
- Select your data range (include the header row).
- Go to Data → Remove Duplicates.
- Tick the columns that define a duplicate — matching on all columns removes fully identical rows; matching on one column (e.g. Email) removes rows sharing that value.
- Click OK. Excel deletes the duplicates in place and tells you how many it removed.
Because this edits data in place, run it on a copy if you might need the original later.
Method 2: The UNIQUE function (non-destructive)
In Google Sheets and Excel 365, =UNIQUE(A2:A100) outputs a deduplicated list in a new location without touching the source. It updates automatically as the source changes — ideal for dashboards and reports.
=UNIQUE(A2:A100)
Method 3: Flag duplicates first with COUNTIF
Sometimes you want to see duplicates before deleting them. Add a helper column:
=COUNTIF($A$2:$A$100, A2)
Any result above 1 appears more than once. You can also highlight them visually via Conditional Formatting → Highlight Cell Rules → Duplicate Values. Handy alongside our COUNTIF generator.
Method 4: Power Query for repeatable cleanups
If you dedupe the same report every week, load the data into Power Query (Data → Get & Transform), use Remove Rows → Remove Duplicates, and refresh next time instead of redoing the steps. More setup, but it pays off for recurring work.
Which method should you use?
- One-off cleanup, don’t need the original → Remove Duplicates.
- Live list that must stay in sync → UNIQUE.
- Want to review before deleting → COUNTIF or conditional formatting.
- Same cleanup every period → Power Query.