Duplicate detection, grouping, and report export
Google Sheets Formula To Check For Duplicates
Use a read-only duplicate check for google sheets formula to check for duplicates 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.
Use a read-only formula check for google sheets formula to check for duplicates when you need to identify repeated values without changing the source sheet. The approach returns grouped matches, row indexes, and an exportable result instead of removing or altering any data.
Set up the data you want to analyze
Paste or select the dataset from your sheet. Use the actual sheet range for live formulas, for example A2:B20. A cell reference like A2 works for single values; a range reference such as A2:A20 covers a whole column. If several sheets are involved, note each one before starting.
Normalize the selected values
Duplicates often hide behind formatting rather than different content. Make values comparable by:
- Wrapping text in
TRIMto remove leading and trailing spaces,=TRIM(A2). - Using
LOWERfor a case-insensitive comparison,=LOWER(A2). - Applying
CLEANif the data contains line breaks or non-printing characters,=CLEAN(A2). - Unifying numbers and number-like text so
123and"123"count as the same value. - Keeping
A2andB2ascell referenceinputs rather than hardcoding values, so the formula stays reusable.
For a ready-to-inspect column, build a helper column next to your data with one of these formulas. formula to check duplicates in google sheets
=LOWER(TRIM(CLEAN(A2)))
This helper column contains the normalized value for every row, which makes the duplicate logic straightforward.
Group and count matches
COUNTIF is the core function for this task. Place it against each normalized value to count how many times that value appears in the selected scope.
=COUNTIF($A$2:$A$20,A2)
The $A$2:$A$20 part is an absolute range reference, so dragging the formula down does not shift the scope. Any row where the result is greater than 1 is a duplicate. how to check for duplicates in different google sheets
To group rows by value instead of just counting them, nest COUNTIF inside ARRAYFORMULA so every row evaluates at once:
=ARRAYFORMULA(COUNTIF($A$2:$A$20,A2:A20))
Then filter the helper column for values above 1. The grouped view shows duplicate groups: how many rows belong to each group and which cell reference values repeat.
For case-sensitive duplicate detection, drop LOWER. COUNTIF is case-insensitive by default, so "Apple" and "apple" count as one match. Use EXACT for a true case-sensitive comparison: check for duplicates google sheets across multiple sheets
=SUMPRODUCT(--EXACT($A$2:$A$20,A2))
EXACT returns TRUE only when text matches including capitalization; SUMPRODUCT counts the true matches. This matters when brand names or codes differ only by case.
Inspect the report for google sheets formula to check for duplicates
Review the grouped output in three layers. First, confirm the scope is correct; an off-by-one range or an extra blank row changes the result. Second, check the group counts — a count of 2 means two rows share one value, 3 means three rows, and so on. Third, read the row indexes so you can return to the source sheet and locate each repeated record.
Pay attention to missing data. Empty cells often inflate counts because blank equals blank. Decide whether blanks count as duplicates and, if not, exclude them with an IF wrapper:
=IF(A2="","",IF(COUNTIF($A$2:$A$20,A2)>1,"duplicate","unique"))
Common mistakes include comparing across the wrong sheet, leaving spaces inside text, and mixing absolute and relative range reference styles. Double-check the comparison direction: A2:A20 against itself finds internal duplicates, while comparing A2:A20 against C2:C20 finds values shared between two columns. For the latter, use:
=COUNTIF($C$2:$C$20,A2)
A result greater than 0 indicates a match between the two columns.
Export evidence for the next step
When the check is complete, copy the helper column, the count column, and the corresponding row numbers to a new sheet. Save that sheet as a CSV or a separate spreadsheet before any cleanup. This preserves an auditable trail of which row indexes matched and prevents accidental loss of original data. how to check two google sheets for duplicates
The embedded duplicate-check tool fits this workflow when you prefer not to write formulas by hand. Paste TSV or CSV data, choose the key column(s), and run the read-only check operation. It returns scoped records with status labels and export-ready evidence, so you can download the result for review. Even when you use it, verify the grouping against the COUNTIF logic above.
Read-only checking finds repeated values, highlights duplicate groups, and produces exportable evidence — it does not delete anything.
FAQ
Does this page delete google sheets formula to check for duplicates?
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