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

Duplicate detection, grouping, and report export

Check For Duplicates Google Sheets

Use a read-only duplicate check for check for duplicates 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
Check selected data for repeats
Review grouped matches for check for duplicates 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 Google Sheets without changing source data, count occurrences of each key with COUNTIF or COUNTIFS, then review the matching rows. For a grouped report, use QUERY to list repeated keys and their counts. Decide first whether a duplicate means one repeated value or a combination of values across columns.

Try the embedded tool above to check your data set for duplicate values without changing the source sheet.

Choose the scope of the check

Select the data set and the fields that define a match. A repeated email address may identify a duplicate contact, while an order number and product code together may identify a duplicate line item. Two rows can share a name without representing the same person.

Keep headers outside the ranges used for counting. The examples below use rows 2–1000, with a key in column A and a second field in column B. Adjust the last row to cover your data; records outside the range will not be checked.

Normalize the selected values

Review spaces, capitalization and data types before counting. Values that look alike can differ because of leading spaces or nonprinting characters. Numeric values stored as text can also behave differently from numbers in comparisons.

To create a cleaned text key in an empty helper column, enter this formula in C2 and fill it down:

=LOWER(TRIM(CLEAN(A2)))

CLEAN removes nonprintable ASCII characters, TRIM removes leading and trailing spaces and collapses repeated regular spaces, and LOWER standardizes capitalization. This helper leaves column A unchanged. It does not fix every Unicode whitespace character or resolve spelling variations, and collapsing spaces may be inappropriate for some identifiers.

For nonbreaking spaces in imported text, replace them before trimming:

=LOWER(TRIM(CLEAN(SUBSTITUTE(A2,CHAR(160)," "))))

Compare the helper values with the originals before relying on them. Normalization can merge values that your process treats as distinct; preserve leading zeros in identifiers rather than converting them to numbers.

Group and count matches

To label every occurrence of a repeated nonblank value, enter this formula in D2 and fill it down:

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

COUNTIF counts matches within the fixed range. Both the first and later occurrences receive the Duplicate label. For a check based on cleaned values, replace both references to column A with the corresponding references to helper column C.

For a composite key, count the combination rather than either column alone:

=IF(OR(A2="",B2=""),"",IF(COUNTIFS($A$2:$A$1000,A2,$B$2:$B$1000,B2)>1,"Duplicate","Unique"))

This formula skips rows where either key field is blank. Change that rule only if incomplete records should participate in the check. Use another range-and-criterion pair in COUNTIFS when a third field belongs to the key.

The embedded checker also handles paste TSV or CSV input and returns grouped counts plus row-level evidence.

COUNTIF and COUNTIFS support wildcard criteria. If a key can contain *, ? or ~, escape those characters in the criterion before counting, or use a comparison method that treats them literally. Otherwise a value containing a wildcard can match more rows than intended.

To produce one row per repeated value with a group count, place this formula in an empty area:

=QUERY(A2:A1000,"select A, count(A) where A is not null group by A having count(A) > 1 label A 'Key', count(A) 'Count'",0)

For example, if order-17 appears three times, the report returns that key with a count of 3. The count includes every occurrence, not only the two extra rows. QUERY treats a column with mixed data types according to its majority type, so standardize the key in a helper column first if numbers and text are mixed.

Inspect the report for duplicate values

Filter the label column for Duplicate to inspect the original records beside their matches. Check related fields, such as dates or status, before deciding whether repeated keys reflect errors or valid repeated activity. A group count alone does not identify which record should be retained.

For row-level evidence, place this formula in a separate empty area to return the source row number and key for each repeated nonblank value:

=IFNA(FILTER({ROW(A2:A1000),A2:A1000},A2:A1000<>"",COUNTIF(A2:A1000,A2:A1000)>1),"No duplicates")

The row number refers to the original position in the sheet when the formula calculates. Sorting, inserting or deleting source rows can change those positions, so capture a stable record ID as well when one exists. This formula uses the same wildcard-sensitive COUNTIF criteria; escape wildcard characters or use literal comparisons if keys contain them.

The embedded duplicate checker also accepts pasted TSV or CSV data, checks selected columns and produces grouped counts and row-level evidence without changing the source sheet. Confirm which pasted row each reported index represents before using it to locate a record.

Compare sheets without merging records

To flag values on Sheet1 that also appear on Sheet2, enter this in an empty column on Sheet1 and fill down:

=IF(A2="","",IF(COUNTIF(Sheet2!$A$2:$A$1000,A2)>0,"Match on Sheet2","Not found on Sheet2"))

This checks membership, not whether values are duplicated within either sheet. It also does not identify every matching row on Sheet2. Apply consistent cleanup on both sheets and escape wildcard criteria where needed before interpreting the result.

Export evidence

Create a separate report sheet with the key, group count, source row number and any stable record ID needed for review. Copy formula results and paste values if the report must remain fixed while the source data changes. Include the sheet name, checked range, key columns and normalization rules alongside the report so another reviewer can reproduce the check.

Download the report through File > Download in a suitable format, such as CSV for the current sheet. Review the downloaded file to confirm that its fields and values are usable. The embedded checker's results are also downloadable.

Before sharing evidence, remove fields that reviewers do not need and follow your data-handling rules. Keep detection separate from deletion: a duplicate label is evidence of a repeated key, not proof that a row is safe to remove.

FAQ

Does this page delete check for duplicates google sheets?

No, it returns a read-only duplicate report.

What do I do with this tool?

Paste data for check for duplicates google sheets; select the key scope; inspect grouped counts, row indexes, and exportable evidence.

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