Duplicate detection, grouping, and report export
Duplicate Columns In Google Sheets
Use a read-only duplicate check for duplicate columns 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 columns in Google Sheets, first decide whether you need repeated values within one column, values shared by two columns, or entire columns with matching contents. Use a helper formula to identify matches without changing the source data, then review the results before taking any action.
This tool runs a read-only duplicate check on your pasted TSV or CSV data and returns grouped counts plus row-level evidence for every matched column.Set the comparison scope
A duplicate can mean different things in the same spreadsheet. Choose the test that matches your task:
- Repeated values in one column: Find entries that occur more than once in a selected range.
- Values shared by two columns: Find entries in one list that also appear anywhere in another list, regardless of row position.
- Matching whole columns: Compare corresponding cells to see whether two column ranges contain the same values in the same order.
- Repeated column names: Compare header cells separately from the data below them. Matching names do not prove that the columns contain identical data.
Exclude headers from value checks unless they are part of the data set. Decide whether blank cells, capitalization, extra spaces, and differences in row order should count before interpreting results.
Normalize the selected values
Extra spaces or inconsistent capitalization can hide duplicates. For a text list in A2:A100, put this formula in an empty helper column and fill it down:
=IF(A2="","",LOWER(TRIM(A2)))
TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER standardizes case. The formula leaves the source unchanged. Normalize the second list in another helper column using the same approach if you plan to compare lists.
Normalization changes the meaning of a match. For example, North West and north west become the same helper value, but identifiers whose capitalization matters should not be converted with LOWER. Nonbreaking spaces and other hidden characters may need separate cleanup. Review the original values before treating normalized matches as errors.
Group and count matches
To flag repeated nonblank values in A2:A100, enter this formula in B2 and fill it through B100:
=IF(A2="","",IF(COUNTIF($A$2:$A$100,A2)>1,"Duplicate","Unique"))
COUNTIF counts matches in the fixed column range. Every occurrence of a repeated value receives Duplicate, including its first occurrence. To check normalized values instead, point both the fixed range and the current-row reference at the normalization helper column.
For a grouped report, place this formula in a clear area of the sheet:
=QUERY(A2:A100,"select A, count(A) where A is not null group by A having count(A) > 1 label count(A) 'Count'",0)
The result lists each repeated value and its group count. Check that the range contains a consistent data type: QUERY can treat minority data types in a mixed-type column as null. A grouped count does not show row positions, so keep the row-level flag alongside the source when investigating individual records.
Find duplicates in two columns
To check whether each value in column A appears anywhere in column B, enter this in C2 and fill down:
=IF(A2="","",IF(COUNTIF($B$2:$B$100,A2)>0,"Match","Not found"))
For example, if A2 contains East and B8 contains East, the result for A2 is Match. The formula checks membership, not whether values occur on the same row or occur the same number of times. Reverse the ranges in a second helper column to find values in B that are missing from A.
COUNTIF is case-insensitive and interprets wildcard characters in criteria. If entries can contain literal *, ?, or ~, use an exact comparison instead:
=IF(A2="","",IF(SUMPRODUCT(--($B$2:$B$100=A2))>0,"Match","Not found"))
This comparison also ignores case. For case-sensitive text matching, use EXACT across the comparison range:
=IF(A2="","",IF(SUMPRODUCT(--EXACT(A2,$B$2:$B$100))>0,"Match","Not found"))
Use bounded ranges sized to the data set, especially with SUMPRODUCT. For normalized comparisons, use the helper ranges rather than the original columns and remember that the result reflects the normalization rules.
Check whether entire columns match
Two columns can share every distinct value but still differ in order or frequency. To test corresponding cells in A2:A100 and B2:B100, use:
=IF(SUMPRODUCT(--(A2:A100<>B2:B100))=0,"Same by row","Different")
This returns Same by row only when no corresponding pair differs under the comparison. It is case-insensitive and limited to rows 2–100; differences outside that range are not checked. Use equally sized ranges and include all relevant rows. Two entirely blank ranges also return Same by row, so check that the ranges contain data.
To find the positions that differ, put this formula in C2 and fill down:
=IF(A2=B2,"Same","Different")
Filter the helper column for Different and inspect those row numbers. If case matters, use =IF(EXACT(A2,B2),"Same","Different") instead. For columns on different sheets, use sheet-qualified references such as 'Sheet 2'!B2:B100; both ranges must represent the same rows and scope.
Inspect the report for duplicate columns in Google Sheets
Review group counts against the original records rather than assuming every match is an unwanted duplicate. Repeated product names may be valid when IDs differ, and a repeated header may describe columns with different contents. A formula that checks one key cannot establish that entire records are identical.
The embedded duplicate checker can run a read-only check on pasted data using selected columns. Its result provides grouped counts and row-level evidence for inspection; it does not delete source columns.
Watch for these common mistakes:
- Checking the wrong range: Extend formulas when new rows are added, and verify that sheet references point to the intended data.
- Counting blanks: Exclude empty values when blanks are not meaningful duplicates. The flag formulas above leave blank keys unmarked.
- Confusing display with stored value: Dates, numbers, and text can look alike while being stored differently. Inspect the underlying values and formatting before deciding they match.
- Comparing the wrong keys: Use a stable identifier or a suitable combination of fields when names alone are not unique.
- Treating a group as a deletion list: Confirm which record, if any, should be retained before making changes in the source sheet.
Export evidence
Keep the source sheet and helper columns together while reviewing results. Filter for duplicate flags or copy the grouped output to a separate sheet, then include the relevant original values and row numbers in the evidence. Row numbers can change after sorting or inserting rows, so retain an ID where available.
The checker also supports exporting duplicate evidence. Check the exported report against the selected scope before sharing it or using it to plan a separate cleanup; a read-only report does not perform that cleanup.
FAQ
Does this page delete duplicate columns 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