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

Duplicate detection, grouping, and report export

Shortcut to Find Duplicates in Google Sheets

Use a read-only duplicate check for shortcut to find 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 your data
Review grouped matches for shortcut to find 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

The quickest shortcut to find duplicates in Google Sheets is to apply conditional formatting with a COUNTIF formula. Select the values, choose Format > Conditional formatting, and use =AND(A2<>"",COUNTIF($A$2:$A$1000,A2)>1) as the custom formula. Every occurrence of a repeated nonblank value is highlighted; the source data stays unchanged.

Run the check against your own data to see grouped counts and row indexes before editing anything.

Highlight duplicate values quickly

Suppose column A contains email addresses, with a header in A1 and data in A2:A1000. To highlight duplicate addresses:

  1. Select A2:A1000.
  2. Choose Format > Conditional formatting.
  3. Under Format rules, select Custom formula is.
  4. Enter the formula below, choose a color, and click Done.
=AND(A2<>"",COUNTIF($A$2:$A$1000,A2)>1)

COUNTIF counts each value in the fixed range. The relative reference A2 changes for each formatted row, while the dollar signs keep the comparison range fixed. AND excludes blank cells, and >1 marks both the first occurrence and later matches.

Adjust the range and first-row reference to match your selection. If data begins in A5, use A5 as the relative reference and start the fixed range at A5. Include enough rows for your data set; values outside the fixed range will not contribute to the count.

To highlight only repeated occurrences after the first, use this rule instead:

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

The expanding range ends at the current row. The first occurrence has a count of one, while each later occurrence has a higher count. Sorting the sheet can change which occurrence appears first.

Create a duplicate report

A helper column provides a filterable status without relying on color. In B2, enter the following formula and fill it down beside the data:

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

For values apple, pear, and apple, the statuses are Duplicate, Unique, and Duplicate. Filter column B to show only Duplicate rows. A filter view can help you inspect those rows without changing the values in the spreadsheet.

To capture source row numbers in another helper column, enter this in C2 and fill it down:

=IF(B2="Duplicate",ROW(),"")

ROW returns the sheet row number, including the header offset. Record these numbers before sorting or moving rows; after a rearrangement, the formula reports each row's new position rather than a permanent record ID. how-to-find-duplicates-in-a-row-in-google-sheets

Normalize the selected values

Decide which differences should count before grouping matches. Extra spaces can make otherwise similar text appear different, while leading zeros may be meaningful in identifiers. Keep the original column for review and place a normalized key in an empty helper column, such as D2:

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

Fill the formula down, then run the duplicate rule or status formula against column D instead of A. TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER converts text to lowercase. Neither operation establishes that two records are interchangeable, so inspect the original values before changing them.

For text copied from other systems, nonbreaking spaces may need separate handling. Replace them before trimming with SUBSTITUTE(A2,CHAR(160)," "). Normalization can also merge values that your workflow treats as distinct, so use it only when those equivalences make sense.

COUNTIF is not case-sensitive. For a case-sensitive comparison of text in A2:A1000, use this helper formula and fill it down: find-duplicates-in-a-table-google-sheets

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

EXACT compares each value with A2, and SUMPRODUCT counts the true results. Use a bounded range: evaluating an array comparison for every row can slow a large sheet.

Group and count matches

For a compact list of repeated normalized values, place this formula in an empty area:

=QUERY(D2:D1000,"select D, count(D) where D is not null group by D having count(D) > 1 label count(D) 'Count'",0)

The report returns one row per repeated key and its group count. For example, three instances of the normalized key apple produce one apple row with count 3. The output does not list source row numbers; use the status and row-number columns to inspect individual records.

If grouping raw values instead, change both the input range and the column references in the query. Keep the output area clear so the result can expand. Mixed data types in a query column can affect which values are considered, so check the underlying data when counts look incomplete.

Inspect the report for duplicate records

A repeated value in one column does not prove that entire rows are duplicates. Two orders can share a customer email but have different order IDs. Select the key scope according to the decision: an email for repeated contacts, an order ID for repeated orders, or several columns for a composite record. find-duplicates-in-google-sheets-tabs

For an exact combination of columns A and B, count matching pairs in a helper column:

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

Fill it down. COUNTIFS requires both criteria to match in the same row; this example excludes rows where either key is blank. Change that rule only if blank values are valid parts of your key.

When you compare sheets or tabs, check that columns represent the same field and that ranges cover the intended rows. A duplicate within one tab and a match across two tabs answer different questions. Include a source-tab label and a stable record ID in any combined review so you can trace each match.

The embedded duplicate checker can check pasted TSV or CSV data using selected columns and return grouped counts and row indexes. Its check is read-only, so the report supports inspection rather than automatic cleanup. find-exact-duplicates-in-google-sheets

Export evidence and decide what to change

Before editing, preserve the original data and review the reported rows in context. A useful evidence sheet includes the original values, selected key, duplicate status, group count where available, source row number, and any stable ID. Copy the relevant report values to a separate sheet if you need a fixed snapshot; formulas otherwise recalculate as data changes.

Download the evidence sheet in a suitable format through File > Download, checking which sheet and file format Google Sheets exports. The embedded checker also supports downloading its report. Confirm that the exported file contains the fields and rows needed for review before sharing it.

To find duplicates and replace values in Google Sheets, treat replacement as a separate step. Verify which value is correct, keep a backup, and use Edit > Find and replace only after checking its search scope and options. A repeated value is not necessarily an error, and replacing all matches can alter legitimate records.

Common mistakes include counting the header as data, excluding later rows from a fixed range, treating every repeated email as a duplicate person, and assuming row numbers remain stable after sorting. Check blanks, spaces, case rules, and composite keys against a few known examples before acting on the full report.

FAQ

Does this page delete shortcut to find 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