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

Duplicate detection, grouping, and report export

Check For Duplicates Google Sheets Between Sheets

Use a read-only duplicate check for check for duplicates google sheets between 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 check for duplicates google sheets between 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 check for duplicates between sheets in Google Sheets, compare a key column on one tab with the corresponding column on another using COUNTIF. Filter the results to inspect matching records without changing either source range. For a reusable report, normalize the keys first and record both the tab name and row number.

The built-in duplicate checker groups repeated keys and returns counts plus row indexes, all read-only.

Compare keys across two tabs

Assume Sheet1 and Sheet2 each have a header in row 1 and customer IDs in column A. To check each ID in Sheet1 against Sheet2:

  1. Add a helper column in Sheet1 with the header Match status.
  2. Enter this formula in Sheet1!B2, provided column B is available:
=IF(A2="","",IF(COUNTIF(Sheet2!$A$2:$A,A2)>0,"Match","Not found"))
  1. Fill the formula down alongside the data.
  2. Filter the helper column for Match to review IDs present on both tabs.
  3. Repeat the comparison on Sheet2, reversing the sheet references, if you need to identify every matching source row there too.

COUNTIF counts cells in the second sheet range that meet the criterion in A2. A count above zero produces Match; zero produces Not found. The blank check prevents empty source cells from being labeled as matches.

For example, if Sheet1!A2 contains C104 and Sheet2!A7 also contains C104, the formula returns Match. If C104 appears three times on Sheet2, the status remains Match; use the count directly when frequency matters:

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

This count describes occurrences on Sheet2, not the total across both tabs. A value repeated only within Sheet1 is not a cross-sheet match unless it also appears on Sheet2.

Choose the comparison scope

A duplicate depends on the key you select. An email address may identify a person, while an order ID may identify a transaction. Compare matching fields with the same meaning on both tabs; comparing names in one tab with IDs in another produces misleading results.

Decide whether the report should include only keys present on both tabs or all repeated keys across the combined data set. The first scope excludes a key that occurs twice on one tab but nowhere on the other. The second includes it. Neither scope establishes which record is correct or should be removed.

Normalize the selected values

Inconsistent capitalization and extra spaces can conceal matches. If your comparison rules permit it, create a normalized key in an unused column on each tab. For a text ID in A2, use:

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

Fill the formula down on both tabs, then compare those helper columns instead of the original columns. TRIM removes leading and trailing ordinary spaces and reduces repeated ordinary spaces between words. LOWER makes text lowercase, and TO_TEXT converts the value to text.

Normalization changes the comparison key, not the source value. Check whether spaces or letter case have meaning in your IDs before applying it. TRIM does not remove every possible whitespace character, and converting numbers to text cannot restore leading zeros already lost when an ID was entered as a number.

Group and count matches

For a cross-tab summary, suppose the normalized keys are in Sheet1!C2:C and Sheet2!C2:C. On a separate report tab, enter:

=QUERY({Sheet1!C2:C;Sheet2!C2:C},"select Col1, count(Col1) where Col1 is not null group by Col1 having count(Col1) > 1 label Col1 'Key', count(Col1) 'Total count'",0)

The array stacks the two key ranges, and QUERY groups nonblank keys with more than one occurrence. A key with two rows on Sheet1 and none on Sheet2 appears in this report, so the total alone does not prove a cross-tab match. Ensure the report has enough empty cells below and to the right for the returned values.

To distinguish cross-tab matches, place these formulas beside the first returned key in A2, then fill down:

=IF(A2="","",COUNTIF(Sheet1!$C$2:$C,A2))
=IF(A2="","",COUNTIF(Sheet2!$C$2:$C,A2))

A key is present on both tabs when both counts are greater than zero. For instance, counts of 2 and 1 mean three source rows share that key, with at least one row on each tab. A count of 2 and 0 indicates an internal repeat on the first tab only. check each ID in Sheet1 against Sheet2

Inspect the report

Review each group against its original rows before making a decision. A matching customer ID may represent an intentional repeat, an updated record, or an entry error. Compare relevant fields such as name, date, or transaction ID to understand why the key recurs.

Keep source locations with the evidence. In an unused column on each source tab, enter =ROW() in row 2 and fill down to capture the current sheet row number. Pair that number with the tab name, original key, normalized key, and match count when assembling a report. Row numbers can change after sorting, inserting, or deleting rows, so capture the evidence before restructuring the source.

The embedded duplicate check can group pasted records by selected columns and return counts and row indexes for inspection. Its check is read-only; it does not delete records from the source sheet.

Avoid common comparison errors

  • Blank keys: Exclude blank cells rather than treating missing IDs as duplicate values. If a normalized helper can produce an empty string, inspect its output before grouping.
  • Wildcard characters: COUNTIF treats * and ? as wildcards and ~ as an escape character. If keys contain these characters, escape them in the criterion for a literal comparison, or use another exact-comparison method.
  • Different data types: A text ID and a numeric ID may not compare as intended. Standardize the key representation and check examples, especially IDs with leading zeros.
  • Partial range coverage: A fixed range can miss later rows. Open-ended ranges include future entries, but limiting ranges to the actual data may help on large sheets.
  • Similar values: These formulas test criteria rather than approximate matches. Spelling variants and near-duplicate names need a separate review; do not assume they refer to the same entity.
  • Sheet names with spaces: Enclose such names in single quotes, as in 'Customer List'!A2:A. Use the actual tab name in every reference.

Export evidence

Create a report containing the selected key, counts for each tab, source tab names, row numbers, and any fields needed for review. Filter for groups with positive counts on both tabs when the requirement is specifically to compare sheets. Copy reviewed results to a separate tab if you need a snapshot rather than formulas that recalculate as source data changes.

After comparing keys across tabs, download the duplicate report as your verified next step.

Download the report from Google Sheets using the available file download options, and check that the chosen format preserves the fields needed by the reviewer. The embedded check also supports downloading its duplicate evidence. Keep the original spreadsheet unchanged until someone has verified which matching records, if any, require correction.

FAQ

Does this page delete check for duplicates google sheets between sheets?

No, it returns a read-only duplicate report.

What data do I need to check for duplicates?

Paste data for check for duplicates google sheets between sheets; select the key scope; inspect grouped counts, row indexes, and exportable evidence.

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