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

Duplicate detection, grouping, and report export

How To Check Google Sheets For Duplicates

Use a read-only duplicate check to find repeated values in your Google Sheets 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 for duplicates now
Review grouped matches 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 Google Sheets for duplicates without changing source data, count each value with COUNTIF and filter for counts greater than one. For a row-level report, keep the original row numbers beside the counts; for a grouped report, use QUERY to list each repeated value and its frequency.

Try the embedded duplicate checker above, or see how COUNTIF can flag repeated values in any column.

Check a column for duplicate values

Suppose column A contains email addresses, with a column header in A1 and records in A2:A1000. Put Count in B1, enter the following formula in B2, and fill it down to B1000:

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

The fixed range searches the same data set for every row, while A2 changes as the formula is filled down. A count of 2 means the value appears twice in the selected range. Both occurrences receive a count of 2; the formula does not identify which entry is correct.

To see only repeated values, select the headers and data, choose Data → Create a filter, and filter column B to show numbers greater than 1. Turn off the filter when finished to show the other rows. Filtering hides rows from view; it does not delete them.

If you only need a status label, use a separate helper column:

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

Extend the range if records continue past row 1000. A value outside the range will not contribute to the count, so a duplicate can be missed. Place helper formulas in unused columns or on a copy to avoid overwriting existing data.

Normalize the selected values

Decide what makes two entries equivalent before counting. A trailing space can make two otherwise identical text values appear different. To check trimmed, lower-case text, put this formula in an empty helper column, then fill it down:

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

Count the resulting helper values instead of column A. This keeps the original entries available for review while making the comparison rule visible. TRIM removes leading and trailing ordinary spaces and reduces repeated ordinary spaces between words; it does not remove every kind of whitespace.

Normalization can also merge values that should stay distinct. For example, removing internal spaces from product codes could turn two valid codes into one key. Check sample results before applying a rule to the whole spreadsheet, and retain the original values in the report.

Group and count matches

Use QUERY to build a compact report of repeated values and their group counts. Place this formula in an empty area with room for two output columns:

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

Each result row represents one duplicate group, not one source row. If an address occurs three times, the report shows that address once with a count of 3. The final 1 tells QUERY that the selected range has one header row.

For normalized grouping, point the query at a helper column containing normalized values and its header. Mixed data types can affect how QUERY treats a column, so inspect results when numbers and text are combined. Group counts alone do not identify the source rows; keep a row-level report for investigation.

Inspect the duplicate report

A useful report answers three questions: which key repeats, how many times it occurs, and where each occurrence came from. Add source row numbers in another empty helper column, starting on row 2:

=IF(A2="","",ROW())

Filter the original records by the count or status column and include the row-number column in your review. For example, if the same address appears on rows 4 and 19, both records should appear with a count of 2. Compare their other fields before deciding whether they represent an error or legitimate repeated activity.

Row numbers describe positions at the time of the check. Sorting, inserting, or deleting rows can change those positions, so record a stable identifier as well when one exists. If you paste a subset into the embedded duplicate checker, review its reported row indexes against the pasted data rather than assuming they are sheet row numbers.

Check duplicates across multiple columns

A repeated email alone may be acceptable when the same person has several orders. To flag rows only when both the email in A and order ID in B match, enter this formula in an empty column on row 2 and fill it down:

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

A count greater than 1 means the combination occurs more than once. The formula skips rows where either key is blank; change that policy only after deciding whether incomplete records should be compared. Add further range-and-criterion pairs to COUNTIFS if the key includes more fields.

For text keys containing * or ?, COUNTIF and COUNTIFS can interpret those characters as wildcards. Test such values separately or escape wildcard characters before counting. This matters for IDs and codes where punctuation is part of the literal value.

Compare sheets without editing either source

To check whether values from Sheet1 also appear in Sheet2, enter this formula beside the first record on Sheet1 and fill it down:

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

This checks membership in the second sheet; it does not count duplicates within Sheet1 or show every matching row on Sheet2. Adjust the sheet name and ranges to match the spreadsheet, and quote a sheet name containing spaces, such as 'Sheet 2'!$A$2:$A$1000. Apply the same normalization policy on both sheets if whitespace or case handling matters.

Export evidence

Before sharing results, include the key, group count or status, source sheet, row number, and any stable record ID needed to locate each match. Remove sensitive fields that the recipient does not need. Keep the source data unchanged while the duplicate report is reviewed.

For a manual export, copy the filtered records and headers into a separate sheet, then use File → Download and choose an appropriate format. Check that the exported file contains the intended rows and columns; a grouped summary alone cannot show which individual records matched. Preserve a copy of the report before later sorting or editing changes row positions.

The embedded checker provides a read-only check and downloadable evidence for pasted data. Its result can support review, but any correction or deletion remains a separate decision in the source spreadsheet.

FAQ

Run read-only duplicate check to inspect duplicate detection, grouping, and report export

Run read-only duplicate check to inspect duplicate detection, grouping, and report export

Run read-only duplicate check

Run read-only duplicate check