Duplicate detection, grouping, and report export
Google Sheets Find Duplicates Across Sheets
Use a read-only duplicate check for google sheets find duplicates across 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.
To find duplicates across sheets in Google Sheets, compare the key column on one tab with the corresponding column on another using COUNTIF. For a grouped report, combine the values with their source tab and row number, then count each key. Both approaches leave the source data unchanged.
Compare values on two sheets
Assume Sheet1 and Sheet2 contain IDs in column A, with a column header in row 1. To flag each ID on Sheet1 that also appears on Sheet2, enter this formula in Sheet1!B2 and fill it down:
=IF(A2="","",IF(COUNTIF(Sheet2!$A$2:$A$1000,A2)>0,"Match","No match"))
COUNTIF counts occurrences of the current ID in the other sheet range. A positive count returns Match; zero returns No match. Blank cells on Sheet1 return a blank result. Adjust row 1000 to cover the actual data range.
To mark matches on Sheet2 as well, enter the reverse comparison in Sheet2!B2 and fill it down:
=IF(A2="","",IF(COUNTIF(Sheet1!$A$2:$A$1000,A2)>0,"Match","No match"))
For example, if ID A104 appears once on each tab, both formulas label it Match. If it appears twice on Sheet2, the Sheet1 formula still returns one label; change the formula to return the count if you need the number of occurrences.
This method detects values shared by two sheets, not duplicates confined to one sheet. It compares one selected column, not entire rows. A shared name, for example, may describe two different people; use a stable ID or a suitable combination of fields when identity matters.
Normalize the selected values
Inconsistent spacing and capitalization can hide or complicate comparisons. Create a helper column on each tab if those differences should not distinguish records. For text IDs in A2, use:
=IF(A2="","",LOWER(TRIM(CLEAN(A2&""))))
Fill the formula down, then compare the helper columns instead of the original column A. CLEAN removes non-printable ASCII characters, TRIM removes leading and trailing spaces and reduces repeated spaces, and LOWER standardizes case. The &"" expression converts values to text; test the result before applying it to numeric IDs or dates. how-to-find-duplicates-across-in-google-sheets
Normalization is a matching rule, not a correction to source data. It may combine values that should remain distinct, and it does not remove every type of unusual whitespace. Review examples such as AB-12 and ab-12 before treating them as the same key. Preserve leading zeros in identifiers as text when they are significant.
Group and count matches
A combined report shows repeated keys from both tabs, including duplicates within a single tab. On a new report sheet, put the headers Key, Source and Row in A1:C1. Enter this formula in A2, leaving the cells below and to the right empty:
=QUERY({Sheet1!A2:A1000,IF(Sheet1!A2:A1000<>"","Sheet1",""),ROW(Sheet1!A2:A1000);Sheet2!A2:A1000,IF(Sheet2!A2:A1000<>"","Sheet2",""),ROW(Sheet2!A2:A1000)},"select Col1, Col2, Col3 where Col1 is not null",0)The built-in checker groups repeats by selected columns and returns source row indexes you can copy into a report.
The array stacks both sheet ranges and records each value's source tab and original row number. QUERY excludes blank keys. Use corresponding helper columns in place of column A if your report should group normalized values; keep the original sheets available for review. how-can-i-find-duplicates-in-google-sheets
Add Count as the header in D1, then enter this formula in D2 and fill it down far enough to cover the combined report:
=IF(A2="","",COUNTIF($A$2:$A,A2))
A count greater than one identifies a repeated key in the combined data set. Filter column D for counts greater than one to inspect its rows. This includes a key repeated only on Sheet1; it does not by itself prove that the key appears on both tabs.
To identify keys represented on both tabs, add Across sheets in E1, enter the following in E2, and fill it down:
=IF(A2="","",IF(AND(COUNTIFS($A$2:$A,A2,$B$2:$B,"Sheet1")>0,COUNTIFS($A$2:$A,A2,$B$2:$B,"Sheet2")>0),"Yes","No"))
COUNTIFS checks for the key under each source label. Filter column E for Yes to see only cross-sheet matches. If the key occurs twice on Sheet1 and once on Sheet2, each report row shows a total count of three and Yes in column E. how-find-duplicates-in-google-sheets
Inspect the report for cross-sheet duplicates
Check the key, source and row together before deciding what a match means. A repeated email address may identify one customer across tabs, while a repeated surname alone may not. Open the referenced source rows and compare relevant fields such as an ID or date.
- Confirm scope: Include every intended row and exclude headers. Fixed ranges ending at row 1000 omit later entries.
- Check key type: Numeric values and text that looks numeric can behave differently. Use consistent types and verify leading zeros.
- Inspect normalization: Compare helper values with originals to catch accidental merges or remaining whitespace differences.
- Distinguish counts: A group count measures all occurrences in the combined report; the across-sheets flag checks whether both source labels are present.
- Watch the output area: The combined formula needs empty cells for its results. Existing content can prevent the array from expanding.
If a tab name contains spaces, enclose it in single quotes in formulas, as in 'Customer Records'!A2:A1000. Keep source labels in the combined formula and COUNTIFS test consistent if you rename them. For more tabs, add another equally sized key, source and row block; update the cross-sheet test to reflect which tabs must match.
The embedded duplicate checker can also check pasted CSV or TSV data using selected columns and provide grouped counts and row-level evidence. Include source and row information in the pasted data when you need to trace a match back to a tab. how-to-find-any-duplicates-in-google-sheets
Export evidence
Before exporting, filter the report to the required scope: all repeated keys or only keys found on both sheets. Keep the key, count, source and original row number together so another reviewer can locate each record. If normalized keys are used, document that choice alongside the report and retain access to the original values.
To create a static evidence sheet, copy the filtered report into a separate sheet using Paste special → Values only, then check that the pasted rows match the filter. Use File → Download to select an available export format. Review the downloaded file before sharing, especially if it contains personal or sensitive data.
Export the final filtered report as values only so reviewers can trace every flagged row back to its sheet and row number.The check is read-only; a match is evidence for review, not an instruction to delete a row. Agree which record is authoritative and make any cleanup separately after checking the source.
FAQ
Does this page delete google sheets find duplicates across sheets?
No, it returns a read-only duplicate report.
How does the check work?
Paste data for google sheets find duplicates across 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