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

Duplicate detection, grouping, and report export

Google Sheets Find Duplicates In 2 Columns

Use a read-only duplicate check for google sheets find duplicates in 2 columns 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
Start read-only check
Review grouped matches for google sheets find duplicates in 2 columns 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

What "duplicates in 2 columns" actually means

The query covers two different checks, and the correct formula depends on which one you need:

This browser-based checker runs read-only on pasted TSV or CSV data, returning grouped counts, row indexes, and an exportable report without touching your source file.
  • Combined scope — column A and column B are treated as one pool of values. Every value that occurs more than once anywhere in the pair gets reported, no matter which column it came from.
  • Paired scope — a row gets flagged when column A and column B hold the same value, so the two columns are compared row by row.

Both checks are read-only. Helper formulas live in extra columns or in a separate sheet, and the source data set is never modified.

Step 1: set the scope and build a key column

Add one helper column next to your data range and join the two columns into a single key:

=TRIM(A2)&"|"&TRIM(B2)

Fill it down to the last row of the data range. The pipe separator prevents false collisions such as "AB" plus "C" matching "A" plus "BC". Once the key column exists, every later step works on column C alone and the comparison scope stays visible.

Step 2: normalize the selected values

Raw values rarely match. Google Sheets ignores trailing spaces and letter case inside COUNTIF, but other characters still break a match, so normalize before comparing:

=LOWER(TRIM(CLEAN(A2)))
  • TRIM removes leading and trailing spaces plus repeated internal blanks.
  • CLEAN strips non-printing characters left over from CSV or PDF imports.
  • LOWER folds case; drop it when "Acme" and "acme" are genuinely different records.

Numbers pasted as text are a separate problem: "007" and 7 are different values to Sheets. Force one consistent type with TEXT(A2,"0"), and remember that a mixed-type column produces partial matches in any duplicate checker.

Step 3: group and count matches

Count how often each key appears, then flag the repeats: find-duplicates-between-2-columns-in-google-sheets

=COUNTIF($C$2:$C$500,C2)
=IF(COUNTIF($C$2:$C$500,C2)>1,"Duplicate","Unique")

To find values from column A that also exist in column B, keep the ranges separate:

=IF(COUNTIF($B$2:$B$500,A2)>0,"Match","No match")

For the paired scope, count the row combination directly:

=COUNTIFS($A$2:$A$500,A2,$B$2:$B$500,B2)

A QUERY statement returns the group counts in one shot, with a column label and a descending order:

=QUERY($C$2:$C$500,"select C, count(C) group by C order by count(C) desc",1)

Inspect the report for google sheets find duplicates in 2 columns

Read the grouped output before acting on it. A usable report answers four questions: how-to-find-duplicates-in-a-column-in-google-sheets

  • Which values repeat, and how many times? That is the group count from the QUERY result.
  • Where do they sit? Row indexes point to the source row without guesswork.
  • Is the match real, or a formatting artifact? Decide whether the repeat is a person, a product SKU, or a stray space.
  • Are blanks inflating the result? Empty rows can dominate the counts when they stay inside the range.

Pull the row indexes of repeated keys with FILTER:

=FILTER(ROW($C$2:$C$500),COUNTIF($C$2:$C$500,$C$2:$C$500)>1)

Google sheets find duplicates in column

When a single column is all you need, skip the key column and count inside that range:

=COUNTIF($A$2:$A$500,A2)

To list the duplicated values without repeats, use UNIQUE over a filtered list: find-duplicates-in-one-column-google-sheets

=UNIQUE(FILTER($A$2:$A$500,COUNTIF($A$2:$A$500,$A$2:$A$500)>1))

This is the fastest route when the goal is something like "which emails appear twice" and the second column is irrelevant to the decision.

Export evidence

Keep the evidence separate from the cleanup so the next step stays reversible:

  1. Copy the helper columns and the COUNTIF results into a new sheet.
  2. Leave the source rows untouched until the group counts are reviewed.
  3. Export the reviewed set as a spreadsheet file, or as comma-separated values when you only need to hand a list to someone else.
  4. Store the export beside the source with the date and the column range you checked, so the review can be repeated later.

A read-only duplicate checker that runs in the browser produces a similar artifact: paste the sheet as TSV or CSV, choose the columns, and you get grouped counts, row indexes, and an exportable report without touching the original file. Treat that output as evidence for a manual decision, not as an automatic cleanup.

Common mistakes

  • Comparing unnormalized text and trusting a partial match. Normalize with TRIM, CLEAN, and LOWER before counting.
  • Forgetting absolute references. $C$2:$C$500 must stay fixed when you drag the formula down.
  • Leaving blank rows inside the range. They inflate counts and hide real duplicates.
  • Testing existence with a VLOOKUP exact-match flag. A missing target yields #N/A and breaks the logic; COUNTIF returns a plain number, and XLOOKUP can be wrapped in IFNA.
  • Assuming case or whitespace sensitivity. COUNTIF and COUNTIFS ignore case and trailing spaces.
  • Deleting before exporting. Confirm group counts and row indexes first, then clean up.

Limitations and constraints

  • COUNTIF and COUNTIFS are case-insensitive and space-tolerant. When a data set needs case-sensitive or whitespace-exact matching, a helper column with a checksum of the exact characters is the reliable route.
  • Sheets functions compare types strictly. Numbers stored as text never match numeric duplicates.
  • Large data sets slow down QUERY, FILTER, and cross-sheet lookups; narrow the range or split the work into batches.
  • FILTER, UNIQUE, XLOOKUP, and LET need a current Google Sheets release. Older Workspace accounts can return #NAME? and need the COUNTIF-based formula instead.
  • The 10 million cell limit per spreadsheet still applies to helper columns, so keep helper ranges proportional to the data.

FAQ

Does this page delete google sheets find duplicates in 2 columns?

No, it returns a read-only duplicate report.

Run read-only duplicate check to inspect duplicate detection, grouping, and report export

Run read-only duplicate check to inspect duplicate detection, grouping, and report export

Run read-only duplicate check

Run read-only duplicate check