How to Remove Duplicates in Google Sheets (3 Ways)
To remove duplicates in Google Sheets, select your data and go to Data → Data cleanup → Remove duplicates — Sheets finds matching rows and deletes all but the first one. If you’d rather not touch the original, use =UNIQUE() in a spare column to produce a de-duplicated copy alongside it.
Which method should you use?
| You want to | Use |
|---|---|
| Delete duplicate rows from the sheet | Data → Data cleanup → Remove duplicates |
| Keep the original untouched | UNIQUE() in a separate range |
| See which rows are duplicates first | COUNTIF helper column |
| Match on one column only, keep the rest as-is | Remove duplicates, but select the column first |
Method 1: Remove duplicates (deletes them)
This is the built-in tool, and it’s the one most people want.
- Select your data, including the header row and every column you care about.
- Go to Data → Data cleanup → Remove duplicates.
- Tick Data has header row if your first row holds headings — this protects the header from being treated as data.
- Tick the columns to match on. By default all selected columns are checked, meaning a row is only a duplicate if every value matches.
- Click Remove duplicates.
- Sheets reports how many duplicates were found and removed, and how many rows remain.
Before you run it, take a copy.
Ctrl + Zundoes it, but only in that browser session.File → Make a copyfirst, or work on a duplicate tab, is the safe habit.
The key setting is step 4. If you tick only Email, Sheets deletes rows with a repeated email even when everything else differs — keeping the first and discarding the rest. If you tick every column, a row is only removed when it’s identical across all of them. Decide which you mean before clicking.
Method 2: UNIQUE() — a de-duplicated copy
UNIQUE leaves your source data alone and returns one row per distinct value:
=UNIQUE(A2:C100)
Put it somewhere out of the way — a new sheet, or columns to the right — and it spills the unique rows automatically.
- Header row included?
UNIQUEkeeps the first row as-is, so include the header in the range and it appears once at the top. - Updates automatically: if the source changes, the
UNIQUEoutput follows. TheRemove duplicatestool does not — it’s a one-time action.
Use this when you want to preserve the original for reference. Use the built-in tool when you want the originals gone.
Method 3: Count them first with COUNTIF
To see duplicates without deleting anything, add a helper column:
=COUNTIF($A$2:$A$100, A2)
Fill it down. Any row showing 1 is unique; anything 2 or higher is a duplicate. You can then sort by that column (see how to sort in Excel — the idea is the same) and decide manually.
Better: flag rather than count, so you can scan at a glance:
=IF(COUNTIF($A$2:$A$100, A2) > 1, "DUPLICATE", "")
That prints “DUPLICATE” next to every repeated value. Pair it with conditional formatting to shade those rows red.
Remove duplicates in one column only
If your data has several columns but a duplicate is defined by one of them — the classic case is an email list:
- Select the range.
- Data → Data cleanup → Remove duplicates.
- Untick Select all, then tick only the column that defines a duplicate.
- Click Remove duplicates.
Sheets keeps the first occurrence and deletes later rows sharing that value. The other columns’ data goes with them — which is usually what you want (one row per contact), but is worth knowing before you click.
Common problems
| Problem | Cause |
|---|---|
| “Duplicate” rows weren’t removed | They’re not exact matches — a stray space or different capitalisation |
| Data that looked identical was removed | Sheets ignores case: “Apple” and “apple” are the same. It ignores bold/colour too, but number formats matter — 1.00 and 1 are treated as different |
| Header row was deleted | Data has header row wasn’t ticked |
| The wrong rows disappeared | Only the first occurrence of each value is kept |
| Duplicates came back | You added rows after running it — the tool is a one-time action, not a live rule |
| Extra spaces cause false differences | Clean the column first: =TRIM(A2), then de-duplicate the cleaned values |
“Remove” vs “delete” — the same job
Google’s own help page calls this Data cleanup → Remove duplicates, but people search for “delete duplicates” and “deduplicate” too. In Sheets, these are one feature. Unlike removing duplicates in Excel, which keeps its tool under the Data tab rather than a cleanup submenu, the behaviour is otherwise similar.
If the values you’re cleaning came from one combined cell, split them first — see how to split text into columns in Google Sheets. And if you’re building the sheet from scratch, start with Google Sheets formulas for beginners.
FAQ
How do I remove duplicates in Google Sheets?
Select your data → Data → Data cleanup → Remove duplicates → tick Data has header row and the columns to match on → Remove duplicates.
Does removing duplicates delete my original data?
Yes — the built-in tool deletes the duplicate rows from the sheet. To keep the original intact, use =UNIQUE(range) in a separate area instead.
Can I remove duplicates without deleting anything?
Yes. Add a =COUNTIF(...) or =IF(COUNTIF(...)>1,"DUPLICATE","") helper column to flag them, then decide what to remove yourself.
Why weren’t my duplicates detected?
Usually a slight difference: a trailing space, different letter case, or a number stored as text. Sheets treats “Apple” and “apple” as identical, but 1.00 and 1 as different.
How do I remove duplicates based on one column only?
Select your data, open Remove duplicates, untick Select all, then tick only the column that defines a duplicate. The first occurrence is kept and later matches are deleted, along with their other column values.
Related guides
Google Sheets Formulas for Beginners (10 You Need to Know)
The 10 essential Google Sheets formulas every beginner needs — SUM, AVERAGE, COUNT, IF, and more, with working examples.
How to Add Checkboxes in Google Sheets (Tick Boxes)
Add checkboxes in Google Sheets with Insert → Checkbox, set custom checked/unchecked values, and count ticks with COUNTIF or a progress bar.
How to Create a Drop-Down List in Excel (Data Validation)
Add a drop-down list in Excel with Data Validation — pick from a typed list or a range on another sheet, and fix the errors that stop it working.