Duplicate detection, grouping, and report export
How To Find Duplicate Rows In Google Sheets
Use a read-only duplicate check for how to find duplicate rows 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 rows in google sheets, choose the columns that define a match, then use COUNTIFS to count rows with the same values. Filter or highlight counts greater than one to inspect every occurrence without deleting source data.
Define the duplicate row scope
A duplicate row can mean an exact match across every relevant column or a match on selected key columns. For example, two orders with the same customer and product may be duplicates under a two-column key, even if their dates differ. Include the date in the key if separate orders on different dates must remain distinct.
Assume row 1 contains headers and rows 2–1000 contain customer, product, and date in columns A, B, and C. Adjust the ranges to cover your data set. If other columns also define a unique record, include them in the comparison rather than treating the three-column example as a full-row test.
Normalize the selected values
Decide whether differences in spaces, capitalization, or data types matter before counting. A value with an extra space can represent the same customer but fail an exact comparison. Dates stored as text can also look like dates while behaving differently from numeric date values.
Use helper columns when you want to compare cleaned text without changing the source. For example, put this formula in D2 and fill it down to normalize the customer value in A:
=LOWER(TRIM(A2))
Apply the same approach to other text key columns if needed. TRIM removes leading, trailing, and repeated ordinary spaces; LOWER standardizes case. Review nonbreaking spaces, punctuation, and date formats separately. Normalization can merge values that your workflow considers different, so retain the original columns for review.
Group and count matches
To count matches across all three example columns, enter this formula in an empty helper column in row 2 and fill it down:
=IF(COUNTA(A2:C2)=0,"",COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2,$C$2:$C$1000,C2))
A count of 1 means the key occurs once in the selected range. A count greater than 1 identifies every row in a duplicate group, including its first occurrence. The COUNTA check leaves completely blank rows unmarked; partly blank records are still compared using their blank key cells.
For example, if rows 2 and 8 both contain Ada, Widget, and the same date, each returns 2. A row with the same customer and product but a different date returns a separate count. To check only customer and product, remove the column C range and criterion from COUNTIFS.
Text containing *, ?, or ~ needs care because COUNTIFS criteria can interpret these characters as wildcards or escapes. For literal comparison of all three columns, use this alternative in row 2 and fill down: find duplicate values in a column google sheets
=IF(COUNTA(A2:C2)=0,"",SUMPRODUCT(--($A$2:$A$1000=A2),--($B$2:$B$1000=B2),--($C$2:$C$1000=C2)))
Both approaches compare cell values, not displayed formatting. If normalized helper columns define the key, substitute their ranges and current-row cells consistently. Large ranges and formulas filled down many rows can slow a spreadsheet; limit ranges to the data you need.
Highlight or filter duplicate rows
Conditional formatting makes repeated records visible while leaving values unchanged. To highlight all three-column matches:
- Select
A2:C1000, starting at the first data row. - Choose Format > Conditional formatting.
- Under Format rules, select Custom formula is.
- Enter the formula below, choose a format, and select Done.
=AND(COUNTA($A2:$C2)>0,COUNTIFS($A$2:$A$1000,$A2,$B$2:$B$1000,$B2,$C$2:$C$1000,$C2)>1)
The fixed column references keep each row's key aligned while the row number changes. If key values can contain wildcard characters, use the literal SUMPRODUCT approach in a helper column and base formatting on that count instead. Adjust both the apply-to range and formula when the data starts on another row.
To inspect duplicates as a list, create a filter on the headers and helper count column, then filter the count for values greater than 1. A filter view can keep a saved inspection view separate from the normal sheet view. Include the entire table in the filter range so values from different records do not become misaligned. how to find duplicate values in google sheets column
Inspect the report for duplicate rows
Keep row numbers with your evidence so each match can be checked against its source. Enter =ROW() in another helper column on the first data row and fill it down before filtering or copying. Those numbers identify positions at the time they are recorded; sorting, inserting, or deleting rows later can change source positions.
Review each group's count and original values before deciding what a match means. Check whether differences in non-key columns, such as an order status or timestamp, make the rows legitimate separate records. A repeated key is evidence for investigation, not automatic permission to delete a row.
The embedded duplicate checker can check pasted CSV or TSV data using selected columns and provide grouped counts, row indexes, and exportable evidence. Its check is read-only; confirm that its selected scope matches the key used in your spreadsheet review.
Compare records from two sheets
To find duplicate keys across sheets, first establish matching column order and compatible formats. Copy the relevant columns from each sheet into a separate staging sheet, adding a source-sheet label and original row number to each record. Count only the key columns, not the source label or row-number column. finding duplicate values in google sheets
Apply the same helper-count formula to the combined range. A count greater than 1 can indicate repetition within one sheet, across both sheets, or both. Inspect the source labels in each group to distinguish those cases; a combined count alone does not prove a cross-sheet match.
Export evidence
Filter the staging sheet or report to show counts greater than 1, then copy the visible results into a separate report sheet with key values, counts, source labels, and recorded row numbers. Check the copied rows against the filtered view before sharing. Keep original values alongside normalized keys when normalization was used.
For a file export, select the report sheet and use File > Download to choose an available format such as CSV. CSV exports the current sheet rather than the whole workbook and does not preserve spreadsheet formatting or formulas as formulas. Record the key definition and review scope with the report so recipients understand what each count represents.
FAQ
Does this page delete how to find duplicate rows in google sheets?
No, it returns a read-only duplicate report.
How do I use this page?
Paste data for how to find duplicate rows in google sheets; select the key scope; inspect grouped counts, row indexes, and exportable evidence.
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