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

Duplicate detection, grouping, and report export

Combine Duplicates In Google Sheets

Use a read-only duplicate check for combine duplicates in 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 duplicates now
Review grouped matches for combine duplicates in 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 combine duplicates in Google Sheets, first define which columns identify the same record, then group those keys and decide how to handle the remaining values. A read-only duplicate report shows repeated keys and their source rows; it does not merge or delete records. Use a separate summary to count matches or add numeric values without changing the source sheet.

Paste your sheet data into the duplicate checker above to see grouped counts and row positions instantly.

Define the duplicate key

A duplicate can mean a repeated value in one column or a repeated combination across several columns. For example, two rows with the same customer ID may represent one customer, while the same ID and date together may identify a repeated transaction. Choose the key before grouping so that legitimate records are not combined by mistake.

  1. Keep the original data unchanged and add helper columns or a separate report sheet.
  2. Identify the header row, the data range, and the columns that define a match.
  3. Decide whether blank keys, differences in case, and extra spaces should count as matches.
  4. Choose what to do with other fields: count rows, sum amounts, retain a value, or review conflicts manually.

For the examples below, assume row 1 contains headers, customer IDs are in A2:A1000, and amounts are in B2:B1000. Adjust the ranges to include the full data set. Leave space below and to the right of each summary formula for its results to expand.

Normalize the selected values

Extra spaces and inconsistent capitalization can split a group that should match. In C2, create a normalized key for each nonblank ID:

=ARRAYFORMULA(IF(A2:A1000="","",LOWER(TRIM(A2:A1000))))

TRIM removes leading and trailing ordinary spaces and reduces repeated ordinary spaces between words. LOWER makes text comparisons consistent. This helper does not change the original ID, and it does not remove every possible invisible character. Check unusual spaces or nonprinting characters separately if apparently identical values still form different groups.

Normalization is a business rule, not proof of identity. If capitalization or internal spacing distinguishes valid IDs in your spreadsheet, use the original values or adapt the helper. Preserve IDs with meaningful leading zeros as text; converting them to numeric values can erase those zeros.

Group and count matches

To list each normalized key and its row count, enter this formula in an empty area:

=QUERY(C1:C1000,"select C, count(C) where C is not null group by C label C 'Key', count(C) 'Count'",1)

The result contains one row per nonblank key. A count greater than 1 identifies a duplicate group; a count of 1 represents a key seen once. If C2:C4 contains acme, acme, and beta, the report returns counts of 2 and 1 respectively.

To list only repeated keys, add a filter to the query:

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

For a row-by-row check instead, place this formula in D2 and copy it down:

=IF(C2="","",COUNTIF($C$2:$C$1000,C2))

Every member of a repeated group receives its group count. This makes the source rows easier to inspect, but the helper column does not combine their other fields.

Combine values in a separate summary

When duplicate keys represent amounts that should be added, group by the normalized key and sum the amount column. Put this formula in a separate empty area:

=QUERY({C1:C1000,B1:B1000},"select Col1, sum(Col2) where Col1 is not null group by Col1 label Col1 'Key', sum(Col2) 'Total'",1)

For two acme rows with amounts 10 and 15, the summary returns acme and 25. Ensure amounts are stored as numeric values, not text, and use the same currency and units before adding them. A sum is inappropriate when repeated rows are accidental copies of the same transaction: investigate whether one amount should be retained instead.

A grouped total does not merge names, dates, notes, or other columns. If those fields differ, inspect the source records and choose a rule for each field. For example, a customer ID with two different addresses needs a decision about which address is current; neither a count nor a sum can make that decision.

Inspect the report for duplicates

Compare each group with its original rows before changing data. Check whether matches are true duplicate records, separate events for the same customer, or entries made equal only by normalization. Include enough context, such as dates and amounts, to resolve disagreements.

To locate rows for a normalized key entered in F2, use:

=FILTER(ROW(C2:C1000),C2:C1000=F2,C2:C1000<>"")

The result lists sheet row numbers for that key; FILTER returns an error when there are no matches. Use the row numbers to inspect the corresponding original records. They are positions in the current sheet, so sorting, inserting, or deleting rows later can change them.

When the key spans multiple columns, normalize and compare each component consistently. Do not concatenate fields without a separator or another unambiguous representation: different combinations can otherwise produce the same text. If a separator can occur in a field, account for that too.

The embedded duplicate checker can inspect pasted data using selected columns and provide grouped counts and row indexes. Its check is read-only; its downloadable evidence is separate from any decision to merge or eliminate duplicates in Google Sheets.

Export evidence and avoid common mistakes

Keep a copy of the report with the key definition, selected range, and review decisions. Download the report or copy the relevant summary and source-row references to a separate sheet before making changes. Preserve a source copy if you later choose a destructive cleanup method.

  • Partial ranges: Extend every formula range when data grows; excluded rows cannot appear in counts or totals.
  • Blank keys: The examples exclude blanks. Review rows with missing IDs separately rather than treating them as one customer.
  • Wrong key: A repeated customer ID alone does not prove that two transactions are duplicates.
  • Conflicting fields: A grouped count or total does not resolve competing names, dates, or addresses.
  • Changing source rows: Recheck row indexes after sorting or editing, and verify the selected records before removing anything.
  • Locale differences: Some Sheets locales require semicolons instead of commas as formula argument separators; array-literal separators can also vary.

FAQ

Does this page delete combine duplicates in google sheets?

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