Duplicate detection, grouping, and report export
Google Sheets Find Duplicates Formula
Use a read-only duplicate check for google sheets find duplicates formula 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 COUNTIF to find duplicate values in Google Sheets without changing the source data. For values in A2:A100, enter the formula below in B2 and fill it down; every occurrence of a repeated value receives the label Duplicate.
=IF(A2="","",IF(COUNTIF($A$2:$A$100,A2)>1,"Duplicate","Unique"))
The formula ignores blank cells, counts each value within the fixed range, and labels values that occur once as Unique. Adjust the range to cover your data set. This Google Sheets find duplicates formula marks the first occurrence as well as later occurrences.
Find duplicates in a column
- Keep headers in row 1 and place the values to check in A2:A100.
- Enter the formula in an empty cell B2.
- Fill B2 down through B100 using the fill handle.
- Filter column B for
Duplicateto inspect matching rows alongside their source values.
The dollar signs in $A$2:$A$100 lock the range reference as you copy the formula. The relative cell reference A2 changes to A3, A4, and so on, so each row is tested against the same range. Include every populated row: values outside the range cannot contribute to the count.
For example, if A2 contains apple, A3 contains pear, and A4 contains apple, rows 2 and 4 are labeled Duplicate. Row 3 is labeled Unique. The labels are formula results, not changes to the original values.
Mark only later occurrences
Use an expanding range when the first occurrence should remain unmarked. Enter this in B2 and fill it down:
=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Repeated occurrence","First occurrence"))
At row 4, the count covers A2:A4. A value is labeled Repeated occurrence only if it appeared earlier in that range. Sorting the source data changes which occurrence is first, so preserve the original order if that distinction matters.
Define the matching key
Choose the columns that identify a duplicate before writing the formula. A repeated email address may be enough for a contact check, while an order report may require both customer ID and order date. A match in one column alone does not prove that entire rows are duplicates.
For a two-column key in A and B, enter this in C2 and fill it down through C100: google-sheets-formula-to-find-duplicates-in-a-column
=IF(OR(A2="",B2=""),"",IF(COUNTIFS($A$2:$A$100,A2,$B$2:$B$100,B2)>1,"Duplicate pair","Unique pair"))
COUNTIFS counts rows where both criteria match on the same row. The OR condition skips incomplete keys; remove or revise that rule only if blanks have a defined meaning in your data. Both criteria ranges must cover corresponding rows and have the same size.
Normalize the selected values
Values that look alike can differ because of extra spaces or capitalization. To compare a cleaned text key while retaining the original, enter this in an empty helper column and fill it down:
=IF(A2="","",LOWER(TRIM(A2)))
Run the duplicate formula against that helper column rather than column A. TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER standardizes case. This does not guarantee that every hidden character, punctuation difference, or inconsistent spelling is resolved.
Normalization changes the comparison rule, not the source values. Check whether case, spaces, or leading zeros are meaningful before applying it, especially to IDs and codes. Store identifiers as text when their leading zeros must be preserved. google-sheets-formula-to-find-duplicates
Group and count matches
For a compact list of repeated values and group counts, place this formula in an empty area:
=QUERY(A2:A100,"select A, count(A) where A is not null group by A having count(A) > 1 label A 'Value', count(A) 'Count'",0)
The result contains one row per duplicate group rather than one row per source record. For apple, pear, apple, it returns apple with a count of 2. The source data stays in place, and the count updates when values in the referenced range change.
A grouped report does not show which source rows contributed to each count. Use the row-level labels or a filter on the key column to inspect those records. If you normalized values, point the grouping formula at the helper column and review original values separately. what-is-the-formula-to-find-duplicates-in-google-sheets
Inspect the report
Check the scope before interpreting a duplicate report: verify the sheet, starting row, ending row, and key columns. A formula limited to A2:A100 does not check row 101 or another sheet. Extend the range when new records fall outside it, and avoid including headers as data.
Review each group's count and its underlying rows. Confirm whether repeated keys represent genuine duplicate records, valid recurring transactions, or different records sharing one field. Filtering by a duplicate label helps isolate candidates, but the label alone is not a deletion decision.
To compare sheets, include the relevant values in a deliberate combined range or helper sheet and retain a source-sheet and row identifier beside each record. A single-column count across the combined values finds repetition within either sheet as well as across sheets; it does not by itself prove that a value appears on both sheets.
The embedded duplicate checker can also inspect pasted data by selected columns and return grouped counts and row indexes. Its check is read-only, and its report can be downloaded for review. how-to-find-duplicates-in-google-sheets-across-multiple-sheets
Export evidence
For a manual report, include the key, count or status, source-sheet name, and original row number. Capture row numbers in a helper column before copying or sorting the results:
=ROW(A2)
Fill the formula down beside the source records, then copy the relevant rows and paste values into a separate report sheet. Pasting values preserves the displayed evidence rather than leaving formulas dependent on a changing source range. Export that report using the spreadsheet's download options in the needed format.
Record the checked range and matching rule with the report so a reviewer can reproduce it. Row numbers identify positions at the time of the check; later inserts, deletions, or sorting can change those positions. Keep a stable record ID too when one exists.
Common mistakes and limits
- Unlocked ranges:
COUNTIF(A2:A100,A2)shifts its range when filled down. Lock the range with dollar signs when every row must use the same scope. - Incomplete scope: A fixed range misses new rows beyond its endpoint. Review the range before each check.
- Wrong key: A repeated name or date alone may not identify a duplicate record. Use all fields required by your matching rule.
- Blank handling: The examples skip blank keys. Decide separately whether missing values need their own report.
- Criteria characters:
COUNTIFandCOUNTIFStreat*and?in text criteria as wildcards. Escape them when they are literal parts of a key, or use another exact-comparison method. - Live results: Formula labels and group counts update as data changes. Save a values-only snapshot when you need evidence of a specific review.
FAQ
Does this page delete google sheets find duplicates formula?
No, it returns a read-only duplicate report.
How do I use this tool?
Paste data for google sheets find duplicates formula; 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