Duplicate detection, grouping, and report export
How Do I Find Duplicates In Google Sheets
Use a read-only duplicate check for how do i find duplicates 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.
Detect repeated values and rows
Google Sheets can find duplicate values and duplicate rows using a built-in cleanup command, formulas, or a read-only duplicate report. Choose the built-in command for a quick visual review, use formulas when you need specific counts, and export a report before deleting anything.
Use the embedded duplicate checker to review repeated values in your selected sheet columns without altering the source data.Use the built-in duplicate finder
- Select the range to inspect. Select the exact columns that define a duplicate, or select all relevant columns when an entire row must match.
- Open Data > Cleanup > Find duplicates.
- Choose Current column to find repeated values in one selected column. Choose All columns to identify rows whose selected values match across every included column.
- Review the highlighted duplicate groups and the remaining first occurrence.
- Decide whether the report is sufficient or whether you need row numbers and grouped counts for documentation.
The detection step highlights matches without removing them. Removing duplicate values or rows is a separate destructive action, so review the selected range carefully before using the removal control.
Normalize the selected values
Normalization prevents visually identical entries from producing different results. Common differences include extra spaces, mixed capitalization, and inconsistent number formatting.
Use helper columns when you want to preserve the original spreadsheet values. For example, place =TRIM(B2) in one helper column and =LOWER(TRIM(B2)) in another:
=TRIM(B2)
=LOWER(TRIM(B2))
TRIM removes extra spaces around text. LOWER creates a case-insensitive comparison key. Run duplicate checks against these helper values when capitalization should not affect matching.
Standard COUNTIF comparisons are case-insensitive. For a case-sensitive comparison, use EXACT instead. This example flags every exact-case match, including the first occurrence:
=SUMPRODUCT(--EXACT($B$2:B2,B2))>1
This version flags only later occurrences:
=SUMPRODUCT(--EXACT($B$2:B2,B2))>1
Use the full range for duplicate groups and the expanding range from the first cell to the current row for first-occurrence logic.
Group and count matches
COUNTIF counts occurrences of one value. This formula returns the number of times each email address appears:
=COUNTIF($B$2:$B$200,B2)
A result greater than 1 means the value is duplicated. Flag those values with:
=IF(B2="","",COUNTIF($B$2:$B$200,B2)>1)
The empty-value test prevents blank cells from being reported as a duplicate group. Exclude blank rows before running a check when empty records are not relevant.
For a duplicate defined by multiple columns, use COUNTIFS. This example treats a row as duplicated when both Order ID and Customer Email match another row:
=IF(OR(B2="",C2=""),FALSE,COUNTIFS($B$2:$B$200,B2,$C$2:$C$200,C2)>1)
Put that flag in column E, then record matching row numbers in column F:
=IF(E2,ROW(),"")
Filter the source rows using the row-index helper:
=FILTER(A2:F200,F2:F200,"")
A QUERY function can create a compact group-count report. Given names in column B, this formula returns each name with its frequency:
=QUERY(A1:B,"select B, count(B) where B is not null group by B order by count(B) desc",1)
For multiple match columns, add a normalized key such as:
When manual formulas or the built-in cleanup tool are not enough, this checker exports grouped counts and row indexes as downloadable evidence.=LOWER(TRIM(B2))&"|"&LOWER(TRIM(C2))
Then group by the original match columns and count the helper key:
=QUERY(A1:D,"select B, C, count(D) where D is not null group by B, C order by count(D) desc",1)
Practical example
Suppose the data set contains these records:
1024 | Alice
1025 | Bob
1026 | Alice
1027 | Bob
1028 | Alice
Alice appears three times, so its group count is 3. Bob appears twice, so its group count is 2. The duplicate row indexes are 2, 4, and 6 for Alice, plus 3 and 5 for Bob when the header occupies row 1.
A helper formula in column C can identify each repeated name:
=COUNTIF($B$2:$B$6,B2)>1
A FILTER formula can then return the matching row indexes:
=FILTER(ROW($B$2:$B$6),$C$2:$C$6=TRUE)
This example demonstrates why group counts and row indexes answer different questions. Counts show how often a value occurs; row indexes show exactly which records need review.
Inspect the duplicate report
Searchers asking how do i find duplicates in Google Sheets usually need both the count and the source location. Inspect every group before acting on it.
Check these points in sequence:
- Confirm the selected range contains all intended columns and no unrelated records.
- Confirm the grouping columns match your definition of a duplicate row.
- Check whether helper values changed whitespace or capitalization compared with displayed values.
- Compare group counts with the number of highlighted duplicate rows.
- Confirm that blank rows, placeholder values, and headers were excluded when needed.
- Review each first occurrence before deciding whether it should remain.
For a report-first workflow, the embedded duplicate checker can accept TSV or CSV data, scope selected columns, and return grouped counts, row indexes, and downloadable evidence without changing the source sheet.
You can also highlight duplicates before deleting them. Select the relevant range, open Format > Conditional formatting > Add rule, apply a custom formula, and use:
=COUNTIF($B$2:$B$200,B2)>1
Use absolute references for the full range and a relative reference for the current cell. This distinction lets the rule move through each row without changing its comparison range.
Compare values across sheets
To check whether values on one sheet also occur in another sheet, reference the second sheet directly. This formula flags values in column B that also appear in Sheet2:
=IF(B2="","",COUNTIF(Sheet2!$B$2:$B$200,B2)>1)
Replace Sheet2 with the actual sheet name and use quotes when the name contains spaces. Normalize both ranges first if one sheet stores extra spaces or different capitalization. Otherwise, equal-looking values may produce misleading counts.
Export evidence before cleanup
Export duplicate evidence before removing records. Keep the report on a separate sheet with the source range, grouping columns, count, and row index.
- Copy the report into a dedicated sheet.
- Add clear labels for the grouping fields and duplicate count.
- Check formulas and values for errors.
- Open File > Download > Comma-separated values (.csv) for the report sheet.
- Store the exported file with the relevant report date or source identifier used by your workflow.
CSV files preserve the report values but not Google Sheets formatting or a multi-sheet workbook structure. Download each required report tab separately if the evidence is spread across multiple sheets.
Common mistakes and limitations
- Checking only one column: A repeated email may still represent a distinct customer record. Include every column required by your duplicate definition.
- Using the wrong column option:
Current columnchecks repeated values;All columnschecks repeated combinations across the selection. - Ignoring whitespace:
AliceandAlicecan look identical but receive different normalized keys unless you useTRIM. - Expecting case-sensitive
COUNTIFresults: UseEXACTwhen capitalization must distinguish entries. - Counting blanks as useful duplicates: Exclude empty cells when they represent missing records rather than repeated values.
- Using broad full-column references: Set practical ranges to reduce recalculation time and avoid counting cells outside the intended data set.
- Deleting before exporting: A report preserves counts, row locations, and your decision context. Deletion alone does not.
- Assuming identical rows are always safe to remove: Review headers, record IDs, dates, and status fields. Duplicate-looking rows may still be legitimate.
FAQ
Does this page delete how do i find duplicates 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