DataTools AI DataTools AI

How to highlight duplicates in Google Sheets

Sometimes you don't want to delete duplicates yet, you just want to see them. Conditional formatting with a custom formula does that without changing any data.

Highlight repeated values in one column

Select the column (for example A2:A), open Format → Conditional formatting, choose Custom formula is and enter:
=COUNTIF($A$2:$A,A2)>1
Pick a fill color and click Done. Every value that appears more than once is colored.

Highlight only the second and later copies

To keep the first occurrence clean and mark only the repeats, use an expanding range:
=COUNTIF($A$2:A2,A2)>1

Highlight rows where two columns repeat together

For "same name and same email", select A2:C and use:
=COUNTIFS($A$2:$A,$A2,$B$2:$B,$B2)>1
The $ before the column letters makes the whole row light up.

Watch out for hidden differences

COUNTIF ignores upper/lower case, but it does not ignore extra spaces or accents: "Ana López " and "ana lopez" are not matched. Clean the column first with =TRIM(LOWER(A2)) in a helper column and point the rule at that column.

Doing this every week? CleanSheet removes duplicates (even "Juan Perez" vs "juan pérez"), fixes name capitalization, formats phones to E.164, lowercases emails and standardizes dates and addresses in one click. Free up to 500 rows. See CleanSheet · Get the $9 template