Duplicate detection, grouping, and report export
How To Find Duplicate In Google Sheets
Use a read-only duplicate check for how to find duplicate 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 duplicates in Google Sheets, count each value with COUNTIF or highlight repeated values with conditional formatting. Define which column or combination of columns identifies a duplicate, then review every matching row before deciding what to do with it.
Find duplicate values in one column
Suppose column A contains email addresses, with a column header in A1 and records in A2:A100. Enter this formula in an empty cell in row 2 and fill it down through row 100:
=IF(A2="","",IF(COUNTIF($A$2:$A$100,A2)>1,"Duplicate","Unique"))
COUNTIF counts occurrences of the current value in the fixed range. Every occurrence receives the Duplicate label when its count exceeds one; a blank cell receives no label. For example, if the same address appears in rows 4 and 9, both rows are marked Duplicate.
Adjust the range to cover the data set you want to check. Keep the dollar signs on the search range so it stays fixed when you fill the formula down, and keep A2 relative so each row checks its own value. Place the formula outside the source column to avoid overwriting data.
To identify only later occurrences and leave the first unmarked, use an expanding range instead:
=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Repeated occurrence","First occurrence"))
This formula depends on row order: sorting the sheet can change which occurrence is first. Use the all-occurrences formula when every row in a duplicate group needs review.
Highlight duplicates in Google Sheets
Conditional formatting makes repeated values visible without adding labels to each row. For the example range A2:A100:
- Select A2:A100, excluding the header.
- Choose Format → Conditional formatting.
- Under Format rules, select Custom formula is.
- Enter the formula below, choose a format, and click Done.
=AND($A2<>"",COUNTIF($A$2:$A$100,$A2)>1)
The rule highlights all nonblank values that occur more than once. To highlight entire records based on column A, apply the rule to A2:D100 while keeping the formula's column A references. The first row in the formula must match the first row of the applied range.
Normalize the selected values
Values that look alike can differ because of spaces or capitalization. Create a helper column rather than changing source values, then check the helper column for duplicates. For text in A2, use: how to find duplicate information
=LOWER(TRIM(A2))
TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER makes letter case consistent. Fill the formula down and apply the count or highlighting method to the helper values. Review the original values alongside the normalized key, since normalization can combine entries that you intended to keep distinct.
This method is not an approximate match: it does not detect spelling variants or guarantee that different names represent the same person. Nonbreaking spaces and other unusual characters may need separate inspection. Preserve leading zeros in identifiers by storing them consistently as text before comparing them.
Group and count matches
A grouped report shows which values repeat and how often. If A1:A100 contains the header and values, enter this formula in an empty area:
=QUERY(A1:A100,"select A, count(A) where A is not null group by A having count(A) > 1 label A 'Value', count(A) 'Count'",1)The embedded tool below checks your pasted sheet data for duplicate values and shows grouped counts with row indexes.
The output lists duplicate values and their group counts, not the source rows. Check that the output area has room to expand. QUERY can treat minority data types in a mixed-type column as null, so standardize the key type first if numbers and text are mixed. The final 1 tells QUERY that the range has one header row. find duplicate in google sheets
To group normalized values, apply the query to a helper column with its own header. Check the underlying records before interpreting a group count as a count of duplicate people, orders, or transactions.
Find duplicate rows using multiple columns
A repeated name alone may not be a duplicate record. If columns A and B contain a customer ID and an order ID, count matching pairs in a helper column:
=IF(OR(A2="",B2=""),"",IF(COUNTIFS($A$2:$A$100,A2,$B$2:$B$100,B2)>1,"Duplicate pair","Unique pair"))
COUNTIFS counts rows where both criteria match. This example excludes rows missing either key; change that rule only if incomplete records should be compared. All criteria ranges must cover corresponding rows and have matching dimensions.
Choose keys that reflect the business question. For example, the same customer ID on two different orders is expected, while the same customer ID and order ID may need investigation. Additional criteria can be added for a wider composite key, but every selected field changes what counts as a match. find duplicate emails
Compare sheets for repeated values
To check whether values in one sheet also appear in another, place this formula in row 2 of the first sheet and fill it down:
=IF(A2="","",IF(COUNTIF('Sheet 2'!$A$2:$A$100,A2)>0,"Found in Sheet 2","Not found"))
Replace Sheet 2 and the ranges with your actual sheet name and data. This checks whether each value exists in the other sheet; it does not count duplicates within the first sheet or identify every matching row in the second. Run a reciprocal check on the second sheet if you also need to find values missing from the first.
Inspect the report for duplicate values
Compare group counts with row-level evidence before making changes. Filter the helper column to show Duplicate labels, then inspect the key and surrounding fields for each record. A count of three means three occurrences in the chosen range, not necessarily three records to remove.
Record source sheet names and row numbers while reviewing matches. Sheet row numbers can change after sorting, inserting, or deleting rows, so include a stable record ID when available. A repeated value can be legitimate, such as one customer appearing on several orders. find duplicate names
The embedded duplicate checker can check pasted data using selected columns and provide grouped counts and row indexes. Its check is read-only, so it does not delete or modify source sheet values.
Export evidence
For a manual report, copy the relevant headers, record IDs, keys, counts, and source row numbers into a separate report sheet. If you need fixed evidence rather than formulas that recalculate, use Edit → Paste special → Values only when copying results. Include the checked range and normalization rule in the report so another reviewer can interpret the matches.
Download the spreadsheet or report in a suitable format through File → Download; verify the downloaded file contains the intended sheet and fields. The embedded checker also supports downloading its result. Review sensitive fields and share the evidence only with people who need it.
Avoid common mistakes
- Including the header: Start record ranges below the header, or tell
QUERYhow many header rows exist. - Checking the wrong scope: A formula limited to row 100 will miss later records. Update all related ranges when the data grows.
- Using mismatched rules: A normalized helper key and an unnormalized source value can produce different results. Apply the same comparison rule across the selected scope.
- Treating blanks as duplicates: Repeated empty cells can dominate a report. Exclude them unless missing values are part of the review.
- Deleting by count alone: A duplicate flag identifies a match, not which record is correct. Inspect context and keep a backup before any later cleanup.
Formulas using commas as argument separators may need semicolons in some spreadsheet locales. If a formula produces a parse error, check the spreadsheet locale and separators before changing its logic.
FAQ
Does this page delete how to find duplicate 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