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

Duplicate detection, grouping, and report export

How To Check Duplicates In Excel Google Sheets

Use a read-only duplicate check for how to check duplicates in excel 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 how to check duplicates in excel 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 check duplicates in Excel or Google Sheets, count how often each value appears in a defined range, then review the rows with counts greater than one. Use a helper column for a row-by-row report or conditional formatting to highlight matches. Neither method deletes source data.

Try the embedded duplicate checker on your pasted CSV or TSV data for grouped counts, row indexes, and downloadable evidence.

Choose what counts as a duplicate

Select the key before checking your spreadsheet. A key can be one column, such as an email address, or several columns that together identify a record. Two rows with the same customer name may be legitimate if their order IDs differ.

Include all relevant records in the range, but exclude the header. For the examples below, values are in A2:A100 and row 1 contains headings. Extend the range if your data set has more rows; records outside it will not be checked.

Normalize the selected values

Extra spaces can prevent visually similar values from matching. In Google Sheets, put this formula in B2 and fill it down to B100 to create a separate comparison key:

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

TRIM removes leading and trailing spaces and reduces repeated ordinary spaces between words. LOWER makes the key lowercase. The original value remains in column A, so you can inspect it before deciding whether the differences matter.

Use normalization only when it fits the data. Spaces within identifiers may be significant, and TRIM does not remove every kind of invisible character. Check number and date formats too: a displayed value and the underlying stored value are not always equivalent.

Group and count matches

In Google Sheets or Excel, enter this formula in C2 and fill it down to C100. It counts each nonblank normalized key in column B:

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

A count of 1 identifies a value appearing once; a count of 2 or more identifies every row in a duplicate group. For example, if B2 and B7 both contain alex@example.com, both rows return 2. Filter column C for values greater than 1 to inspect the matching records.

For a label instead of a count, use this formula in an empty helper column and fill it down: find duplicates in excel google sheets

=IF(B2="","",IF(COUNTIF($B$2:$B$100,B2)>1,"Duplicate","Unique"))

COUNTIF interprets wildcard characters in its criterion, so values containing *, ?, or ~ need special care. For literal comparisons in Google Sheets, use SUMPRODUCT instead:

=IF(B2="","",SUMPRODUCT(--($B$2:$B$100=B2)))

This formula compares each cell directly with B2. Keep the range bounded to the records under review, especially in larger sheets.

Highlight duplicates in Google Sheets or Excel

Conditional formatting makes repeated values visible without adding a status column. To highlight all occurrences in Google Sheets:

  1. Select A2:A100 and choose Format > Conditional formatting.
  2. Under Format rules, select Custom formula is.
  3. Enter the formula below, choose a formatting style, and select Done.
=AND(A2<>"",COUNTIF($A$2:$A$100,A2)>1)

The relative reference A2 changes for each row, while the dollar signs keep the lookup range fixed. If you select a range starting on another row, change A2 to its first cell. To highlight based on normalized keys, apply the rule to A2:A100 but replace both references to column A in the formula with column B. how to check google sheets for duplicates

In Excel, select the data cells and choose Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values. Choose a format and confirm. Review the highlighted cells in context; highlighting alone does not establish which record, if any, should be removed.

Inspect the report for duplicate rows

A repeated value in one column is not necessarily a duplicate row. To check a combination of columns A and B, enter this formula in C2 and fill it down in either Google Sheets or Excel:

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

COUNTIFS counts rows where both fields match the current row. This example excludes records with either key field blank; change that rule only if blank fields should participate in your comparison. A count above 1 marks every occurrence of the same pair, even if other columns differ.

To mark only later occurrences of a single value, use an expanding range: how to check in google sheets if there are duplicates

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

Fill the formula down and filter for Repeated. The first occurrence depends on the current row order, not on which record is most accurate or recent. Sorting the sheet can change which row receives that label.

The embedded duplicate checker can check pasted CSV or TSV data using selected columns and provide grouped counts, row indexes, and downloadable evidence. Its check is read-only; review the source records before taking any cleanup action.

Compare sheets for repeated values

To check whether each value on the current Google Sheets tab also appears on a tab named Sheet2, enter this formula beside the first value and fill it down:

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

This tests membership in the second range, not whether a value is repeated within either sheet. Check the ranges and sheet name before interpreting missing results. For names containing wildcard characters, use a literal comparison method rather than relying on COUNTIF criteria. how to have google sheets check for duplicates

These formulas check equality, not approximate matches. Variants such as Jon Smith and John Smith need separate review; do not treat a similar spelling as proof that two records refer to the same person.

Export evidence

Keep a record of the key, checked range, group counts, and source row numbers before changing data. In a manual report, retain the original row number in a helper column before sorting or copying filtered rows:

=ROW()

Fill it down, then copy and paste the results as values if the report will be rearranged. Include the original fields alongside normalized keys and counts so another reviewer can trace each match back to the source. Export the report in a suitable spreadsheet or CSV format, then verify that the file contains the intended filtered rows and columns.

Avoid checking only the visible part of a range, counting headers as data, or combining unrelated records under an overly broad key. Review blanks, wildcard characters, formatting differences, and any normalization rules before using a report to decide on deletion.

FAQ

Does this page delete how to check duplicates in excel 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