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

Duplicate detection, grouping, and report export

Find Duplicates In A Table Google Sheets

Use a read-only duplicate check for find duplicates in a table 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
Run read-only duplicate check
Review grouped matches for find duplicates in a table 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 duplicates in a Google Sheets table without changing source data, choose the columns that define a match, then use COUNTIF for one column or COUNTIFS for a combination of columns. Filter the results to inspect repeated records, or build a grouped report with counts before deciding what to do with them.

Run the read-only duplicate check tool to see grouped matches and downloadable evidence without editing your sheet.

Define the duplicate scope

A duplicate can mean a repeated ID, a repeated name and email combination, or an entire repeated row. Choose the key before writing a formula: counting names alone may flag different people who share a name, while counting every column may miss records that differ only in a timestamp.

Assume row 1 contains headers, rows 2–1000 contain records, column A contains customer IDs, and column B contains email addresses. Adjust the ranges to fit your data. Fixed ranges keep the examples manageable, but records below row 1000 will not be checked.

Normalize the selected values

Values that look alike may not match because of leading spaces, nonbreaking spaces, or inconsistent capitalization. If those differences should be ignored, create a helper column rather than overwriting the original values. For a text ID in A2, enter this in an empty column and fill it down:

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

SUBSTITUTE replaces nonbreaking spaces with ordinary spaces, TRIM removes leading and trailing spaces and reduces repeated ordinary spaces, and LOWER standardizes case. Use the helper column as the key in the formulas below if that normalization matches your rules. Google Sheets counting functions generally ignore case, so LOWER also makes the normalized values easier to inspect.

Normalization can merge records that should remain distinct. Do not remove punctuation, leading zeros, or internal spaces from identifiers unless those changes reflect the source system’s rules. Review missing data separately: a blank ID is not automatically evidence that two records represent the same customer.

Group and count matches

To count each nonblank ID, enter this formula in C2 and fill it down:

=IF(A2="","",COUNTIF($A$2:$A$1000,A2))

A count greater than 1 marks every occurrence of a repeated value, including its first occurrence. For example, if ID C104 appears on three rows, each of those rows receives a count of 3. Filter column C for values greater than 1 to see the matching records together. how to find duplicates in a row in google sheets

To check a combination of customer ID and email instead, use a separate empty column:

=IF(OR(A2="",B2=""),"",COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2))

This formula counts rows where both fields match and skips rows missing either field. An ID with two different email addresses will not be flagged as a duplicate pair. If incomplete records need review, filter blanks in A or B separately instead of treating them as matches.

COUNTIF and COUNTIFS interpret * and ? in criteria as wildcards. If keys can contain those characters, escape them before using them as criteria or use an exact-comparison approach. Also check spreadsheet locale: some locales require semicolons rather than commas between formula arguments.

Inspect the report for duplicates in a table

Keep row-level evidence beside the source data so that a count can be checked against the full record. A count alone cannot tell you which record is correct, whether a repeated value is expected, or whether two rows differ in other columns. find duplicates in google sheets tabs

  1. Add the count formula in an unused column and fill it through the last data row.
  2. Select the table, including its headers, and choose Data > Create a filter.
  3. Filter the count column to show values greater than 1. Sort by the key if you need to inspect each group together.
  4. Compare the remaining fields in each group and decide whether the repetition is valid, incomplete, or a candidate for later cleanup.

For a compact group-count report, place this formula on a separate sheet or in an empty area:

=QUERY(A1:A1000,"select A, count(A) where A is not null group by A having count(A) > 1 label A 'ID', count(A) 'Count'",1)

The result lists each repeated nonblank ID once with its group count. It does not show the source rows or differences in other fields, so use it alongside the filtered table. QUERY can treat minority data types in a mixed-type column as null; keep IDs consistently typed and verify the report against the source when numbers and text are mixed.

To distinguish later occurrences from the first, use an expanding range: find exact duplicates in google sheets

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

Fill the formula down. The label depends on the current row order, not on which record is newest or most accurate. Sorting the table can change which occurrence is considered first; capture evidence before sorting if original order matters.

Preserve source row references

Add a helper column with =ROW() before filtering or exporting if reviewers need a reference to each record’s current sheet row. That number identifies the row at the time the report is captured, not a permanent record ID. Sorting, inserting, or deleting rows can change row positions, so retain a stable customer ID or another record identifier where available.

Conditional formatting can make repeated IDs easier to scan without filtering. Select A2:A1000, choose Format > Conditional formatting, and use Custom formula is with:

=AND($A2<>"",COUNTIF($A$2:$A$1000,$A2)>1)

Choose a formatting style and apply it. This highlights all occurrences of a repeated nonblank ID; it does not group records or create an audit report. The same wildcard limitation applies to IDs containing * or ?. google sheets find duplicates in an array

Export evidence

For a reviewable report, copy the filtered records, their counts, and captured row references to a separate sheet, then verify that the copied rows correspond to the intended matches. Include headers and the key columns, plus any fields needed to distinguish records. Record the checked range and normalization rules with the report so another reviewer can reproduce the check.

Use File > Download to export the report in a suitable format, such as CSV for a single report sheet or Excel for a workbook. Check the downloaded file before sharing it: CSV does not preserve workbook formatting or multiple sheets, and exported row references describe the source at capture time.

The embedded duplicate checker also runs a read-only check on pasted data, groups matches within the selected columns, and provides downloadable evidence. Its results should still be reviewed against the source records before any cleanup.

Common mistakes and limits

  • Checking the wrong key: A repeated email is not necessarily a duplicate full row. Use COUNTIFS when a combination defines the match.
  • Including headers or missing rows: Start ranges below headers and extend them when the data set grows. Check filtered results against the expected record count.
  • Counting blanks as duplicates: Exclude missing keys deliberately, then review incomplete records as a separate issue.
  • Trusting display alone: Hidden spaces, mixed data types, and formatting can obscure differences. Inspect raw values and test normalization on representative records.
  • Deleting from a count alone: A duplicate count identifies repetition, not the record to keep. Preserve the source and resolve ambiguous groups through review.

FAQ

Does this page delete find duplicates in a table 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