Duplicate detection, grouping, and report export
How To Find Duplicate Records In Google Sheets
Use a read-only duplicate check for how to find duplicate records 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.
To find duplicate records in Google Sheets, choose the columns that define a match, then use COUNTIF or COUNTIFS to flag rows with the same key. Filter the flags to inspect every occurrence, or create a grouped report to see counts without changing the source data.
Define the duplicate scope
A duplicate record depends on the key you choose. If column A contains customer IDs, repeated IDs may be enough. If a record is unique only by customer ID and date, compare both columns; matching IDs with different dates should remain separate groups.
Include every relevant column when you need exact duplicate rows. Check whether headers, blank keys, partial records and spelling differences should count before applying a formula. For example, two orders from the same customer are not necessarily duplicates if their order IDs differ.
Normalize the selected values
Extra spaces and inconsistent capitalization can hide matches. To compare a cleaned version of text in A2, put this formula in an empty helper column and fill it down:
=LOWER(TRIM(A2))
TRIM removes leading and trailing spaces and reduces repeated spaces; LOWER makes capitalization consistent. The original value stays in column A. Inspect the cleaned values before using them as a key: normalization can combine records that should remain distinct, and it does not resolve every spelling variation or invisible character.
For IDs, keep the representation consistent. A text ID with leading zeros may not match a numeric value as intended. Review the underlying values and formats before treating a match or non-match as evidence.
Flag duplicate records
Assume headers are in row 1 and data runs from row 2 through row 1000. To mark every occurrence of a repeated, nonblank ID in column A, enter this formula in an empty column on row 2 and fill it down:
=IF(A2="","",IF(COUNTIF($A$2:$A$1000,A2)>1,"Duplicate","Unique"))
COUNTIF counts matching values in the fixed cell range. The relative reference A2 changes as the formula is filled down, while the dollar signs keep the comparison range fixed. Both the first and later occurrences receive the Duplicate label; blank IDs receive no label.
Filter the helper column to show Duplicate and inspect the corresponding records. Extend the fixed row range when new data falls below row 1000, or those new records will not be counted. To flag only later occurrences, use an expanding range instead:
=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Repeated occurrence","First occurrence"))
This second formula depends on row order. Sorting the source changes which occurrence is first, so use the all-occurrences version when you need to review the whole group.
Match more than one column
For a composite key, COUNTIFS compares each selected column on the same rows. This example flags records where both customer ID in A and date in B match; it skips rows missing either key:
=IF(OR(A2="",B2=""),"",IF(COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2)>1,"Duplicate","Unique"))
Fill the formula down beside the data. All criteria ranges must cover corresponding rows and have the same size. Add a criterion range and value for each additional field needed to define a record. Dates that look identical but contain different underlying times may not match; inspect the stored values if the result looks wrong. how to find duplicate information in google sheets
Inspect the report for duplicate records
A flag identifies rows to review, but a grouped count shows the size of each duplicate group. Create a pivot table from the data range, add the key column under Rows and add it again under Values using COUNTA. Filter the count to values greater than one, or inspect the counts in the pivot table. For a composite key, add each key column under Rows.
Group and count matches
A formula can produce a compact report for one nonblank key column. Enter it in an empty area with room for the results:
=QUERY(A2:A1000,"select A, count(A) where A is not null group by A having count(A) > 1 label count(A) 'Count'",0)
Each result row contains a key and its group count. A count of three means three source rows share that key, not three extra copies. This summary does not identify which source row to keep; use the helper-column filter to inspect those rows alongside the group.
For row-level evidence, add a separate column with =ROW() and fill it down before filtering. Copy the resulting row numbers as values into the report. They identify positions at the time of capture, not permanent record IDs; sorting, inserting or deleting rows can change positions.
The embedded duplicate checker also supports checking selected columns in pasted data and exporting evidence. Its check is read-only, so review the source records separately before deciding whether any cleanup is appropriate.
Find repeated values within a row
Finding a duplicate value in a row is different from finding duplicate records across rows. If B2:F2 contains five entries and you want to flag a repeated nonblank value within that row, use: find duplicate in google sheets for row
=IF(COUNTA(B2:F2)=0,"",IF(COUNTA(UNIQUE(TRANSPOSE(FILTER(B2:F2,B2:F2<>""))))<COUNTA(FILTER(B2:F2,B2:F2<>"")),"Duplicate in row","Unique in row"))
FILTER excludes blank cells, TRANSPOSE turns the remaining row into a column, and UNIQUE returns distinct values. The formula compares the distinct count with the nonblank count. Fill it down to check each row independently; it does not compare entries between different rows.
Compare sheets and export evidence
To compare IDs in column A of the current sheet against column A on a sheet named Archive, enter this beside the current data and fill down:
=IF(A2="","",IF(COUNTIF(Archive!$A$2:$A$1000,A2)>0,"Found in Archive","Not found"))
A match means the ID exists in the other sheet; it does not prove the full records are identical. Check the same key definition and row limits on both sheets, and compare additional fields when those fields determine a duplicate record.
For an audit-ready report, filter the flagged rows, then copy the key, relevant fields, status and captured row numbers to a separate sheet. Paste values so the evidence does not change when formulas recalculate. Keep group counts alongside the row-level details and record which columns and range defined a match.
Download the report using File → Download and choose a suitable format. Review the exported file and its scope before sharing it, especially if the data contains personal information. Detection and export do not require deleting rows; decide on any cleanup only after checking which records are genuinely redundant.
FAQ
Does this page delete how to find duplicate records 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