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

Duplicate detection, grouping, and report export

Google Sheets Formula To Find Duplicates

Use a read-only duplicate check for google sheets formula to find duplicates 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 formula to find duplicates 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

Use COUNTIF as a Google Sheets formula to find duplicates in a column without changing the source values. For values in A2:A100, enter =IF(A2="","",IF(COUNTIF($A$2:$A$100,A2)>1,"Duplicate","Unique")) in B2 and fill it down. Every occurrence of a repeated value receives the label Duplicate, including the first.

The embedded checker reads your pasted data and returns grouped counts plus row indexes without touching your source.

Find duplicate values with a formula

Choose a range that covers the records you want to check. In this example, row 1 contains headers, column A contains values, and column B is empty.

  1. Enter this formula in B2:
=IF(A2="","",IF(COUNTIF($A$2:$A$100,A2)>1,"Duplicate","Unique"))
  1. Fill the formula down through B100.
  2. Filter column B for Duplicate and inspect the corresponding source rows.

COUNTIF counts matches for the current cell within the fixed range. Dollar signs lock the range reference when you copy the formula; A2 is a relative reference that changes to A3, A4, and so on. The outer IF leaves empty cells unlabelled.

For example, if A2 and A5 both contain pear, both rows show Duplicate. If A3 contains apple only once, it shows Unique. Extend $A$2:$A$100 and the filled formulas when your data set grows beyond row 100.

COUNTIF is not case-sensitive, and its criterion can interpret * and ? as wildcards. If those characters are literal parts of your values, use the SUMPRODUCT method below instead of treating the first formula as a literal exact-match test.

Mark only repeated occurrences

Use an expanding range if you want to keep the first occurrence unmarked and identify later occurrences for review:

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

Fill it down from B2. The range starts at row 2 and ends at the current row, so the second pear is marked while the first is not. Sorting the sheet changes which occurrence is first; the label alone does not establish which record is correct.

Normalize the selected values

Extra spaces and inconsistent capitalization can split values that should belong to one group. To compare a cleaned version, enter this in an empty helper column, such as C2, and fill it down:

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

Point the duplicate formula at C2:C100, using C2 as its criterion. CLEAN removes non-printable ASCII characters, TRIM removes leading and trailing spaces and reduces repeated spaces, and LOWER standardizes letter case. The source column stays unchanged.

Normalization changes the comparison rule: North Store and north store become the same key. It may not remove every Unicode spacing character or resolve spelling differences, so inspect suspicious values before treating them as matches. Decide whether IDs with leading zeros should remain text; converting them to numbers can erase distinctions. what is the formula to find duplicates

Use the exportable report to keep a dated copy of keys, statuses, and source rows before any cleanup decision.

Group and count matches

A summary can show each repeated value once with its group count. With the normalized keys in C2:C100, place this formula in an empty area with room for two output columns:

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

QUERY groups the keys and returns only groups with more than one occurrence. A count of 3 means three rows share that key, not necessarily that three rows should be removed. The summary does not include source row numbers; use the row-level labels to inspect each member.

For literal, case-sensitive comparisons, use EXACT with SUMPRODUCT in an empty column and fill down:

=IF(A2="","",IF(SUMPRODUCT(--EXACT($A$2:$A$100,A2))>1,"Duplicate","Unique"))

EXACT distinguishes Pear from pear and treats wildcard characters as ordinary text. Keep its range bounded for larger sheets, because the comparison is repeated for every filled row. This is an equality check, not an approximate match for similar spellings. find duplicates across multiple sheets

Inspect the duplicate report

A useful report identifies the key, count, and source rows rather than treating every repeated value as an error. Add a row index in an empty helper column with =ROW(A2) and fill it down alongside the labels. Filter for duplicates, then compare the original values and other fields in those rows.

Check the scope before acting:

  • Column: A repeated customer name may represent different people. Use a stable identifier if it defines the record.
  • Row: Matching one column does not prove that every field in two rows matches. Compare the relevant fields before classifying whole rows as duplicates.
  • Range: Values outside the selected range are not counted. Include all intended records and exclude headers.
  • First occurrence: An expanding-range formula depends on current row order. An all-occurrences formula marks every member of a duplicate group.
  • Blank cells: The examples leave blanks unlabelled. If blank entries need investigation, review them separately.

To find duplicates in Google Sheets across multiple tabs, apply the same key rule to each source and compare a combined list in a separate report sheet. Preserve a sheet identifier and original row index beside each value; a row number alone cannot identify its source tab. Check that the combined range covers every intended tab before relying on counts.

The embedded duplicate checker can also check pasted data by selected columns and provide grouped counts and row indexes. Its check is read-only, and its report can be downloaded for review. find duplicates in multiple google sheets

Export evidence

Before exporting, confirm that the filtered report includes the original key, its status, and a row index; include the sheet name when comparing tabs. If you use normalized keys, retain the original values beside them so a reviewer can see what was grouped and why.

For a manual record, copy the reviewed report into a separate sheet and paste values only. Download that report in a suitable format, then verify that its rows and columns match the intended scope. Formula results can change when source data or sort order changes, so record the scope and comparison rule with the evidence.

Extend the fixed range or switch to case-sensitive EXACT when capitalization or wildcards matter for your values.

Neither a formula label nor a duplicate count authorizes deletion. Review the underlying records and retain the report before making any separate cleanup decision.

FAQ

Does this page delete google sheets formula to find duplicates?

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