Duplicate detection, grouping, and report export
Check For Duplicates In Google Sheets
Use a read-only duplicate check for check for 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 for duplicates in Google Sheets without changing source values, count occurrences of each key with COUNTIF or COUNTIFS, then inspect the rows whose count exceeds 1. Choose the column or combination of columns that defines a match before you start; a repeated email address and a repeated full record answer different questions.
Define the duplicate scope
A duplicate check compares values within a chosen range. If column A contains customer IDs, a repeated ID may identify the same customer even when names or other details differ. If you need duplicate rows, compare all columns that define the record instead.
- Identify the header row and exclude it from the data range.
- Choose a key: one column for repeated values, or several columns for repeated combinations.
- Decide whether blank keys should count and whether differences in spaces, capitalization, or data type matter.
- Add helper columns outside the source data, or work on a copy if there is no empty space.
For the examples below, row 1 contains headers and rows 2–100 contain data. Column A holds an ID, column B an email address, and column C a region. Adjust ranges to fit the data set; rows outside the range will not be checked.
Normalize the selected values
Extra spaces and inconsistent capitalization can hide matches. To compare normalized email text without overwriting column B, enter this formula in D2 and fill it down through D100:
=LOWER(TRIM(B2))
TRIM removes leading and trailing spaces and reduces repeated spaces within text. LOWER converts text to lowercase. Review whether those changes are appropriate for your key: normalization can merge values that your workflow treats as distinct. Nonbreaking spaces and other hidden characters may need separate cleanup.
Use the helper column as the key in subsequent formulas if normalized matches are wanted. Otherwise, compare the original column. Keep the original values available so you can investigate each match before making changes.
Group and count matches
To count each nonblank ID in A2:A100, put this formula in an empty cell on row 2 and fill down:
=IF(A2="","",COUNTIF($A$2:$A$100,A2))
A result of 1 means the ID appears once in that range; 2 or more marks every occurrence of a repeated ID. Dollar signs keep the comparison range fixed as the formula is copied. The blank check leaves empty IDs uncounted.
For a count beside each distinct nonblank ID, enter this formula in a separate empty area with room for the results:
=QUERY(A2:A100,"select A, count(A) where A is not null group by A having count(A) > 1 label count(A) 'Count'",0)
This report lists each repeated ID once with its group count. It does not show the source row numbers or other record details, so retain the row-level count when you need to inspect individual records. QUERY can handle mixed data types differently within a column; check its output against the source if IDs mix numbers and text.
To check a combination of ID and region, use COUNTIFS instead. Enter the formula beside row 2 and fill it down:
=IF(OR(A2="",C2=""),"",COUNTIFS($A$2:$A$100,A2,$C$2:$C$100,C2))
This counts rows where both columns match the current row. It skips rows missing either key component. For example, ID 104 in region West matches another 104 in West, but not 104 in East. If partial keys should be compared, define that rule separately rather than silently skipping them.
Inspect the duplicate report
Checking for duplicates in Google Sheets is a review step, not proof that records should be deleted. Filter the helper count column for values greater than 1, then inspect the original fields for each matching group. A repeated ID can represent a valid update, while identical-looking names can belong to different people.
To produce a separate row-level report for IDs, place this formula in an empty area or another sheet with enough room for the output:
=IFNA(FILTER({ROW(A2:A100),A2:C100},A2:A100<>"",COUNTIF(A2:A100,A2:A100)>1),"No duplicates")
The first output column contains original spreadsheet row numbers, followed by columns A through C. Every member of a duplicate group appears, including its first occurrence. IFNA displays No duplicates when FILTER finds no matches; check other errors separately rather than treating them as a clean result.
For example, if rows 4 and 9 both contain ID 104, the report includes both row numbers. Compare their email and region fields before deciding whether they are accidental duplicates. Row numbers identify locations at the time of the report; sorting, inserting, or deleting rows can change them.
The embedded duplicate checker can also check pasted TSV or CSV data against selected columns and return grouped counts and row indexes. Its check is read-only; review the selected scope and results against the sheet before using them as evidence.
Compare values across sheets
To find IDs in Sheet1 that also appear in Sheet2, enter this formula beside the first data row on Sheet1 and fill down:
=IF(A2="","",IF(COUNTIF(Sheet2!$A$2:$A$100,A2)>0,"Match","No match"))
Match means the ID occurs at least once in the specified range on Sheet2; it does not say how many times it appears or whether the rest of the row matches. Change the sheet name and range to suit your spreadsheet. For sheet names containing spaces, enclose the name in single quotes, such as 'Sales 2025'!$A$2:$A$100.
To find repeated IDs within each sheet as well, run the single-column count separately on each range. A cross-sheet match and a duplicate within one sheet are different findings.
Export evidence
A useful report preserves the key, group count, source row number, and enough surrounding fields to distinguish records. Include the sheet name, checked range, normalization rule, and date of review in your working notes. Avoid exporting unrelated sensitive columns when the recipient does not need them.
- Review the filtered rows and confirm that the header and intended range are correct.
- Copy the relevant results into a separate sheet if you need a standalone report. Use Paste special → Values only when the exported evidence should remain fixed rather than recalculate.
- Download the report from Google Sheets using File → Download and choose a suitable format. Confirm which sheet or spreadsheet content the chosen format includes before sharing.
- Keep the original data unchanged until an authorized reviewer decides what action, if any, to take.
The embedded checker's results are also downloadable. Verify the exported evidence against the original data, especially if the pasted selection starts below row 1: do not assume a reported index is a spreadsheet row number without checking its reference.
Common mistakes and limits
- Including headers: A header included in the count range can be treated as data. Start below the header row.
- Using a narrow range: A fixed range misses later rows. Extend every range in a formula consistently when the data grows.
- Counting blanks accidentally: Decide whether missing keys are meaningful; the examples above exclude them.
- Confusing keys with whole rows: A repeated email does not establish that every field in two records is identical.
- Trusting display alone: A number stored as text, hidden characters, or formatting can make values look alike while affecting comparisons. Inspect the underlying values and test normalization on a copy.
- Overwriting source data: Helper formulas write to cells, even though they do not alter the values being compared. Put them in empty columns or a separate sheet, and leave cleanup for a separately reviewed step.
FAQ
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