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

Duplicate detection, grouping, and report export

Removing Duplicates On Google Sheets

Use a read-only duplicate check for removing duplicates on 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 for duplicates without changing the sheet
Review grouped matches for removing duplicates on 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

Find and review duplicate groups before removing duplicates in Google Sheets. Choose the columns that define a match, count repeated keys, and inspect the affected rows before deleting anything. A read-only check preserves the source data while you decide which records to keep.

Paste your data, choose the key columns, and see grouped duplicate counts before editing anything.

Define the duplicate scope

A duplicate value is not always a duplicate record. Two orders can share a customer email but have different order IDs; removing one based on email alone would discard a valid order. Decide whether a match means one repeated value, a combination of columns, or an entire repeated row.

  1. Make a copy of the spreadsheet before changing data.
  2. Identify the header row and the data range, including every column needed to interpret each record.
  3. Choose key columns, such as order ID alone or email and date together.
  4. Decide whether blanks, capitalization, extra spaces, and different spellings should count as matches.
  5. Agree on the record to retain, such as the earliest verified entry, before removing rows.

For example, if rows 2 and 8 contain the same email but different order IDs, they are duplicates by email only. If both email and order ID match, they are duplicates by that two-column key. A count reports repetition; it does not establish which row is correct.

Normalize the selected values

Use a helper column to standardize text before grouping when extra spaces or letter case should not distinguish records. For values in A2:A, enter this formula in an empty cell on row 2 and fill it down: google sheets removing duplicates

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

The relative reference changes from A2 to A3 and so on as you fill down. TRIM removes leading and trailing ordinary spaces and reduces repeated ordinary spaces; LOWER standardizes case. The formula leaves empty-looking inputs blank instead of treating them as a key.

Normalization is a comparison rule, not proof that records are identical. It does not correct misspellings or reliably remove every invisible character. Review IDs with leading zeros, numeric values stored as text, dates, and formula results separately: visual similarity does not guarantee that underlying values match.

Group and count matches

For a single normalized key in column B, enter this formula in C2 and fill down: removing duplicates on google sheets

=IF(B2="","",COUNTIF($B$2:$B,B2))

The fixed range reference $B$2:$B searches the same column on each row, while the cell reference B2 changes as the formula is copied. A result of 1 means the key appears once; 2 or more means every occurrence belongs to a repeated group. Filter column C for values greater than 1 to inspect all affected rows together.

For a two-column key, count combinations instead of counting each column independently. If normalized email is in B and order ID is in D, use:

=IF(OR(B2="",D2=""),"",COUNTIFS($B$2:$B,B2,$D$2:$D,D2))

This formula excludes rows with a blank key component and counts only rows where both values match. Adapt the references to your sheet and check whether blanks should instead be included. Keep helper formulas outside the source columns so they do not overwrite records. removing duplicates on google sheets

Inspect the report for removing duplicates on Google Sheets

Sort or filter the helper counts, then compare the original fields within each group. Check dates, status, IDs, and other context before choosing a row to keep. A repeated email can represent separate transactions, while repeated full rows may still need verification against the original source.

The read-only checker reports row indexes and group sizes, so you can confirm matches against your sheet before deleting rows.

The embedded duplicate checker can inspect pasted CSV or TSV data using selected columns and return grouped counts and row indexes without changing the source sheet. Its downloadable report provides evidence for review; the check itself does not delete records.

Confirm how reported row indexes map to your sheet, especially if the pasted range starts below row 1 or includes a header. Sorting or inserting rows after the check can also change positions. Use a stable ID alongside row numbers when recording decisions, and rerun the check after the data changes. removing duplicates google sheets apps script

Remove confirmed duplicates

Google Sheets can remove duplicate rows from a selected range. Use this only after checking the key and deciding which record should remain.

  1. Select the complete table, including all columns that belong to each record. Include the header if present.
  2. Choose Data → Data cleanup → Remove duplicates.
  3. Indicate whether the selected data has a header row, then select the columns to analyze.
  4. Check that the chosen columns represent the intended key, and run the removal.
  5. Review the result and verify that retained rows contain the information you need.

The selected columns determine which records are considered duplicates. Selecting only one column when adjacent columns contain related data can leave those columns misaligned with the cleaned list. If a particular record must survive, arrange and verify the data first, or remove confirmed rows manually rather than relying on an unreviewed selection.

Create a unique list with a formula

To return distinct rows without deleting the source, place this formula in an empty area or another sheet: google docs duplicate row

=UNIQUE(A2:D)

UNIQUE compares the selected columns as a row and returns a separate result. Two rows with the same email but different order IDs remain separate if both fields are in the range. To return distinct values from one column instead, use =UNIQUE(A2:A); that output is not a complete record-level cleanup.

Leave enough empty cells for the result to expand. An existing value in the output area can cause an error value, and changes to the source can change the formula result. If you need a fixed record of the result, copy it and paste values into a separate sheet after review.

Apps Script and common mistakes

Apps Script can automate a repeatable cleanup, but a script that deletes rows changes the spreadsheet. Test any script on a copy, define the exact sheet, range and key columns, and verify which occurrence it keeps. A read-only report is safer when retention rules are unresolved; automation does not resolve conflicting records by itself. duplicate a row in google sheets

Avoid these frequent errors:

  • Counting only later occurrences: a running count can identify repeated entries after the first, but it does not display the full group count on every row.
  • Including a column header as data: start formulas below the header and configure the removal dialog accordingly.
  • Treating blanks as duplicates unintentionally: exclude blank keys or define a separate rule for them.
  • Deleting by row number after sorting: positions may have changed; verify the current record or use a stable ID.
  • Comparing the wrong scope: a duplicate within one selected range is not necessarily a duplicate across other sheets or the entire workbook.

Export evidence

Before cleanup, preserve the selected key, original values, group counts, row references, and the decision for each reviewed group. Export the read-only check report or copy your helper results to a separate sheet. Record the date and source range so another reviewer can interpret the evidence.

Save the exported evidence, then run the same check again after cleanup to confirm no selected key repeats.

After removal, run the same comparison again against the updated range. Compare remaining groups with the decisions you recorded, and investigate unexpected matches or missing records using the saved copy. A clean count confirms only that the selected key no longer repeats; it does not validate every field in the data set.

FAQ

Does this page delete removing duplicates on google sheets?

No, it returns a read-only duplicate report.

What do I do with the data for removing duplicates on google sheets?

Paste data for removing duplicates on 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