Duplicate detection, grouping, and report export
How To Find Duplicate Google Sheets
Use a read-only duplicate check for how to find duplicate 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 without changing source data, choose the columns that define a match, then use COUNTIF or COUNTIFS to flag repeated values or rows. For a grouped report, use QUERY to count each value and inspect the matching row numbers before deciding what to do with them.
Choose the duplicate scope
A duplicate depends on the key you select. Two rows with the same name may describe different people, while two rows with the same order ID may indicate a repeated entry. Decide whether a match means one repeated cell, a combination of fields, or an entire repeated row.
- Keep headers in row 1 and identify the data range. The examples below use rows 2–1000.
- Choose the key columns. For example, use column A for an order ID, or columns A and B for a name and date combination.
- Decide whether blank cells count and whether differences in spaces, case, or formatting matter.
- Add helper columns outside the source data or build the report on another sheet. Adjust ranges if your data extends beyond row 1000.
A read-only duplicate checker can also inspect pasted CSV or TSV data using selected columns. Its report provides grouped counts and row indexes for review; it does not delete source records.
Normalize the selected values
Extra spaces can split what looks like one group into several. To compare trimmed versions of text in column A, enter this in an empty helper column, such as D2, and fill it down:
=IF(A2="","",LOWER(TRIM(SUBSTITUTE(A2,CHAR(160)," "))))
SUBSTITUTE replaces nonbreaking spaces, TRIM removes leading and trailing spaces and reduces repeated ordinary spaces, and LOWER makes the comparison key lowercase. The original value remains in column A. Use column D in later formulas if this normalization matches your rules.
Normalization can merge values that should remain distinct. It does not resolve spelling variations or identify different URLs that lead to the same destination. Numeric values, dates, and numbers stored as text also need a consistent representation before comparison; check a few examples rather than relying on their displayed format alone.
Group and count matches
To flag every nonblank value that occurs more than once, place this in B2 and fill it down:
=IF(A2="","",IF(COUNTIF($A$2:$A$1000,A2)>1,"Duplicate","Unique"))
COUNTIF counts matches across the fixed range. If A2 contains A104 and that ID appears three times, all three rows receive Duplicate. The blank test prevents empty cells from being reported as a duplicate group.
To mark only later occurrences, use a running range instead:
=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Repeated occurrence","First occurrence"))
The first A104 remains unmarked as a repeat; the second and third are flagged. This distinction matters when you need to review each group rather than automatically treat every row as expendable. For text keys containing wildcard characters such as * or ?, check results carefully because COUNTIF interprets them as patterns.
For a two-column key, use COUNTIFS. This example flags a repeated combination of columns A and B and excludes rows where either key cell is blank:
=IF(OR(A2="",B2=""),"",IF(COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2)>1,"Duplicate pair","Unique pair"))
Add another range-and-criterion pair for each field that defines a duplicate line. If incomplete keys should be compared, change the blank rule deliberately; do not assume that a blank name or ID identifies a real record.
Inspect the duplicate report
A grouped count shows which values deserve review. Put this formula in an empty area to list nonblank column A values with more than one occurrence:
=QUERY(A1:A1000,"select A, count(A) where A is not null group by A having count(A) > 1 label count(A) 'Count'",1)
The result contains one row per repeated value and its group count. If the output area is occupied, clear space for the expanding result. QUERY infers a type for mixed-type columns, so test mixed numeric and text data or use a consistently formatted helper column.
To locate source rows for a reported value, place the value to investigate in E2 and enter this in an empty cell:
=IF(E2="","",IFNA(FILTER(ROW(A2:A1000),A2:A1000=E2),"No matching rows"))
FILTER returns sheet row numbers for exact matches to E2. Compare those rows with the full records: a repeated identifier may be an error, a legitimate recurring event, or a record that needs investigation. If the group report uses normalized keys, use the same helper column here so counts and row numbers refer to the same comparison.
Find duplicate lines and links
For duplicate lines, compare every relevant field with COUNTIFS, not only the first column. A row with the same customer but a different invoice date is not an exact duplicate if the date belongs in the key. Review omitted columns before treating a repeated key as a repeated record.
For duplicate links, apply the single-column method to the cells containing link text or URL values. Text comparison does not establish that differently written addresses reach the same page, and displayed labels may not expose the underlying hyperlink target. Inspect those links separately when destinations, rather than visible cell values, define a match.
Compare values across sheets
To flag IDs on Sheet1 that also appear in column A of Sheet2, enter this beside the first ID on Sheet1 and fill down:
=IF(A2="","",IF(COUNTIF(Sheet2!$A$2:$A$1000,A2)>0,"Found on Sheet2","Not found"))
This finds cross-sheet matches, not necessarily duplicates within either sheet. A value appearing once on each sheet is still marked as found. Use matching normalized keys on both sheets if spacing or case rules require them, and quote sheet names containing spaces, as in 'Sales Data'!$A$2:$A$1000.
Export evidence
Before exporting, record the source sheet, checked range, key columns, blank rule, and any normalization used. Include group counts and source row numbers alongside enough identifying context to verify each match. Row numbers can change after sorting or inserting rows, so retain stable IDs where available and capture evidence before rearranging the source.
For a manual report, copy the grouped results and relevant row details to a separate sheet, then use File → Download to choose an available format. Check the downloaded file, especially if exporting a single sheet as CSV, and avoid including unrelated sensitive columns. The embedded checker also supports downloading its duplicate-check evidence.
Review the report before any cleanup. A count greater than one proves repetition under the selected key and comparison rules; it does not prove which record, if any, should be removed.
FAQ
Does this page delete how to find duplicate 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