Duplicate detection, grouping, and report export
Check A Google Sheets Column For Duplicates
Use a read-only duplicate check for check a google sheets column 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 a Google Sheets column for duplicates, add a helper column with COUNTIF and inspect values whose count is greater than 1. This identifies every occurrence without deleting or changing the source values. For a grouped report, count each distinct value separately and retain its sheet row numbers as evidence.
Check one column with a formula
Assume column A contains identifiers, row 1 is a header, and rows 2–1000 contain the data to check. Choose an empty column for the results, then:
- Enter
Duplicate countin B1. - Enter the formula below in B2.
- Fill it down through B1000.
- Filter column B for numbers greater than 1 to inspect all repeated values.
=IF(A2="","",COUNTIF($A$2:$A$1000,A2))
COUNTIF counts matches in the fixed column range. The reference A2 changes as you fill the formula down, while the dollar signs keep the comparison range fixed. A count of 1 means the value appears once; a count of 2 or more marks every occurrence as part of a duplicate group.
For example, if A2 and A8 both contain ID-104 and no other cell in the range contains it, both rows show 2. A blank result means the row was excluded because its key is blank; it does not mean missing data has been checked.
Adjust the last row to include the full data set. If records extend beyond row 1000, the formula can miss matches. Keep the header outside the range, and avoid placing helper formulas over existing data.
Define what counts as a duplicate
A duplicate check depends on the selected key. Two rows with the same email address may represent one repeated contact, while two rows with the same product name may be valid separate orders. Check an identifier that matches the decision you need to make before interpreting a count.
The formula above checks one column, not entire rows. It also treats text matches without distinguishing letter case. COUNTIF criteria can interpret * and ? as wildcards, so counts for identifiers containing those characters may include unintended matches. For literal comparison of nonblank values, use:
=IF(A2="","",SUMPRODUCT(--($A$2:$A$1000=A2)))
This comparison is also case-insensitive. Use EXACT if uppercase and lowercase must be treated as different values; for example, this formula counts case-sensitive, literal matches in the same range:
=IF(A2="","",SUMPRODUCT(--EXACT($A$2:$A$1000,A2)))
Each formula counts the current row as one occurrence. Repeated calculations over large ranges can slow a spreadsheet, so limit the range to the records you need to inspect.
Normalize the selected values
Extra spaces and inconsistent capitalization can split values that should belong to the same group. To check cleaned text without overwriting column A, enter this in an empty helper column, such as C2, and fill it down:
=IF(A2="","",LOWER(TRIM(CLEAN(SUBSTITUTE(A2,CHAR(160)," ")))))
SUBSTITUTE replaces nonbreaking spaces with ordinary spaces, CLEAN removes nonprintable ASCII characters, TRIM removes leading and trailing spaces and collapses repeated spaces, and LOWER standardizes case. Count the normalized keys in column C using the same duplicate-count formula with its references changed from A to C.
Normalization changes the comparison, not the source values. Collapsing internal spaces or ignoring case may merge distinct identifiers, so use these rules only when they fit the data. A cell containing only spaces can become an empty normalized key and will be skipped by the blank check.
Group and count matches
For a compact report, place this formula in an empty area or on a separate sheet. It groups nonblank keys from A2:A1000 and returns only groups with more than one occurrence:
=QUERY(A2:A1000,"select A, count(A) where A is not null group by A having count(A) > 1 label A 'Value', count(A) 'Count'",0)
A result such as ID-104 | 2 shows one duplicate group and its total count. The group count is not the number of extra records: a group of two has one occurrence beyond the first, but neither row is automatically the correct one to keep. Use the normalized helper range instead of column A when normalized matching is the intended rule.
QUERY infers a data type for each column; minority types in a mixed-type column can be treated as null. Check identifiers stored partly as numbers and partly as text before relying on this summary. Preserve leading zeros when preparing identifiers, because numeric conversion can change their meaning.
Inspect the report for duplicate values
Review each group against the original records before deciding whether it represents an error. Filter the helper count column for values greater than 1, then inspect adjacent fields such as dates or record IDs. Those fields provide context without changing the key used to find matches.
To list the current sheet row numbers for a particular key, enter the key in E2 and use this formula in another empty cell:
=IF(E2="","",IFNA(TEXTJOIN(", ",TRUE,FILTER(ROW($A$2:$A$1000),$A$2:$A$1000=E2)),"No match"))
For ID-104 in E2, the result might be 2, 8. The formula reports matching rows within the specified range, including a single match if one exists; compare it with the count before calling the key a duplicate. Row numbers can change after sorting or inserting rows, so record a stable identifier alongside them when available.
The embedded duplicate checker can check pasted CSV or TSV data by selected columns and produce a read-only report with grouped counts and row indexes. Its result describes the supplied data and scope, not records omitted from the paste.
Export evidence
Create a separate report sheet containing the duplicate key, group count, row numbers and any context needed for review. Copy formula results and paste values into that report if you need a snapshot that will not recalculate when the source changes. Include the checked range and the normalization rule so a reviewer can reproduce the result.
To export that report as CSV, select its sheet and choose File → Download → Comma-separated values (.csv). CSV exports the current sheet, not every tab; verify the downloaded file before sharing it. The embedded check also supports downloading its evidence.
Do not treat a duplicate count as permission to delete rows. Confirm the records, retain only necessary sensitive fields in the exported report, and make any cleanup decision separately from this read-only check.
FAQ
Does this page delete check a google sheets column 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