Check for Duplicates in Google Sheets
en
Run read-only duplicate check

Duplicate detection, grouping, and report export

Check For Duplicates In Column Google Sheets

Use a read-only duplicate check for check for duplicates in column 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.

Inspect duplicate groups in the selected sheet dataKeep source values unchanged during the checkExport row-level evidence for the next step
Run read-only duplicate check
Review grouped matches for check for duplicates in column google sheets before exporting duplicate evidence.

Report reading guide

Read duplicate results in three passes

  1. Scope: confirm selected key columns.
  2. Groups: review repeated values and counts.
  3. Rows: compare source row numbers before acting.
Key customer@example.comCount 3 matchesRows 12, 27, 41

To check for duplicates in a Google Sheets column, add a COUNTIF formula beside the data and look for counts greater than 1. This identifies every occurrence of a repeated value without deleting or changing the source data. You can also highlight matches or build a grouped report for review.

For a faster check across a column, try the built-in duplicate checker above to get grouped counts and row-level evidence instantly.

Check a column with COUNTIF

Suppose the header is in A1 and the values to check are in A2:A1000. Place this formula in an empty cell B2, then fill it down through B1000:

=IF(A2="","",COUNTIF($A$2:$A$1000,A2))

Each nonblank row shows how many times its value occurs in the selected column range. A count of 1 means the value appears once; a count of 2 or more identifies a duplicate. For example, if apple appears in A2 and A5, both rows show 2.

The dollar signs lock the search range as you fill the formula down. The reference A2 changes for each row, so each value is counted against the same data set. Adjust the end of the range to cover all relevant records, and exclude the header row.

For a status label instead of a number, use:

=IF(A2="","",IF(COUNTIF($A$2:$A$1000,A2)>1,"Duplicate","Unique"))

Both formulas leave cells blank when the corresponding key is empty. They mark all occurrences of a repeated value, including the first; they do not identify which record is correct or should be kept.

Mark only later occurrences

If you need to retain the first appearance and flag subsequent ones, use an expanding range in B2 and fill down:

=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Later occurrence","First occurrence"))

At row 5, the formula checks A2:A5 rather than the entire column. The result depends on row order, so sorting the source can change which occurrence is labeled first. Use the full-range count when every row in a duplicate group needs review.

Normalize the selected values

Visible differences can hide matches. For example, Apple and apple may represent the same item even though the latter contains extra spaces. If that interpretation fits your data, create a helper key in B2 and fill it down:

=IF(A2="","",LOWER(TRIM(A2)))

Then count the helper keys in C2 and fill down:

=IF(B2="","",COUNTIF($B$2:$B$1000,B2))

TRIM removes leading and trailing ordinary spaces and reduces repeated spaces within text; LOWER standardizes letter case. Normalization changes the comparison key, not the original value. Review the resulting groups before treating them as duplicates, because different source entries can collapse to the same key. Nonbreaking spaces and other invisible characters may require separate cleaning.

COUNTIF is not case-sensitive, and its criterion can interpret * and ? as wildcards. If those characters are literal parts of your keys, escape them in the criterion with a tilde or use a comparison method appropriate to your data. Decide whether case, punctuation, leading zeros, and text-versus-number differences matter before interpreting counts.

Highlight repeated values

Conditional formatting makes duplicate values visible in the original column without adding status text to each row.

  1. Select A2:A1000, excluding the header.
  2. Choose Format > Conditional formatting.
  3. Under Format rules, choose Custom formula is.
  4. Enter the formula below, choose a formatting style, and select Done.
=AND(A2<>"",COUNTIF($A$2:$A$1000,A2)>1)

The first reference, A2, must correspond to the top-left cell of the applied range. The locked range defines where Sheets looks for matches. The rule highlights every nonblank occurrence, not only the second and later ones. If you use normalized helper keys, apply the rule to the source range but refer to the corresponding helper cell and helper range instead.

Group and count matches

A row-by-row flag shows where duplicates occur; a grouped report shows how many instances each repeated value has. With normalized keys in B2:B1000, enter this formula in an empty area with room for two output columns:

=QUERY(B2:B1000,"select B, count(B) where B is not null group by B having count(B) > 1 label B 'Key', count(B) 'Count'",0)

The report lists each repeated helper key once and its total count. A group count of 3 means three rows share that key, not three extra records. Compare the group against the original values before deciding whether any entries represent separate records.

QUERY infers a column's data type; mixed types can be treated as null for the minority type. Use a consistent helper-key type and check error values before relying on a group count. Leave enough empty cells for the result to expand, and update the range when the data grows.

Inspect the duplicate report

Filter the status or count column to see affected records alongside their original values. In Google Sheets, select the data and helper columns, choose Data > Create a filter, then filter the count column for values greater than 1 or the status column for Duplicate.

Keep the related columns in the same filter range. A repeated customer name, for example, may belong to different people; an email address or account ID may be a better key. A repeated key is evidence to inspect, not proof that the entire row is redundant.

To list sheet row numbers for one exact key, put the key to inspect in E2 and use:

=IF(E2="","",IFNA(FILTER(ROW(A2:A1000),A2:A1000=E2),"No matches"))

The output contains sheet row numbers for matching cells, including a single match if the key is unique. Enter a key that appears in the grouped report to locate its duplicate rows. Row numbers can change after sorting, inserting, or deleting rows, so record a stable ID with the evidence when one exists.

For pasted CSV or TSV data, the embedded duplicate checker provides a read-only check of selected columns, with grouped counts and row-level evidence available for export. Its result should be reviewed against the source data and the intended key scope before any cleanup.

Export evidence and avoid common mistakes

To preserve a manual report, copy the relevant keys, counts, row numbers, and identifying fields into a separate sheet. Use Edit > Paste special > Values only if the exported evidence must remain fixed rather than update when the source changes. Download the report sheet in a suitable format using File > Download, after checking which sheet and data the chosen format includes.

Before sharing or acting on the report, check these points:

  • Incomplete range: Values below row 1000 are missed unless you extend the formula and formatting ranges.
  • Header included: A header can be counted as data. Start the range at the first record.
  • Blank keys: The examples exclude blanks; investigate missing identifiers separately if they matter.
  • Error values: Resolve or inspect source errors before counting. Errors can affect helper formulas and reports.
  • Wrong comparison key: A duplicate in one column does not necessarily mean duplicate rows. Check other fields and business rules.
  • Changing source: Live formulas recalculate as data changes. Capture values and record the review context when evidence must reflect a particular check.

Detection, highlighting, and reporting do not remove records. Make any later deletion or merge a separate, reviewed action, with a backup and a clear rule for choosing which record to retain.

FAQ

Does this page delete check for duplicates in column 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

Run read-only duplicate check