Duplicate detection, grouping, and report export
Google Sheets Check For Duplicates In Column
Use a read-only duplicate check for google sheets check for duplicates in column 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 for duplicates in a Google Sheets column without changing the source values, use COUNTIF in a helper column to count each value, then filter for counts greater than one. For a grouped report, use QUERY to list repeated values and their counts. Both methods let you inspect matches before deciding whether any records need correction.
Check duplicates in one column
Assume column A contains identifiers, row 1 is a header, and the data occupies A2:A1000. Put this formula in B2 and fill it down to B1000:
=IF(A2="","",COUNTIF($A$2:$A$1000,A2))
Each nonblank row shows how often its value appears in the selected column range. A count of 1 means the value occurs once; a count of 2 or more marks every occurrence of a duplicate. The dollar signs keep the search range fixed as the formula moves down, while A2 changes to the current row.
For example, if A2 and A7 both contain SKU-42, both helper cells return 2. The formula does not decide which record is correct or whether either row should be removed.
To inspect only repeated values:
- Add a header such as
Countin B1, leaving the source header in A1. - Select A1:B1000 and choose Data > Create a filter.
- Open the filter in column B and filter by condition Greater than, using
1. - Review the visible records and clear the filter when finished.
A filter hides rows rather than deleting them. Expand the selected range and formula references if records extend past row 1000; otherwise, later matches will be missed.
Normalize the selected values
Values that look alike may differ because of spaces, capitalization, or inconsistent data types. Inspect the source first and decide which differences should count as equivalent. For text identifiers, place this formula in an empty helper column, such as C2, and fill it down:
=IF(A2="","",LOWER(TRIM(TO_TEXT(A2))))
TO_TEXT converts the value to text, TRIM removes leading and trailing ordinary spaces and reduces repeated ordinary spaces, and LOWER standardizes case. This leaves column A unchanged. Count the normalized keys with the same COUNTIF pattern, replacing the A references with C references.
Normalization changes the comparison rule: AB 12 and ab 12 become the same key. Do not use that rule if internal spacing or case is meaningful. TRIM does not remove every kind of whitespace, and converting a number to text cannot recover leading zeros already lost when it was entered.
COUNTIF is not case-sensitive, and its criteria can interpret * and ? as wildcards. If those characters are part of identifiers, check the results against literal values or escape them with ~ in the criteria. For a case-sensitive literal count of the value in A2, use:
=IF(A2="","",SUMPRODUCT(--EXACT($A$2:$A$1000,A2)))
Fill this formula down to compare each row. EXACT distinguishes uppercase from lowercase; keep the range bounded to avoid unnecessary calculation across an entire column.
Group and count matches
A grouped report shows each repeated value once rather than displaying every matching row. In an empty area, enter:
=QUERY(A1:A1000,"select A, count(A) where A is not null group by A having count(A) > 1 label A 'Value', count(A) 'Count'",1)
The final 1 tells QUERY that the selected range has one header row. For the earlier example, the report includes SKU-42 with a count of 2. If no value repeats, the query returns no duplicate groups.
To group normalized keys instead, add a header in C1 and run the query against C1:C1000, changing the query's column references from A to C. Compare the resulting groups with the original values before treating formatting differences as duplicates. Mixed data types in one column can also affect QUERY results, because minority types may be treated as null; use a consistently typed key column and verify the counts.
Inspect the duplicate report
A group count tells you how many times a key occurs, not which row should be retained. Use the helper counts and filter to inspect the corresponding source rows, including fields such as dates or status. Two rows sharing a customer name, for example, may represent different people; an identifier can be a better key.
For a compact list of source row numbers, enter a value to investigate in E2 and use:
=IF(E2="","",IFNA(FILTER(ROW(A2:A1000),A2:A1000=E2),"No match"))
FILTER returns the sheet row numbers whose values equal E2. The result spills into cells below the formula, so leave that space empty. Row numbers are useful evidence, but they can change if rows are sorted, inserted, or deleted; retain an identifier alongside them when documenting a review.
The embedded duplicate checker can also produce a read-only report with grouped counts and row indexes for the selected key scope. Check that the scope matches the column you intended to review, and compare reported indexes with the source before acting on them.
Highlight repeated values
Conditional formatting makes duplicates visible in the original column without adding a count beside every row:
- Select A2:A1000.
- Choose Format > Conditional formatting.
- Under Format rules, select Custom formula is.
- Enter the formula below, choose a format, and select Done.
=AND(A2<>"",COUNTIF($A$2:$A$1000,A2)>1)
The rule highlights every occurrence, including the first. Adjust A2 to the first cell in the applied range and keep the counted range aligned with that range. The same case and wildcard limitations as the helper-column COUNTIF apply.
Export evidence
For a shareable report, preserve the value, count, source row number, and any record identifier needed to locate each match. A grouped count alone does not identify every affected row. Copy the filtered records or report into a separate sheet; paste values if the recipient needs a fixed snapshot rather than formulas that recalculate.
Use File > Download to export the appropriate spreadsheet or sheet format. Verify the exported file contains the intended rows and columns, especially when working with filters or multiple sheets. The embedded check also supports downloading its report; review the exported evidence before sharing it.
Avoid common checking errors
- Including the header: Start data formulas at row 2 when row 1 contains labels, and specify the correct header count in
QUERY. - Counting blanks: Keep the blank guards in row-level formulas and exclude nulls in the grouped query.
- Using the wrong key: A duplicate in one column does not necessarily mean the whole row is duplicated. Review other fields before changing records.
- Mixing source and report: Put formulas in empty columns or on a separate sheet so they do not overwrite existing data.
- Treating a check as cleanup: Counts and highlights are evidence, not instructions to delete. Resolve ambiguous groups separately and keep a backup before making changes.
FAQ
Does this page delete google sheets check for duplicates in column?
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