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

Duplicate detection, grouping, and report export

Find Duplicates Google Sheets Formula

Use a read-only duplicate check for find duplicates google sheets formula 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 find duplicates google sheets formula 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 find duplicates in Google Sheets with a formula, enter =IF(A2="","",COUNTIF($A$2:$A$1000,A2)>1) beside your data and fill it down. The result is TRUE for every occurrence of a repeated value, FALSE for a value that appears once, and blank for an empty cell. The formula reports matches without deleting or changing the source values.

The embedded checker inspects pasted data in your selected column scope and returns grouped counts plus row-level evidence without touching your sheet.

Flag duplicate values in a column

Suppose column A contains customer IDs, with a header in row 1 and records in rows 2–1000. Enter this formula in B2:

=IF(A2="","",COUNTIF($A$2:$A$1000,A2)>1)
  1. Adjust $A$2:$A$1000 to cover the data set you want to check.
  2. Place the formula in an empty helper column, outside that range.
  3. Fill the formula down to the last record.
  4. Filter the helper column for TRUE to inspect all rows in duplicate groups.

COUNTIF counts cells in the fixed range that match the current cell reference. Dollar signs keep the range fixed as the formula moves down; A2 is a relative reference, so it becomes A3, A4, and so on. A value appearing three times produces TRUE on all three rows, not only on the later occurrences.

To flag only occurrences after the first, use an expanding range instead:

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

The first instance returns FALSE; the second and later instances return TRUE. This depends on row order. Sorting the source before filling or recalculating the formula can change which occurrence is treated as first, so review the records before deciding which one to keep.

Define what counts as a match

Choose the key before checking duplicates. An email address may identify a person, while an order ID may identify a transaction. Repeated names alone do not prove that two rows represent the same record.

For a two-column key, such as customer ID in A and order date in B, use:

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

COUNTIFS requires both values to match on the same row. This example skips records missing either key; change that rule only if incomplete keys should be compared. Keep both range references aligned and the same size.

Normalize the selected values

Extra spaces or inconsistent capitalization can obscure matches. For text IDs in A2, create a normalized key in an empty column:

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

Fill the formula down, then run the duplicate formula against that helper column. TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER converts text to lowercase. Test the result on sample records: nonbreaking spaces and other hidden characters may need separate treatment, and converting values to text can change how numbers or dates are represented.

Normalization changes the comparison, not the source data. For identifiers where capitalization or internal spacing carries meaning, inspect raw values and define a narrower rule. COUNTIF is not case-sensitive, so use a case-sensitive comparison if abc and ABC must remain distinct.

Group and count matches

A helper flag locates rows; a grouped report shows how often each nonblank key occurs. With normalized keys in C2:C1000, place this formula in an empty area:

=QUERY(C2:C1000,"select C, count(C) where C is not null group by C having count(C) > 1 label count(C) 'Count'",0)

The result lists each repeated key once with its group count. For example, three rows with the normalized key acme produce one report row with count 3. The report does not include source row numbers or other fields, so use the helper flags to inspect the underlying records.

Inspect the report for duplicate formulas

Check the formula result against the selected scope before treating a match as an error. A duplicate group identifies repeated keys; it does not determine whether records are redundant or which row should be retained.

  • Compare associated fields, such as transaction date or status, before making a cleanup decision.
  • Check whether the range includes every intended row and excludes headers and unrelated sections.
  • Review blank and incomplete keys separately when the formula skips them.
  • Investigate error values in source or helper cells before relying on the count.

To list source row numbers alongside matching keys, enter this formula in an empty area:

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

The first output column contains sheet row numbers; the second contains duplicate values. FILTER returns an error when no rows match, so a no-match result needs different handling from a malformed formula or an error in the data. Row numbers can change if rows are inserted, deleted, or sorted; retain a stable record ID for later review.

The embedded duplicate checker can also inspect pasted data within a selected column scope and return grouped counts and row-level evidence. Its check is read-only; compare its scope and match results with your sheet before acting on the report.

Compare duplicate keys across sheets

To check whether each value in Sheet1 also occurs in Sheet2, enter this in a helper column on Sheet1:

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

TRUE means the value occurs at least once in the selected range on Sheet2. This checks for a cross-sheet match, not whether the value is repeated within Sheet1. Adjust the range for the second sheet and quote a sheet name containing spaces, as in 'Sheet 2'!$A$2:$A$1000.

Export evidence

Keep the source sheet intact while preparing a review. Filter the helper column for duplicate rows, then copy the visible results with their record IDs and relevant fields to a separate report sheet. Include the key definition and checked range so another reviewer can reproduce the result.

Export the report through File > Download in a suitable format. CSV exports the current sheet, so select the report sheet first; check the exported file to confirm that it contains the intended rows and columns. The embedded check also supports downloading its report. Neither a formula result nor an exported report removes duplicates from the original sheet.

FAQ

Does this page delete find duplicates google sheets formula?

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