
Duplicate rows quietly break totals, mailing lists and reports. Google Sheets gives you three easy ways to deal with them. Pick the one that fits whether you want to delete, keep a clean copy, or just see the repeats first.
Way 1: Use the built-in cleanup tool
This deletes duplicates in place, so work on a copy if the data matters.
- Select the range, for example A1:C100.
- Open the Data menu, then Data cleanup, then Remove duplicates.
- Tick "Data has header row" if row 1 holds titles.
- Choose which columns must match. If you tick only the Email column, two rows with the same email count as duplicates even when the names differ.
- Click Remove duplicates. Sheets tells you how many rows it removed.
Way 2: Keep the original and make a clean list
The UNIQUE function returns the rows of a range without the repeats and leaves your source data untouched.
=UNIQUE(A2:C100)
Type it in an empty cell and the result spills down and across. Rows come back in the order they first appear. Two optional parts exist: a second value to compare columns instead of rows, and a third value set to TRUE to return only entries that appear exactly once. See Google's page on the UNIQUE function.
Way 3: Highlight duplicates first
If you want to review before deleting, color them.
- Select column A, for example A2:A100.
- Open Format, then Conditional formatting.
- Under Format rules choose Custom formula is.
- Enter this formula and pick a fill color:
=COUNTIF($A$2:$A$100, A2)>1
Every value that appears more than once is now shaded, including the first copy. You can then decide which row to keep.
Why the tool says there are no duplicates when you can see them
Google notes that rows that look identical may differ by hidden text such as a trailing space, and that numbers should be formatted the same way. If two entries look the same but are not matched, try =TRIM(A2) in a helper column and run the cleanup on the trimmed values. Also check for different capitalization or extra spaces between words.
Quick tips
- Copy the sheet tab before deleting anything. You can restore from version history, but a copy is faster.
- Match on the column that really identifies a record, such as an ID or email, not the whole row.
- Sort the column first when you want to scan the repeats by eye.
Related: VLOOKUP vs XLOOKUP in Google Sheets.