Duplicate detection, grouping, and report export
How To Check Duplicates In Google Sheets
Use a read-only duplicate check for how to check 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.
To check duplicates in google sheets without changing source data, count each value with COUNTIF, then filter or highlight rows where the count exceeds one. For a grouped report, use QUERY to list repeated values and their counts; retain sheet row numbers separately when you need evidence for review.
Choose the duplicate scope
Define what makes two records a match before writing a formula. A repeated email address may identify a duplicate contact, while a repeated city does not necessarily identify a duplicate customer.
- One column: compare values in a single field, such as an order ID.
- Several columns: compare a combination, such as email and order date.
- Multiple sheets: bring comparable values into one reporting range and retain their source sheet and row number.
Decide whether spaces, capitalization, blank cells, and formatting differences matter. A check against one column identifies repeated keys, not necessarily identical rows. Keep headers outside the comparison range and select enough rows to cover the data set.
Normalize the selected values
Use a helper column when text values contain inconsistent capitalization or extra spaces. For values in A2:A, enter this formula in B2 and fill it down:
=IF(A2="","",LOWER(TRIM(A2)))
TRIM removes leading and trailing spaces and reduces repeated ordinary spaces within text; LOWER converts text to lowercase. For example, ALICE@example.com and alice@example.com produce the same key. The original cells remain unchanged.
Normalization is a choice, not proof that records are identical. It can combine values you intended to keep distinct, and it may not remove every kind of invisible character. Review unusual spaces, error values, dates, and numbers before relying on a text key.
Group and count matches
For a single key column, enter this formula in C2 and fill it down alongside the data: google sheets check for duplicates 3 cells
=IF(B2="","",COUNTIF($B$2:$B$1000,B2))
Each nonblank key receives its total occurrence count. If the same key appears three times, all three rows show 3; a count of 1 means the key occurs once within the selected range. Extend $B$2:$B$1000 when records fall below row 1000, and keep the range fixed with dollar signs when filling down.
To create a grouped summary in an empty area or separate sheet, use:
=QUERY(B2:B1000,"select B, count(B) where B is not null group by B having count(B) > 1 label B 'Key', count(B) 'Count'",0)
The result contains one row per repeated key and its group count. It does not include source row numbers or decide which record to keep. COUNTIF and QUERY may treat data types differently, so verify results for mixed text and numbers. COUNTIF also interprets * and ? in its criterion as wildcards; use a literal comparison method or escape those characters when keys contain them.
Inspect the report for duplicates
A group count tells you where to investigate, but each matching row may contain different details. Filter the helper count column for values greater than 1, then compare the original fields and confirm whether each group represents an actual duplicate.
- Select the data and helper columns, including their headers.
- Choose Data > Create a filter.
- Open the filter on the count column and set a condition greater than
1. - Inspect each visible group against the original records.
- Clear the filter when the review is complete.
For a row-level list of one particular key, place the key to investigate in E2 and enter this formula in an empty area: check for duplicates google sheets
=FILTER({ROW(A2:A1000),A2:C1000},B2:B1000=E2,B2:B1000<>"")
The first output column shows source sheet row numbers, followed by columns A through C. If no rows match, FILTER returns an error; check the key and range rather than treating the error as a duplicate. Row numbers describe the sheet at the time of the check and can change after sorting, insertion, or deletion.
For a visual check, select A2:A1000, choose Format > Conditional formatting, and use Custom formula is with:
=AND($A2<>"",COUNTIF($A$2:$A$1000,$A2)>1)
Choose a formatting style and apply it. This highlights every occurrence, including the first, and checks the original values rather than the normalized helper column. It does not produce a grouped report or remove data. Use the same range and starting row in both the selection and formula, and account for wildcard characters in keys.
Check combinations and compare sheets
To check a two-field key without joining values into an ambiguous text string, count both fields with COUNTIFS. For email in column A and order date in column B, enter this in C2 and fill down:
=IF(OR(A2="",B2=""),"",COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2))
A result greater than 1 flags repeated email-and-date combinations. This example excludes rows with either field blank; change that rule only if partial records should participate. Normalize the fields first if case or spacing differences must be reconciled, and check that dates are stored consistently. check for duplicates in google sheets
To compare sheets, build a reporting table that includes the key, source sheet name, and source row number for each record. Run the count on the combined key column, then inspect the source columns to distinguish repeats within one sheet from matches across sheets. Confirm that headers, date formats, and key definitions agree before combining the ranges.
Export evidence
Keep the original data separate from the report. Copy the grouped summary and relevant row-level results to a reporting sheet, include the checked range and key definition, and record when the check was made. If the report must remain stable after source edits, paste a values-only snapshot and retain an appropriate copy of the source data.
Download the reporting sheet using File > Download and select an appropriate format. Check that the downloaded file contains the intended sheet and columns; CSV exports one sheet at a time and does not preserve formatting or formulas as live formulas.
The embedded duplicate checker can check pasted TSV or CSV data for duplicates in selected columns and download the result. Its check is read-only; review the evidence against the source before making any cleanup decision.
After reviewing the tool result, compare the exported evidence against the original sheet before deciding which duplicate records to resolve.Common mistakes include counting headers, omitting new rows from a fixed range, treating every repeated value as a duplicate record, and overlooking blanks or inconsistent text. Recheck the scope after the data changes, and resolve confirmed duplicates only through a separately reviewed process.
FAQ
Does this page delete how to check 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