Duplicate detection, grouping, and report export
Filter Out Duplicates In Google Sheets
Use a read-only duplicate check for filter out 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.
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 filter out duplicates in Google Sheets without changing source data, use UNIQUE to return distinct rows or FILTER with COUNTIF to inspect repeated values. Choose the columns that define a duplicate first: matching email addresses, for example, do not necessarily mean two complete records are identical.
Choose what counts as a duplicate
A duplicate key is the value or combination of values used to compare records. If column A contains customer IDs and column B contains names, two rows with the same ID may represent one customer even when their names differ. Comparing both columns instead treats those rows as different.
Decide whether you need one row per key, only keys that occur once, or every row belonging to a repeated group. These are different results, and none requires deleting source rows. Keep headers outside formula ranges unless they are intentionally part of the comparison.
Normalize the selected values
Extra spaces and inconsistent capitalization can split values that should be grouped. For text keys in A2:A100, enter this helper formula in an empty column, such as C2:
=ARRAYFORMULA(IF(A2:A100="","",LOWER(TRIM(A2:A100))))
The helper returns lowercase text with leading and trailing spaces removed and repeated ordinary spaces reduced to one. It leaves blank keys blank. Compare this helper range instead of column A when those normalization rules fit your data.
Normalization changes the comparison, not the original values. Check whether capitalization or spacing carries meaning before using it, and inspect unusual whitespace separately: TRIM does not remove every kind of space character. For identifiers with leading zeros, preserve the intended text representation before comparing values.
Group and count matches
To produce a count for each nonblank normalized key, enter this formula in an empty area with two free columns:
=QUERY(C2:C100,"select C, count(C) where C is not null group by C label C 'Key', count(C) 'Count'",0)
Each returned key appears once beside its group count. A count greater than one identifies a repeated value; a count of one identifies a key that occurs once within the selected range. For example, normalized values alpha, alpha, and beta produce counts of two and one respectively.
Counts depend on scope. If the same key occurs below row 100, this report does not include it. Expand the source and helper ranges together when the data set grows, and leave enough empty cells for the formula result to expand.
Inspect the report for duplicate values
To return every source row whose normalized key is repeated, enter the following in a separate empty area:
=IFNA(FILTER(A2:B100,C2:C100<>"",COUNTIF(C2:C100,C2:C100)>1),"No duplicate keys")
The result includes all occurrences of each repeated key, not just the second and later occurrences. C2:C100<>"" excludes blank keys, while COUNTIF counts matches across the same helper range. If no rows match, IFNA displays the message instead of a no-match error.
To preserve sheet row numbers as evidence, return them alongside the records:
=IFNA(FILTER({ROW(A2:A100),A2:B100},C2:C100<>"",COUNTIF(C2:C100,C2:C100)>1),"No duplicate keys")
The first returned column contains the original sheet row number at the time the formula calculates. Sorting, inserting, or deleting source rows can change those numbers, so record them with a snapshot when they are needed for a review.
The embedded duplicate checker can also check pasted data by selected columns and return grouped counts and row indexes without editing the source sheet. Its report provides exportable evidence for review.
Return distinct rows or exclude all repeated keys
Use UNIQUE when the goal is a separate list with repeated complete rows collapsed:
=UNIQUE(A2:B100)
This compares the values across both columns and keeps the first occurrence of each distinct row. It does not choose one row per customer ID if other columns differ, and it does not remove rows from the source. Blank rows can appear in the result; filter the source range first if they must be excluded.
To return only records whose normalized key occurs exactly once, use:
=IFNA(FILTER(A2:B100,C2:C100<>"",COUNTIF(C2:C100,C2:C100)=1),"No unique keys")
This excludes every occurrence of a repeated key. In the alpha, alpha, beta example, it returns only the beta record; UNIQUE on the key column would return both alpha and beta.
Combine duplicate checks with not-equal filters
A Google Sheets filter not equal condition excludes a specified value; it does not detect duplicates by itself. For example, if column B contains status, add B2:B100<>"Closed" to the duplicate filter to show repeated-key rows whose individual status is not Closed:
=IFNA(FILTER(A2:B100,C2:C100<>"",COUNTIF(C2:C100,C2:C100)>1,B2:B100<>"Closed"),"No matching rows")
Here, counts still use all nonblank keys in C2:C100, including rows with status Closed. A key can therefore qualify as repeated even if only one of its rows appears in the filtered output. If counts must reflect only open rows, filter that subset first and count keys within the subset instead.
Export evidence
Review the result before sharing it or making cleanup decisions:
- Confirm the key columns, normalization rules, and row range match the intended scope.
- Compare group counts with returned rows, including any status exclusions.
- Include original row numbers and relevant fields so another reviewer can locate each match.
- Copy the report to a separate sheet and paste values only if you need a fixed snapshot. Download that sheet in a suitable format, such as CSV, using File > Download.
A CSV export contains values from the selected sheet, not live formulas or formatting. A snapshot can contain sensitive data, so include only fields needed for the review and share it with appropriate recipients.
Common mistakes and limits
- Counting the wrong range: A helper range that stops early misses later records. Update all related ranges consistently.
- Treating partial matches as full duplicates: Repeated IDs can have different statuses or other details. Inspect complete records before deciding which one to keep.
- Confusing blanks with duplicates: Exclude blank keys explicitly when empty cells should not form a group.
- Blocking the output: Clear the destination area before entering an expanding formula; occupied cells can prevent results from appearing.
- Mixing data types: A number and a text identifier may not compare as intended. Check source formats and normalization rules on sample rows.
Formulas provide a separate view; they do not resolve conflicting records or authorize deletion. If cleanup is needed, validate the evidence and retain a backup before changing the source.
FAQ
Does this page delete filter out duplicates in google sheets?
No, it returns a read-only duplicate report.
What do I paste and how do I inspect the result?
Paste data for filter out duplicates in google sheets, select the key scope, and review grouped counts, row indexes, and exportable evidence.
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