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

Duplicate detection, grouping, and report export

How to Find Duplicate Numbers in Google Sheets

Use a read-only duplicate check 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
Run read-only duplicate check
Review grouped matches 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 find duplicate numbers in Google Sheets, use COUNTIF to count each value in a selected range, then filter or highlight counts greater than one. This method identifies every occurrence without deleting data. For a summary, group the numbers with QUERY and review their counts before deciding what to do with them.

See how to find duplicate numbers in Google Sheets with a read-only check that keeps your source data untouched.

Choose the range and define a duplicate

Start with the column that contains the numbers you want to check. For example, use A2:A1000 when row 1 is a header. Adjust the last row to include your data set; values outside the range will not be counted.

A duplicate can mean a repeated number anywhere in one column or a repeated number within a particular group. An invoice amount repeated for different customers may be expected, while the same invoice number repeated for one customer may need investigation. Choose the key before counting.

Keep a copy of the spreadsheet if you plan to edit or remove records after reviewing the report. Detection formulas and conditional formatting do not themselves delete source values.

Normalize the selected values

Check whether apparently identical entries are numbers or text. Imported values can contain spaces, and identifiers such as 00123 may need to retain leading zeros. Converting an identifier to a number can erase that distinction, so normalize only when numeric equality is the intended rule.

For ordinary numeric values in column A, place this formula in an empty helper column at B2 and fill it down:

=IF(A2="","",IFERROR(VALUE(TRIM(A2)),""))

TRIM removes surrounding spaces, VALUE attempts to convert the result to a number, and IFERROR returns a blank when conversion fails. Review those blank results against the source: they can represent invalid entries rather than empty cells. VALUE interprets number formats according to the spreadsheet locale, so check imported decimal and thousands separators before relying on the result.

Formatting also affects what you see. Two values displayed as 12.3 may differ in their underlying decimal places. If the business rule treats values rounded to two decimal places as equal, use a separate helper column with ROUND after confirming that the normalized cell is numeric: duplicate-items-guide

=IF(ISNUMBER(B2),ROUND(B2,2),"")

Count the rounded helper values only when that approximation is intentional. Keep the original values available for review; rounding can group distinct measurements or amounts.

Group and count matches

To count each normalized number, enter this formula in C2 and fill it through C1000:

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

A result of 1 means the number appears once in the selected range. A result of 2 or more marks every occurrence, including the first. For values 42, 17, 42, the counts are 2, 1, 2.

To produce one row per repeated number instead, place this formula in a clear area of the sheet:

=QUERY(B2:B1000,"select B, count(B) where B is not null group by B having count(B) > 1 label B 'Number', count(B) 'Count'",0)

The summary shows each duplicate value and its total count, not the individual source rows. It uses the numeric helper column, so nonnumeric entries that were not converted are excluded. Ensure the output area has room for the results.

Highlight duplicate numbers in the source sheet

Conditional formatting makes repeated values visible beside their original records. Use the helper column if you normalized the data; otherwise, apply the same pattern directly to the source column.

  1. Select B2:B1000, excluding the header row.
  2. Choose Format > Conditional formatting.
  3. Under Format rules, select Custom formula is.
  4. Enter the formula below, choose a format, and select Done.
Compare your findings against grouped counts and row-level evidence before making changes.
=AND(B2<>"",COUNTIF($B$2:$B$1000,B2)>1)

The absolute range keeps the count scope fixed, while B2 changes for each formatted row. The blank check prevents empty cells from being highlighted. If you select a range starting on a different row, change the relative reference to match its first cell. duplicate-words-guide

To highlight only later occurrences and leave the first unmarked, use this rule instead:

=AND(B2<>"",COUNTIF($B$2:B2,B2)>1)

The expanding range counts from the first data row to the current row. Sorting the data can change which occurrence is considered first; it does not change the total number of matches.

Inspect the report

A group count tells you how often a value occurs, but row-level evidence shows which records need attention. In an empty helper column, use the following formula at D2 and fill it down to label each occurrence:

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

Add =ROW() in another helper column and fill it down if you need the current sheet row number in an exported report. Filter the status column to Duplicate, then inspect neighboring fields such as dates or account names. Record row numbers before changing the sort order or inserting rows, because physical row positions can change.

For a duplicate key involving both a number in B and a category in E, use COUNTIFS rather than counting the number alone:

=IF(OR(B2="",E2=""),"",COUNTIFS($B$2:$B$1000,B2,$E$2:$E$1000,E2))

This counts only rows where both fields match. Its blank check excludes rows missing either key component; change that rule only if incomplete records should form groups. Keep both count ranges the same height and aligned to the same source rows.

The embedded duplicate checker can inspect pasted data using selected columns and provide a read-only report with grouped counts and row-level evidence. Its check does not remove duplicates from the source sheet. duplicate-number-guide

Compare numbers across sheets

To check whether a number in the current sheet also appears on a second tab named Sheet2, enter this formula beside the first value and fill down:

=IF(A2="","",IF(COUNTIF(Sheet2!$A$2:$A$1000,A2)>0,"Match on Sheet2","No match"))

This tests for presence on the other sheet; it does not count duplicates within the current sheet or identify every matching row on Sheet2. Use equivalent normalization on both tabs if one contains numbers stored as text. Enclose a tab name containing spaces in single quotes, as in 'Sheet 2'!$A$2:$A$1000.

For duplicate text, the same COUNTIF approach can count repeated cell contents. Normalize text deliberately rather than applying numeric conversion: spaces, capitalization and identifiers may carry meaning. A partial or approximate match is a different rule from counting equal values and needs separate review.

Export evidence without changing source records

Create a review sheet with the relevant number, status, count, row index and any context needed to distinguish records. Copy the filtered results and use Edit > Paste special > Values only in the review sheet to preserve a snapshot rather than formulas tied to the source ranges. Check that the copied rows and headers match the intended scope.

Use File > Download and select a suitable format for the evidence. Verify which sheet or sheets the chosen format includes before sharing. The embedded checker also supports downloading its result; review its scope and contents before using that evidence for cleanup.

Download the duplicate report to review repeated values with the rest of your team.

Avoid deleting rows solely because a number repeats. Confirm whether the repetition is an error, whether other columns distinguish legitimate records, and which record should be retained. Re-run the check after any approved edits to confirm the remaining counts.

FAQ

Does this page delete repeated numbers in the sheet?

No. It returns a read-only duplicate report.

How do I get started?

Paste data, 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

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

Run read-only duplicate check

Run read-only duplicate check