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

Duplicate detection, grouping, and report export

Google Sheets How To Check For Duplicates In A Column

Use a read-only duplicate check for google sheets how to check for duplicates in a 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.

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 google sheets how to check for duplicates in a column 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, use COUNTIF to count each value in the selected range. A count greater than 1 identifies every occurrence of a repeated value without deleting or changing the source data. You can also highlight matches or create a separate report of values, counts, and row numbers.

This embedded duplicate-checker runs read-only on your pasted data and returns grouped counts plus row-level evidence you can export.

Check a column with COUNTIF

Suppose column A contains customer IDs, with a header in A1 and data in A2:A1000. Enter this formula in B2 and fill it down alongside the data:

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

The absolute range $A$2:$A$1000 stays fixed as you fill down, while A2 changes to the current row. COUNTIF counts matches in the entire range, so every occurrence of a repeated ID receives the Duplicate label. Blank cells return a blank result.

For example, if A2 and A8 both contain C104, both rows are labeled Duplicate. A value appearing once is labeled Unique. Extend the range if your data continues past row 1000; otherwise, later rows will not be counted.

Mark only repeated occurrences

To keep the first occurrence distinct from later ones, use an expanding range in B2 and fill down:

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

The first C104 is labeled First occurrence; the next is labeled Duplicate. This identifies repeats in sheet order, not necessarily the record you should keep. Sorting the data can change which row appears first.

Highlight duplicates in the source column

Conditional formatting makes repeated values visible without adding a label column. For the same example:

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

The relative reference A2 must correspond to the first cell in the applied range. The fixed count range covers all selected data, and A2<>"" prevents empty cells from being highlighted. If you apply the rule to another column or a range starting on a different row, update both references.

This rule highlights all instances of a duplicate, including the first. To highlight only later instances, replace the count range with $A$2:A2. Formatting is a visual cue, not a count or an exportable audit by itself.

Prepare values before grouping

A useful duplicate report depends on what counts as the same value. Decide whether extra spaces and letter case should be ignored before checking customer IDs, names, or other keys. Review the raw data first: two similar-looking entries may represent different records.

Normalize the selected values

For text values where leading, trailing, and repeated ordinary spaces should not distinguish records, add a helper column. Enter this in B2 and fill it down:

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

TRIM removes leading and trailing spaces and reduces repeated ordinary spaces between words; LOWER converts text to lowercase. For example, Blue Bike and blue bike become the same helper value. Check for duplicates in column B if that equivalence matches your task, while retaining column A as the original evidence.

Normalization changes the comparison key, not the original cell. It can also merge values that should remain distinct, so do not apply it automatically to case-sensitive identifiers. TRIM does not remove every nonstandard whitespace character; inspect unexpected nonmatches before changing the data.

Group and count matches

For a compact list of duplicate values, place this formula in an empty area or on a report sheet:

=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)

The result contains one row per repeated value and its group count. For C104 appearing three times, the report shows C104 and 3; it does not identify the individual source rows. If you need normalized grouping, point the formula at the helper column instead and retain the original values for review.

QUERY infers a column's data type; mixed text and numbers can therefore produce unexpected omissions. For identifiers, use a consistent representation and check the output against the source. Leave enough empty cells below and to the right of the formula for its results to expand.

Inspect the duplicate report

A group count answers how often a value appears, not whether each record is an error. Review the surrounding columns, such as date, owner, or transaction ID, before deciding what a repeated key means. A repeated customer ID can be expected when one customer has several transactions.

To find the source row numbers for a particular value, put the value to inspect in D2 and enter this formula in E2:

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

FILTER returns the sheet row number for each match, and IFNA displays No matches when none are found. The row-number range and comparison range must have the same boundaries. Row indexes describe the current sheet layout; sorting or inserting rows can change them.

The embedded duplicate checker can also check pasted data in selected columns and return grouped counts and row-level evidence. Its check is read-only; review the scope and results against the source before using the report.

Check scope and common mistakes

  • Header included: Start below the header unless it is part of the data. Otherwise, a repeated header can appear as a duplicate.
  • Incomplete range: Include all relevant rows in the column range, and update formulas and formatting rules when the data grows.
  • Wrong key: A repeated value in one column is not necessarily a duplicate row. Check additional fields when the business definition requires them.
  • Hidden differences: Spaces, inconsistent types, and formatting can make values look alike while producing unexpected results. Inspect raw values and helper keys.
  • Approximate matches: These formulas count matching values; they do not find spelling variations or other fuzzy matches.
  • Formula syntax: Some spreadsheet locales require semicolons instead of commas as function argument separators.

Export evidence

Create a separate report sheet with the duplicate value, group count, source row numbers, and any context needed to review each match. Copy formula results and paste values into the report if you need a snapshot that will not recalculate when the source changes. Record the checked range and any normalization rule alongside the results so another reviewer can reproduce the check.

To export a sheet, select it and use File → Download to choose an available format. Check the downloaded file before sharing it, especially if the report contains sensitive records. A CSV export contains the current sheet, so place the evidence on that sheet first; keep a separate copy of the source if later changes need to be audited.

The embedded checker also supports downloading its duplicate-check results. Neither a count nor an exported report proves which record should be removed: resolve that decision against the original data and the rules for your data set.

FAQ

Does this page delete google sheets how to check for duplicates in a 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

Run read-only duplicate check