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

Duplicate detection, grouping, and report export

Find Duplicate Data In Google Sheets

Use a read-only duplicate check for find duplicate data in google sheets 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
Check for duplicates now
Review grouped matches for find duplicate data in google sheets 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

To find duplicate data in Google Sheets, choose the column or columns that define a match, then use COUNTIF or COUNTIFS to flag repeated values. Review the matching rows before changing anything; a repeated value in one column does not always mean the entire row is a duplicate.

Use the embedded duplicate checker for a read-only report with grouped counts and row indexes before editing anything.

Find duplicates in a list

For a list in A2:A100, add a header such as Duplicate status in B1 and enter this formula in B2:

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

Copy the formula down to B100. Each nonblank value that appears more than once receives Duplicate, including its first occurrence. A value that appears once receives Unique; blank cells receive no label.

For example, if A2 and A7 both contain blue, both rows are flagged. The range uses absolute references so the comparison scope stays fixed as you copy the formula; A2 changes to the value on each row.

To Find duplicates in a list in Google Sheets without flagging the first occurrence, use a running count instead:

=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Later occurrence","First occurrence"))

Copy this formula down the list. Sorting the rows can change which occurrence is considered first, so preserve the original order or record it before sorting.

Normalize the selected values

Values that look alike can differ because of extra spaces. If surrounding spaces and repeated spaces between words should not distinguish records, create a helper column in B2:

=IF(A2="","",LOWER(TRIM(A2)))

Copy it down, then apply the duplicate formula to B2:B100 instead of column A. TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER makes the helper values lowercase. Keep the original values for review.

Choose normalization rules to suit the data. Removing spaces or changing case can merge values that should remain distinct, and TRIM does not remove every kind of whitespace. Text values containing digits can also differ from numeric values, even when they look similar on screen.

Find duplicate rows using multiple columns

A duplicate row is only meaningful after you define its key. For example, if an order is identified by customer in column A and order number in column B, enter this in C2 and copy it down:

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

COUNTIFS counts rows where both conditions match. Two rows with the same customer but different order numbers remain unique under this rule. Add another range and criterion if a third column belongs in the key.

The formula skips rows with a blank key component. If blanks are valid in your data set, decide explicitly whether two blank components should match and adjust the blank check. To detect entirely identical rows, include every relevant column rather than assuming a matching ID proves that all fields match.

Inspect the report for duplicate data

Filter the status column to show Duplicate or Duplicate key, then compare the source records. Check whether differences in dates, amounts or other fields represent valid separate events or conflicting entries. A flag identifies a repeated key; it does not identify which row should be retained.

For a visual check of one column, conditional formatting can highlight all nonblank occurrences:

  1. Select A2:A100, excluding the header.
  2. Open Format > Conditional formatting.
  3. Under Format rules, choose Custom formula is.
  4. Enter the formula below, choose a style and select Done.
=AND(A2<>"",COUNTIF($A$2:$A$100,A2)>1)

The reference A2 must correspond to the first cell in the selected range. Highlighting changes formatting, not source values, and does not produce group counts or row indexes by itself.

The embedded duplicate checker also provides a read-only report for pasted data, with grouped counts and row indexes for the selected key scope. Review those results against the original sheet before using them as evidence for a later decision.

Group and count matches

To summarize a list, first produce one row per nonblank value. Place this formula in an empty area, such as D2, with room for the results to expand:

=UNIQUE(FILTER(A2:A100,A2:A100<>""))

In E2, count the value returned in D2, then copy the formula down alongside the results:

=IF(D2="","",COUNTIF($A$2:$A$100,D2))

Filter column E for counts greater than 1 to see duplicate groups. A count of 3 means three occurrences in the selected range, not necessarily three rows to remove. Use the status column or a row-level report to inspect their locations.

For a reproducible row reference, add a helper column with =ROW() beside the source data before sorting or exporting. It records the current sheet row number; if rows are subsequently inserted, deleted or moved, verify the reference against the original snapshot.

Compare sheets without changing the source

To check whether each value in Sheet1 also occurs in Sheet2, enter this formula beside Sheet1 data and copy it down:

=IF(A2="","",IF(COUNTIF(Sheet2!$A$2:$A$100,A2)>0,"Found in Sheet2","Not found"))

This tests membership, not whether the two sheets contain the same number of occurrences. For example, one match in Sheet2 makes every matching Sheet1 row show Found in Sheet2. Use counts on both sheets when occurrence totals matter, and normalize both sides consistently before comparing.

Export evidence

Keep the original data intact while preparing a report. Record the sheet name, checked range, key columns, normalization rules and check date alongside the results so another reviewer can repeat the comparison.

  1. Filter the helper status column to the duplicate rows, or retain the grouped count summary.
  2. Copy the relevant results to a separate report sheet, including source row references and key values.
  3. Check that counts and row references match the source snapshot.
  4. Use File > Download to export the report in a suitable format; check the downloaded file before sharing it.
Export a controlled report of duplicate groups and row references instead of deleting data right away.

The embedded checker also supports downloading duplicate evidence. Limit exported fields to those needed for review, especially when the spreadsheet contains personal or confidential data.

Common mistakes and limits

  • Wrong scope: Extend fixed ranges when data grows, and exclude headers from both the selection and formulas.
  • Wrong key: A repeated name may be legitimate; combine fields when the business rule requires a more precise identifier.
  • Hidden differences: Inspect whitespace, data types and formatting before treating similar-looking values as identical.
  • Formula criteria: COUNTIF and COUNTIFS interpret wildcard characters in text criteria. If keys contain literal * or ?, escape them or validate matches using another method.
  • Premature cleanup: Preserve a snapshot and resolve conflicting records before deleting or merging anything. Detection alone does not establish which record is correct.

FAQ

Does this page delete find duplicate data in google sheets?

No, it returns a read-only duplicate report.

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