Duplicate detection, grouping, and report export
How To Find Duplicate In Google Sheets Formula
Use a read-only duplicate check for how to find duplicate in google sheets 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.
To find duplicates in Google Sheets with a formula, use COUNTIF to count each value in a fixed range, then flag counts greater than one. For values in A2:A100, enter the following in B2 and fill it down:
=IF(A2="","",IF(COUNTIF($A$2:$A$100,A2)>1,"Duplicate","Unique"))
Every nonblank occurrence of a repeated value receives the label Duplicate, including its first occurrence. The formula leaves blank cells unlabelled and does not delete or change the source values.
Find duplicate values in one column
The range reference $A$2:$A$100 is fixed, while the cell reference A2 changes as you fill the formula down. Adjust the end of the range to cover your data set; rows outside it will not be counted.
- Reserve an empty column beside the values you want to check.
- Enter the formula in the row aligned with the first data value.
- Fill it down through the last row of the selected range.
- Filter the label column for
Duplicateto inspect matching records.
For example, if A2 and A7 both contain Maple, both rows are labelled Duplicate. A value that appears once is labelled Unique. The header is excluded because the range starts at row 2.
Mark only repeated occurrences
Use an expanding range when you want to distinguish the first occurrence from later copies:
=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Repeated occurrence","First occurrence"))
Fill this formula down from B2. Its range starts at $A$2 but ends at the current row, so the first Maple is marked First occurrence and the second is marked Repeated occurrence. This is useful for reviewing later entries, but a first occurrence may still belong to a duplicate group.
Normalize the selected values
Values that look alike can differ because of extra spaces or letter case. To compare a cleaned version without overwriting the original, enter this in an empty helper column, such as C2, and fill down:
=IF(A2="","",LOWER(TRIM(A2)))
Then use the first COUNTIF formula with C in place of A and place the result in another empty column. TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER standardizes letter case. Review the original values before treating normalized matches as equivalent, especially when spaces or capitalization carry meaning.
Normalization does not resolve every difference. Nonbreaking spaces, punctuation, spelling variations, and values stored as text rather than numbers may need separate investigation. A source cell containing only ordinary spaces becomes blank after this helper formula, so it is excluded by the blank guard. formula to find duplicate values in google sheets
Group and count matches
For a summary rather than a label on every row, place this formula in an empty area with room for two output columns:
=IFNA(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),"No duplicate groups")
QUERY groups values and returns only groups with a count above one. For example, three occurrences of Maple produce one summary row with a count of 3. The count covers only A2:A100; extend the range if the data grows. If there are no matching groups, the formula displays No duplicate groups.
Use the normalized helper column as the query range when the report should group cleaned values. Mixed data types can affect how QUERY interprets a column, so check its results against the source when numbers and text occur together.
Check duplicate rows across columns
A repeated value in one column does not necessarily mean the entire record is duplicated. For a key made from columns A and B, use COUNTIFS to require both fields to match: google script find duplicate sheets
=IF(OR(A2="",B2=""),"",IF(COUNTIFS($A$2:$A$100,A2,$B$2:$B$100,B2)>1,"Duplicate key","Unique key"))
Enter the formula in an empty column and fill it down. Two rows labelled Duplicate key have the same A and B values within the selected ranges; other columns can still differ. The blank guard excludes rows missing either key field. Add further range-and-criterion pairs if the definition of a duplicate requires more columns.
For example, two records with Maple in A and North in B match as a composite key. A record with Maple and South does not match that pair. Choose key columns deliberately: an email address may identify a contact, while an order ID plus a product code may identify a line item.
Compare values across sheets
To find values on the current sheet that also appear on a sheet named Other, enter this beside the current sheet's data and fill down:
=IF(A2="","",IF(COUNTIF(Other!$A$2:$A$100,A2)>0,"Match on Other","No match on Other"))
This formula checks whether each current-sheet value appears in the other sheet's range. It does not identify duplicates within the current sheet or count every occurrence across both sheets. If the other sheet name contains spaces, enclose it in single quotes, as in 'Other Sheet'!$A$2:$A$100. google sheets cell not equal to formatting
To find repeats across both ranges as one combined set, stack them in an empty column and run the single-column duplicate formula against the stacked output:
={A2:A100;Other!A2:A100}
The stacked list includes blanks and loses the original sheet and row identifiers unless you retain them separately. Use the cross-sheet match formula when source location matters, or build a separate report that includes identifiers before combining records.
Inspect the report for duplicate values
Check both group counts and underlying rows before deciding what a match means. A count confirms repetition within the chosen range; it does not establish which record is correct or whether a repeated value is an error.
- Verify that the first and last data rows are inside every range reference.
- Compare original values alongside normalized keys to spot changes introduced by cleaning.
- Check missing data separately; blank guards intentionally exclude it.
- Review columns outside the key for conflicting dates, names, or other details.
- Confirm whether the report flags all occurrences or only later ones.
For row-level evidence, add =ROW() in an empty column and fill it down beside the source records. Filter for duplicate labels and retain the sheet name, row number, key values, and relevant original fields. Row numbers describe the current layout and can change after rows are inserted, deleted, or sorted. google sheets search sheet for duplicates multple columns
The embedded duplicate checker also supports checking pasted data against selected columns and downloading evidence. Compare its scope with the formula range before reconciling results.
Export evidence
Create a separate report sheet containing the filtered duplicate rows and their source identifiers, then use File → Download to export the spreadsheet in a suitable format. If you copy formula results into the report, paste values only when you need a fixed snapshot rather than formulas that recalculate.
Review the export before sharing it, especially if records contain personal or sensitive data. Keep the original data unchanged while investigating; neither a duplicate label nor a group count is a safe instruction to delete a row.
FAQ
Does this page delete how to find duplicate in google sheets formula?
No, it returns a read-only duplicate report.
How do I use this tool?
Paste data for how to find duplicate in google sheets 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