How to remove duplicates in Google Sheets
Duplicate rows creep in when you merge exports, import CSVs or let several people edit a list. Here are three free ways to remove them, from fastest to most flexible.
1. Data cleanup → Remove duplicates (built in)
- Select the range (or click a cell inside your table).
- Open Data → Data cleanup → Remove duplicates.
- Tick "Data has header row" if needed and choose which columns to compare.
- Click Remove duplicates. Sheets tells you how many rows it removed.
Tip: make a copy of the tab first; this edits your data in place.
2. The UNIQUE function (keeps the original)
In an empty tab type =UNIQUE(Sheet1!A2:D). You get a live, de-duplicated copy and the source stays untouched.
3. Highlight duplicates with COUNTIF
Select column A, go to Format → Conditional formatting, pick "Custom formula is" and enter =COUNTIF($A:$A,$A1)>1. Every repeated value turns colored so you can review before deleting.
Why some duplicates survive
All three methods compare values exactly. "Ana López", "ana lopez " and "ANA LOPEZ" count as three different people. Clean first, then dedupe:
=TRIM(A2)removes extra spaces.=LOWER(A2)or=PROPER(A2)unifies capitalization.- Phones like "(55) 1234-5678" and "+52 55 1234 5678" need the same format; see how to format phone numbers.
Doing this every week? CleanSheet does all of these steps in one click: removes duplicates (even "Juan Perez" vs "juan pérez"), formats phones to E.164, lowercases emails and standardizes dates. Free up to 500 rows. See CleanSheet · Get the $9 template
DataTools AI