Check for Duplicates in Google Sheets
en
Run read-only duplicate check

Duplicate detection, grouping, and report export

Google Sheets Find Duplicates In Rows

Use a read-only duplicate check for google sheets find duplicates in rows when you need to inspect repeated values without changing the source sheet. Paste the relevant data, select the key scope, review grouped counts and row indexes, and export the evidence.

Inspect duplicate groups in the selected sheet dataKeep source values unchanged during the checkExport row-level evidence for the next step
Run duplicate check now
Review grouped matches for google sheets find duplicates in rows before exporting duplicate evidence.

Report reading guide

Read duplicate results in three passes

  1. Scope: confirm selected key columns.
  2. Groups: review repeated values and counts.
  3. Rows: compare source row numbers before acting.
Key customer@example.comCount 3 matchesRows 12, 27, 41

Find duplicate rows with a count column

Google Sheets finds duplicates fast with COUNTIF: count how many times each value appears, then flag every row whose count is greater than one. Work in helper columns and the source data set stays untouched, which makes the check safe to repeat.

Try the read-only duplicate checker above, then see how COUNTIF formulas build the same report by hand.

Duplicate detection is only meaningful once the comparison scope is fixed. Decide which sheet or sheets take part, which columns act as the key, and whether a header row is included before writing any formula.

Step 1: Set the comparison scope

  • One sheet, one column — the common case: a customer ID, an email, an invoice number in column A.
  • Whole row — a row is a duplicate only when every column matches, so build the key from two or more columns.
  • Two sheets — put the second range on another tab and compare both on a shared key.
  • Header row — start ranges below the header, otherwise the header text itself can register as a duplicate value.

Step 2: Normalize the selected values

Duplicates hide behind invisible characters and inconsistent spacing. Build one clean helper column, then run counts against it.

=TRIM(SUBSTITUTE(CLEAN(A2),CHAR(160)," "))

CLEAN strips control characters, CHAR(160) removes the non-breaking space that web imports leave behind, and TRIM collapses repeated spaces. Add UPPER when case should not matter:

=UPPER(TRIM(A2))

Numbers stored as text break matching. Convert them once:

=IFERROR(VALUE(A2),A2)

Keep dates in a single format. Mixed date strings and real date values never compare equal, so convert text dates with DATEVALUE before counting.

Step 3: Group and count matches

COUNTIF returns the occurrence count for the current row:

=COUNTIF($A$2:$A$200,A2)

Turn that count into a flag:

=IF(COUNTIF($A$2:$A$200,A2)>1,"Duplicate","Unique")

Anchoring the range with $ is what makes the formula work when you fill it down. A relative range shifts on every copy and silently produces wrong counts.

To list every duplicated value in one column:

=ARRAYFORMULA(IF(COUNTIF($A$2:$A$200,$A$2:$A$200)>1,$A$2:$A$200,""))

Wrap it in FILTER and UNIQUE to get a clean list of repeated values:

=SORT(UNIQUE(FILTER($A$2:$A$200,COUNTIF($A$2:$A$200,$A$2:$A$200)>1)))

QUERY groups and counts in a single step, which is the fastest way to read group counts for a whole column:

=QUERY($A$2:$A$200,"select A, count(A) group by A having count(A)>1",1)

Step 4: Compare rows, not just single columns

When two columns define the row, combine criteria with COUNTIFS:

=IF(COUNTIFS($A$2:$A$200,A2,$B$2:$B$200,B2)>1,"Duplicate","Unique")

To compare sheets, point the second range at the other tab:

=IF(COUNTIF(Sheet2!$A:$A,A2)>0,"In both","Only here")

Use MATCH when you need the row position of the match on the other sheet:

=IFERROR(MATCH(A2,Sheet2!$A$2:$A$200,0)+1,"Not found")

Inspect the report for google sheets find duplicates in rows

A duplicate report earns trust only after you read it. Check these points before acting.

  • Group counts make sense. A count of 2 on an ID column usually means a genuine repeat. A count of 40 on a status column means the column is not a unique key.
  • Row indexes match reality. The reported row number should point at the row you expect. If it is off by one, the range probably includes the header.
  • Blank cells count as values. COUNTIF treats an empty cell like any other. Exclude blanks with COUNTIFS and the "<>" criterion.
  • Near matches. Real duplicates often differ by one space or one character. Normalization catches what exact counting misses.
  • Two-row pairs. A repeated value sitting in two rows is the smallest duplicate case. Filter the flag column on "Duplicate" and every row index appears together, which shows exactly which two rows pair up.

When you need to google sheets find duplicates in two rows only, compare those rows cell by cell:

=SUMPRODUCT(--(A2:D2<>A3:D3))

The result is the number of cells that differ between row 2 and row 3 across columns A to D. A result of 0 means the two rows are identical.

The read-only duplicate checker on this page takes pasted TSV or CSV data, lets you choose the columns to compare, and returns grouped counts with row indexes plus a downloadable report. It never writes to the source sheet, and the pasted data stays in the browser.

Export evidence

Duplicate work gets questioned later, so keep a record that stands on its own.

  1. Copy the flagged range into a new sheet named for the check, next to a timestamp column.
  2. Export that sheet as CSV for sharing outside Sheets.
  3. Record the scope you used: sheet name, column range, whether headers were included.
  4. Leave the original sheet unchanged so the check can be repeated later.

For a large data set, export only the flag column plus the key column. The evidence you need is the key, the count, and the row number.

Limitations and common mistakes

  • **COUNTIF is case-insensitive and treats * and ? as wildcards.** "Acme" and "ACME" count as the same value, and a literal question mark matches any character. Use SUMPRODUCT with EXACT when case matters.
  • Relative references drift. Always anchor the counted range with $.
  • COUNTIF cannot match text longer than roughly 255 characters. Hash long keys in a helper column before comparing.
  • Numeric values keep 15 digits of precision. IDs longer than 15 digits must stay text.
  • Trailing and non-breaking spaces. Normalize first, or clean inside the count criteria.
  • Data > Cleanup > Remove duplicates drops the evidence. It deletes rows without reporting which ones it removed. Copy the sheet first, or mark rows with a helper column and delete them yourself.
  • Filtering hides row numbers. Add a ROW-based helper column before filtering if the report must point back to source rows.

Worked example

Suppose column A holds order IDs and column B holds order status across 200 rows.

  1. In C2 enter =TRIM(A2) and fill down to C200.
  2. In D2 enter the COUNTIF flag formula and fill down to D200.
  3. Filter column D on "Duplicate".
  4. Read the row indexes in column A of the filtered view to see which orders repeat.
  5. Inspect the status of those orders. Repeated IDs with different statuses usually mean an update was recorded twice.
=QUERY($A$2:$B$200,"select A, B, count(A) group by A, B having count(A)>1",1)

This returns one row per repeated ID and status pair with the number of occurrences, which is usually the fastest route to the actual cause of the duplicate.

FAQ

Run read-only duplicate check to inspect duplicate detection, grouping, and report export and export a controlled report without destructive cleanup.

Run read-only duplicate check to inspect duplicate detection, grouping, and report export and export a controlled report without destructive cleanup.

Run read-only duplicate check

Run read-only duplicate check