Duplicate detection, grouping, and report export
Formula To Find Duplicate Values In Google Sheets
Use a read-only duplicate check for formula to find duplicate values in google 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.
Use COUNTIF to find duplicate values in Google Sheets: enter the formula below in B2 and fill it down beside the values in A2:A1000. It labels every occurrence of a repeated nonblank value as Duplicate without changing the source values.
=IF(A2="","",IF(COUNTIF($A$2:$A$1000,A2)>1,"Duplicate","Unique"))
The fixed range $A$2:$A$1000 is the search scope; the relative reference A2 changes as you fill down. A value appearing three times receives three Duplicate labels. Extend the range if your data set goes beyond row 1000, and leave enough room in column B for the results.
Label duplicate values in a column
- Put a heading in B1, such as
Status, and confirm B2:B1000 is empty. - Enter the formula in B2 and fill it down through the last data row.
- Filter column B for
Duplicateto inspect all matching source rows. - Check the surrounding columns before deciding whether repeated values represent actual duplicate records.
For example, if A2, A5, and A8 contain Apple, all three rows are labeled Duplicate. A single Pear is labeled Unique. Empty cells receive no label, so missing data does not appear as a duplicate group.
To label only the second and later occurrences, use an expanding range instead:
=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Duplicate","First occurrence"))
The first endpoint stays fixed while the second moves down with the formula. Sorting the source changes which occurrence is first; it does not change how many times the value occurs.
COUNTIF is not case-sensitive and treats * and ? in text criteria as wildcards. For literal values containing those characters, use an equality comparison instead. This version labels all occurrences and also ignores blank cells:
=IF(A2="","",IF(SUMPRODUCT(--($A$2:$A$1000=A2))>1,"Duplicate","Unique"))
A formula checks the values within its range, not every row in the spreadsheet. Confirm the header is excluded and the intended data is included. A cell containing a formula that returns an empty string is treated as blank by the checks above.
Normalize the selected values
Spelling and whitespace can split values that should belong to the same group. If comparison should ignore case and ordinary extra spaces, create a helper column in C2 and fill it down: find duplicate values in a column google sheets
=IF(A2="","",LOWER(TRIM(A2)))
Then run the duplicate formula against column C, using $C$2:$C$1000 as the range and C2 as the criterion. For example, Apple and apple both become apple. Keep column A unchanged so you can review the original entries.
Normalization is a comparison rule, not proof that two records are interchangeable. TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; nonbreaking spaces or other invisible characters may need separate cleanup. Do not normalize identifiers automatically if case or spacing is meaningful.
Group and count matches
The embedded duplicate checker works on selected columns, so verify the key scope before reading repeated values as duplicate records.To produce one row per repeated normalized value, place this formula in an empty area with at least two free columns: google sheets find duplicate in column
=QUERY(C2:C1000,"select C, count(C) where C is not null group by C having count(C) > 1 label C 'Value', count(C) 'Count'",0)
The result lists each duplicate value and its total count, including its first occurrence. It summarizes the helper values rather than listing source rows. If Apple appears three times after normalization, the report shows apple with a count of 3.
QUERY infers a data type for each column, so mixed numbers and text can produce unexpected omissions. Inspect mixed-type data before relying on the summary, and use a consistently typed helper column if the comparison requires one. Do not convert numeric identifiers without checking whether leading zeros matter.
Inspect the report for duplicate values
A grouped count answers how often a value appears; the status column identifies which source rows contain it. Filter the original range by Duplicate and inspect the other fields to distinguish repeated keys from entirely repeated records. Two customers may share a name while having different IDs, for example.
For a row-level report of values and their original row numbers, put the following formula in an empty area. It uses the status labels in B2:B1000: how to find duplicate in google sheets
=FILTER({ROW(A2:A1000),A2:A1000,B2:B1000},B2:B1000="Duplicate")
The three output columns contain the source row number, value, and status. If there are no matches, FILTER returns #N/A; that can mean no duplicate labels matched, but check the status range and formula errors before treating it as evidence of a clean data set. Row numbers reflect the current sheet layout and can change after sorting or inserting rows.
The embedded duplicate checker can check pasted TSV or CSV data using selected columns and produce exportable duplicate evidence. Its check is read-only; review the selected key scope before interpreting a repeated value as a repeated record.
Compare values across sheets
To check whether each value on the current sheet also occurs on a sheet named Archive, enter this in an empty column and fill down: find duplicate in google sheets
=IF(A2="","",IF(COUNTIF(Archive!$A$2:$A$1000,A2)>0,"Found on Archive","Not found"))
This compares each current-sheet value with the specified range on Archive; it does not identify duplicates within either sheet by itself. Quote a sheet name containing spaces, as in 'Archive 2025'!$A$2:$A$1000. The same COUNTIF case and wildcard limitations apply. Check that both ranges use compatible representations before interpreting Not found as missing data.
Export evidence
For a manual report, filter the source rows or use the row-level FILTER result, then copy the relevant results to a separate sheet. If you need a fixed snapshot, use Edit > Paste special > Values only in the destination; otherwise copied formulas may retain references or recalculate as data changes. Include headings, the checked range, and the date of review in the report so another person can understand its scope.
Download the report sheet through File > Download in a suitable format. Verify the downloaded file contains the intended rows and columns, and handle any personal data according to your organization's rules. Formula labels and exported evidence do not delete duplicates; any cleanup remains a separate decision.
FAQ
Does this page delete formula to find duplicate values in google sheets?
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