CleanRows · Google Sheets guides

How to count duplicates in Google Sheets

Count how many times each value repeats, list the repeated values, and count duplicate rows.

Times each value appears (B2, fill down):

=COUNTIF(A$2:A,A2)

List of values that appear more than once:

=FILTER(UNIQUE(A2:A), UNIQUE(A2:A)<>"", COUNTIF(A2:A, UNIQUE(A2:A))>1)

Number of extra (duplicate) rows:

=COUNTA(A2:A)-COUNTUNIQUE(A2:A)
Do it in two clicks inside Google Sheets. CleanRows highlights, deletes or moves duplicates by the columns you pick, ignores case/spaces/accents and compares two sheets. Free up to 1,000 rows. Get CleanRows →

More guides

Free online duplicate remover (CSV / list)