Duplicate detection, grouping, and report export
Check Google Sheets For Duplicates
Use a read-only duplicate check for check google sheets for duplicates 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 Google Sheets for duplicates without changing source data, count occurrences of each key with COUNTIF or COUNTIFS, then filter the results. A key can be one value, such as an email address, or a combination of fields that identifies a record.
Choose the duplicate scope
Define a duplicate before counting. Two rows can share a customer name but represent different orders, while two identical order IDs may need investigation. Decide whether a match means a repeated value in one column, a repeated combination of columns, or an entire repeated row.
- Identify the data range and its header row. The examples below assume headers in row 1 and records in rows 2–1000.
- Choose the key columns. Use a stable identifier where possible; use multiple fields when one field is not unique enough.
- Decide how to handle blanks, capitalization, and extra spaces before interpreting counts.
- Add helper columns outside the source data, or work on a copy if there is no room for them.
A count above 1 identifies every occurrence in a duplicate group, including the first. If you need to label only later occurrences, use a running count instead. Neither result decides which record is correct.
Normalize the selected values
Spacing and inconsistent capitalization can hide matches. To compare email-like text in column A after trimming spaces and converting it to lowercase, enter this in an empty helper column at row 2 and fill down:
=IF(A2="","",LOWER(TRIM(A2)))
Use the helper column as the key in later formulas. TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER makes the normalized text lowercase. TRIM does not remove every kind of whitespace, so inspect values containing non-breaking spaces or other unusual characters separately.
Normalization changes the comparison, not the original cells. Apply it only when those differences should not distinguish records. For example, do not strip leading zeroes from identifiers when 0012 and 12 represent different items.
Group and count matches
To flag all repeated nonblank values in A2:A1000, enter this in B2 and fill down:
=IF(A2="","",IF(COUNTIF($A$2:$A$1000,A2)>1,"Duplicate","Unique"))
COUNTIF counts matches across the fixed range. Dollar signs keep that range unchanged as the formula moves down; A2 changes for each row. Filter column B for Duplicate to inspect all members of each group. COUNTIF matching is not case-sensitive, and criteria containing * or ? can act as wildcards; escape those characters or use another comparison method when they are literal parts of keys.
To label only the second and later occurrence of each value, use a running range:
=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Repeated later","First occurrence"))
The result depends on row order. Sorting the sheet can change which record is labeled first, so treat the label as a position in the current range, not proof that a row is the original.
For a compact list of distinct repeated keys and their group counts, use an empty area:
=QUERY(A1:A1000,"select A, count(A) where A is not null group by A having count(A) > 1 label count(A) 'Count'",1)
This summary omits unique and blank values. QUERY infers a column's data type, so mixed text and numeric keys can produce unexpected omissions; use consistently typed keys and verify totals against the source. The summary does not identify individual source rows.
Check duplicate rows using multiple columns
Use COUNTIFS when a duplicate requires matching more than one field. For example, if column A contains customer IDs and column B contains order dates, enter this in C2 and fill down:
=IF(OR(A2="",B2=""),"",IF(COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2)>1,"Duplicate pair","Unique pair"))
The formula flags every row sharing both fields. It excludes rows with either field blank; change that rule only if incomplete keys should be compared. Add further range-and-criterion pairs for other key columns, keeping all ranges the same size. COUNTIFS criteria also interpret wildcard characters, so account for literal * and ? in text keys.
Two rows with the same customer and date may still be legitimate separate orders. Include an order ID or another meaningful field if the business definition requires it. For full-row duplicates, include every relevant column rather than assuming a two-column match proves the rows are identical.
Highlight duplicates in the data range
Conditional formatting makes repeated values visible without adding labels to each row:
- Select A2:A1000, excluding the header.
- Open Format > Conditional formatting and choose Custom formula is.
- Enter the formula below, select a formatting style, and select Done.
=AND(A2<>"",COUNTIF($A$2:$A$1000,A2)>1)
The relative reference A2 follows each selected cell, while the fixed range supplies the comparison set. Adjust both references if the selection starts elsewhere. This highlights all occurrences, not only the later ones; wildcard characters in keys need the same care as in the COUNTIF example.
Inspect the duplicate report
For each group, check the key, count, and source rows together. A group count of three means three matching records, not necessarily three records to remove. Compare other fields, such as dates or order details, before choosing any follow-up.
To retain row locations in a manual report, put this formula in a helper column and fill down before filtering:
=IF(A2="","",ROW())
Copy the resulting row numbers as values alongside the keys and labels. They identify positions at the time of the check; sorting, inserting, or deleting rows can change those positions. Include a stable record ID when available so reviewers can find the same record later.
The embedded duplicate checker can check pasted CSV or TSV data using selected columns and return grouped counts and row indexes. Its check is read-only, and its evidence can be downloaded; confirm that the pasted range and selected key match the scope you intend to review.
Compare sheets and export evidence
To check whether a key in the current sheet also appears on another tab, enter this beside the first key and fill down:
=IF(A2="","",IF(COUNTIF('Sheet2'!$A$2:$A$1000,A2)>0,"Found on Sheet2","Not found"))
Replace Sheet2 and the ranges with your actual tab and data range. This tests membership across sheets; it does not count duplicates within either sheet or confirm that the rest of each row matches. Use normalized helper columns on both tabs if the same normalization rules should apply.
For an exportable manual report, filter the helper labels and copy the relevant keys, counts, row numbers, and record IDs to a separate sheet. Paste values rather than formulas if the report must preserve the results at that moment, then use File > Download to choose a suitable format. Record the checked range and key definition in the report so another reviewer can interpret it.
Avoid misleading results
- Wrong range: Extend every formula and formatting range to cover the records being checked. A fixed range ending at row 1000 misses later rows.
- Blank keys: Decide whether blanks are missing data or meaningful matches. The examples exclude them rather than grouping them as duplicates.
- Mixed types: A displayed value can conceal different underlying text or numeric values. Check formatting and stored values when apparent matches behave unexpectedly.
- Over-normalization: Removing spaces or changing case may merge distinct identifiers. Preserve the original values and document the comparison rule.
- Unreviewed cleanup: A duplicate flag is evidence of a match, not authorization to delete a row. Review each group and keep a copy before any separate cleanup.
FAQ
Does this page delete check google sheets for duplicates?
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