Duplicate detection, grouping, and report export
Check For Duplicates Google Sheets Across Multiple Sheets
Use a read-only duplicate check for check for duplicates google sheets across multiple 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.
Report reading guide
Read duplicate results in three passes
- Scope: confirm selected key columns.
- Groups: review repeated values and counts.
- Rows: compare source row numbers before acting.
How to check for duplicates in Google Sheets across multiple sheets
To check for duplicates in Google Sheets across multiple sheets, combine every relevant range into one key column, count how often each key repeats, and group the results by frequency. A read-only workflow leaves the source spreadsheet untouched, so it is safe on shared and production files.
The tool runs a read-only check on pasted TSV or CSV data, letting you group repeated values and download row indexes without altering the source spreadsheet.Step 1: Define the key scope
Duplicate detection only means something once the identity of a record is defined. Decide which tabs contribute rows and which columns form the key. An email column is one common key; customer number plus order number is another. Record the scope before writing formulas, because every later step inherits it.
- Choose one or more identity columns per sheet.
- Confirm the same headers exist on every tab you combine.
- Decide whether a repeated key alone is a duplicate or the whole row must repeat.
Step 2: Combine ranges from every sheet
In a staging sheet, build a column that holds the key values from all tabs. A range union works when tabs share the same layout:
={Orders!A2:A500;Returns!A2:B500}
Names with spaces need single quotes: {'Order History'!A2:A500}. Where your Google Workspace version supports it, VSTACK is clearer:
=VSTACK(Orders!A2:A500,Returns!A2:A500)
Add a companion column recording the source tab so a duplicate group can be traced back to a specific sheet range.
Step 3: Normalize the selected values
Raw keys rarely match exactly. Extra spaces, non-breaking spaces, mixed case and numbers stored as text all create false negatives. Normalize once and use that column for every count:
=LOWER(TRIM(CLEAN(A2)))
Strip non-breaking spaces when an export contains them:
=LOWER(TRIM(SUBSTITUTE(CLEAN(A2),CHAR(160)," ")))
Normalize punctuation too if the source systems differ:
=LOWER(TRIM(SUBSTITUTE(SUBSTITUTE(CLEAN(A2),".",""),"-"," ")))
Step 4: Group and count matches
With the normalized key in column B, count occurrences per row:
=COUNTIF($B$2:$B$1001,B2)
Flag every repeated key, including the first occurrence: how to find duplicates in google sheets across multiple sheets
=IF(COUNTIF($B$2:$B$1001,B2)>1,"DUPLICATE","UNIQUE")
List only the duplicated keys, deduplicated and sorted:
=SORT(UNIQUE(FILTER($B$2:$B$1001,COUNTIF($B$2:$B$1001,$B$2:$B$1001)>1)))
Attach the group count to each of those keys:
=COUNTIF($B$2:$B$1001,SORT(UNIQUE(FILTER($B$2:$B$1001,COUNTIF($B$2:$B$1001,$B$2:$B$1001)>1))))
Recover the row indexes inside a group, which is the evidence you need later:
=IFERROR(FILTER(ROW($B$2:$B$1001),$B$2:$B$1001=B2),"")
To match full rows instead of one column, use several criteria: how to check two google sheets for duplicates
=COUNTIFS($A$2:$A$1001,A2,$B$2:$B$1001,B2)
Across separate tabs, QUERY produces grouped counts in one step:
=QUERY({Sheet1!A2:B500;Sheet2!A2:B500},"SELECT A, COUNT(A) GROUP BY A HAVING COUNT(A)>1 ORDER BY COUNT(A) DESC LABEL COUNT(A) 'occurrences'",1)
Inspect the report for duplicates across multiple sheets
Read the group counts before trusting them. A key appearing hundreds of times usually points to a blank cell or a constant, not real duplication. Check three things:
- Empty or placeholder keys such as
-orN/Adominating the counts. - Rows pulled from a header row or a totals row that should have been excluded.
- Identical counts on every sheet, which suggests the union range was pasted twice.
Sort by occurrence count descending and scan the top groups, then compare sheet ranges to see whether duplicates cluster in one source or spread evenly. A Pivot table built from the normalized key column gives group counts and source labels without formulas, which is a fast check on the formula results.
Check duplicates in two Google Sheets
Comparing two tabs is a lookup problem. Pull the matching value from the second sheet:
=IFERROR(INDEX(Sheet2!$B$2:$B$500,MATCH(A2,Sheet2!$A$2:$A$500,0)),"")
XLOOKUP does the same job and can return the matched position in another column: how to filter duplicates in sheets
=IFERROR(XLOOKUP(A2,Sheet2!$A$2:$A$500,Sheet2!$B$2:$B$500,"not found"),"")
VLOOKUP still works when the lookup column is leftmost in the second range:
=IFERROR(VLOOKUP(A2,Sheet2!$A$2:$B$500,2,FALSE),"")
Mark each row as matched or missing:
=IF(COUNTIF(Sheet2!$A$2:$A$500,A2)>0,"Match","No match")
COUNTIF, VLOOKUP and MATCH are case-insensitive and treat * and ? in keys as wildcards. For an exact, case-sensitive comparison, count with SUMPRODUCT and EXACT:
=SUMPRODUCT(--EXACT($B$2:$B$1001,B2))
For a case-sensitive lookup, set the match mode in XLOOKUP to 2 for an exact case-sensitive match. filter duplicates in google sheets
Export evidence
A duplicate report is only useful if the rows behind it can be reviewed and handed off. Build a flat, export-ready sheet with the key, the source sheet name, the row number and the occurrence count, one row per source row so each duplicate pair can be matched by eye. Download it with File > Download > Comma-separated values (csv) for the active sheet.
Conditional formatting helps reviewers spot repeats directly in the source view. Apply a custom formula rule to the key column:
=COUNTIF($B$2:$B$1001,B2)>1
and give it a fill colour. If the report grows past a few hundred rows, use a Pivot table for the summary and keep the formula-built sheet for row-level detail.
Limitations and common mistakes
- COUNTIF treats numeric-looking text as numbers, so
00123and123can collide. Keep keys as text when leading zeros matter. - Counts include the first occurrence, so a pair shows 2, not 1.
- Blanks and placeholder values match each other and inflate group counts.
- Large unions slow recalculation, so narrow each range to the rows that hold data.
- Deleting before reviewing destroys the evidence. Filter, mark and export first.
- Normalization changes matching behaviour, so two genuinely different records can merge.
A read-only second opinion
The duplicate checker bundled with this page accepts pasted TSV or CSV data, groups repeated values, and returns row indexes you can download as a report. You choose which columns form the key, which helps confirm a COUNTIF result before applying it to a live file. Data stays in the browser and no sheet is modified.
FAQ
Does this page delete check for duplicates google sheets across multiple sheets?
No, it returns a read-only duplicate report.
How does it work?
Paste data for check for duplicates google sheets across multiple 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