Duplicate detection, grouping, and report export
Find Duplicate Numbers In Google Sheets
Use a read-only duplicate check for find duplicate numbers 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.
Report reading guide
Read duplicate results in three passes
- Scope: confirm selected key columns.
- Groups: review repeated values and counts.
- Rows: compare source row numbers before acting.
To find duplicate numbers in Google Sheets, use COUNTIF to count each number in a selected range, then filter or highlight counts greater than one. This identifies repeated values without deleting or changing the source data.
Find duplicates in one column
Suppose column A contains numbers in rows 2–1000, with a header in row 1. Enter this formula in B2 and fill it down to B1000:
=IF(A2="","",IF(COUNTIF($A$2:$A$1000,A2)>1,"Duplicate","Unique"))
The formula labels every occurrence of a repeated number as Duplicate, including the first. A number that occurs once receives Unique; an empty cell stays blank. The absolute reference $A$2:$A$1000 keeps the search range fixed as the formula is copied, while A2 changes to the current row.
For example, if A2:A5 contains 12, 7, 12, and 0, the labels are Duplicate, Unique, Duplicate, and Unique. Zero is a value, not a blank, so repeated zeros are counted.
To see the number of occurrences instead of a label, use this formula in B2 and fill it down:
=IF(A2="","",COUNTIF($A$2:$A$1000,A2))
Turn on Data > Create a filter for the table and filter column B to counts greater than 1. Keep the complete table in the filter range so related fields remain aligned. Change the range endpoint if your data extends beyond row 1000.
Mark only later occurrences
Use a running count when the first occurrence should remain unmarked. Enter this formula in B2 and fill it down:
=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Repeated later","First occurrence"))
The range starts at row 2 and expands to the current row. The result depends on row order: sorting the sheet can change which occurrence is considered first. A later occurrence is not necessarily an error; check the record before deciding what to do with it.
Highlight repeated numbers
Conditional formatting makes duplicates visible while leaving cell values unchanged. To highlight every occurrence in A2:A1000:
- Select A2:A1000, excluding the header.
- Open Format > Conditional formatting.
- Under Format cells if, choose Custom formula is.
- Enter the formula below, choose a format, and select Done.
=AND(A2<>"",COUNTIF($A$2:$A$1000,A2)>1)
The A2 reference matches the top-left cell of the applied range and adjusts for each row. The fixed range provides the same comparison scope for every cell. If the applied range starts elsewhere, change both references to match it.
To highlight entire records instead, apply the rule to a range such as A2:D1000 and use $A2 as the value being checked. The dollar sign fixes column A while allowing the row number to change:
=AND($A2<>"",COUNTIF($A$2:$A$1000,$A2)>1)
Prepare values for a reliable comparison
Normalize the selected values
Decide whether numbers represent quantities or identifiers before checking duplicates. A numeric 123 and an identifier displayed as 00123 may look different even when a number format displays leading zeros. If leading zeros distinguish identifiers, store and compare them as text rather than converting them to numbers.
Mixed numeric and text entries, spaces, and formatting can make a visual comparison misleading. Inspect suspicious cells and agree on a consistent representation before counting. Converting an identifier to a number can permanently discard meaningful leading zeros; work on a copy when testing conversions.
For numeric quantities pasted as text, a helper column can convert valid entries. For example, place this in B2 and fill it down:
=IF(A2="","",IFERROR(VALUE(TRIM(A2)),"Check value"))
TRIM removes ordinary leading and trailing spaces, and VALUE converts recognizable numeric text using the spreadsheet locale. The Check value result flags entries that need inspection rather than treating them as valid numbers. Check unusual spaces, separators, and invalid entries manually; do not count the repeated error label as a duplicate number.
Group and count matches
For a compact report of numeric values in A2:A1000, enter this formula in an empty area with room for results:
=QUERY(A2:A1000,"select A, count(A) where A is not null group by A having count(A) > 1 label A 'Number', count(A) 'Count'",0)
Each result row shows one repeated number and its group count. This summary does not list source row numbers. Ensure the input is consistently numeric first: mixed data types in a QUERY column can be interpreted as null for the minority type and omitted from the result.
For a particular number, retrieve its source rows with FILTER. Put the number to investigate in D2, then enter:
=IF(D2="","",IFNA(FILTER(ROW(A2:A1000),A2:A1000=D2),"No match"))
The result spills the matching sheet row numbers into separate cells. Leave space below the formula, and use the same row boundaries in ROW and the comparison range. If D2 is blank, the formula returns a blank rather than listing empty rows.
Compare numbers across sheets
To find values on one sheet that also appear on another, add a helper column on the first sheet. If its numbers are in A2:A1000 and the second sheet is named Sheet2, enter this in B2 and fill down:
=IF(A2="","",IF(COUNTIF('Sheet2'!$A$2:$A$1000,A2)>0,"Match on Sheet2","No match"))
This checks whether each first-sheet value appears at least once on the second sheet. It does not report how many times the value occurs on either sheet or identify duplicates confined to one sheet. Replace the sheet name and ranges with your actual scope; keep quotes around names that contain spaces.
Normalize both sheets consistently before comparing them. A match on a number alone may join unrelated records if the number is not a unique key. Compare additional fields when the business definition of a duplicate requires them.
Inspect the report for duplicate numbers
Review each group in context before treating it as a problem. A repeated amount may represent separate transactions, while a repeated transaction ID may need investigation. Group counts show frequency, not whether any record is invalid.
Check the following before sharing a report:
- Scope: Confirm that the range includes all intended rows and excludes headers.
- Key: Confirm whether the number alone defines a match or whether other columns matter.
- Representation: Inspect leading zeros, numeric text, and values shown rounded by formatting. Two values that display alike may differ in their underlying precision.
- Location: Compare reported row numbers with the current sheet; sorting or inserting rows can change those positions.
- Completeness: Check formula errors and values outside the selected range rather than assuming they were counted.
The embedded duplicate checker can check pasted data using selected columns and return grouped counts and row-level evidence without changing the source sheet. Its result is a report for review, not proof that a record should be removed.
Export evidence
Keep the number, group count, source sheet, and row location together when documenting a finding. Add relevant record fields or a stable record ID if available, so a reviewer can identify the record even after rows move.
For a Sheets-based report, copy the summary and supporting rows to a separate sheet, then use File > Download and choose a suitable format. A CSV download contains the current sheet, so select the report sheet first; check the exported file before sharing it. The embedded checker also supports downloading its check result. Neither a formula report nor a read-only check deletes duplicates.
FAQ
Does this page delete find duplicate numbers 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