Duplicate detection, grouping, and report export
Duplicate A Row In Google Sheets
Use a read-only duplicate check for duplicate a row 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 duplicate a row in Google Sheets, select its row number, copy it, and paste it into an empty row. To check whether rows are already duplicated, compare the columns that define a match and review every matching row before changing the source data.
Compare your sheet data with the read-only duplicate checker to find matching rows before editing.Duplicate a row without overwriting data
- Click the row number to select the entire row, then copy it with Ctrl+C on Windows or Command+C on Mac.
- Insert a blank row where you want the copy: right-click a row number and choose an option to insert a row above or below.
- Select the new row number and paste with Ctrl+V or Command+V.
- Check formulas in the pasted row. Relative references normally adjust to the new position; references using
$remain fixed in the specified direction.
For example, copying a formula that refers to A2 down one row normally changes that reference to A3. If the copy must contain the displayed results rather than formulas, use Edit > Paste special > Values only. Values-only paste does not reproduce the original formulas or formatting.
Pasting into an occupied row can overwrite existing data. Insert a blank row first, or choose an empty destination and confirm that it has enough space for the copied cells. If you only need part of a row, select and copy that cell range instead of the row number.
Define what counts as a duplicate
A duplicate row can mean an exact match across every selected column or a repeated key, such as an order ID. Two rows with the same customer name but different order dates may be valid separate records. Choose the columns that represent the record before counting matches.
For the examples below, assume headers in row 1 and data in A2:C100: column A contains an order ID, B a customer, and C an amount. Change the ranges to fit your data set. Use bounded ranges consistently so each formula compares the same rows.
Normalize the selected values
Extra spaces or inconsistent capitalization can make text look different even when it represents the same value. Keep the original data values and create helper columns for the comparison. For a text key in A2, enter this in an empty column and fill it down:
=LOWER(TRIM(A2))
TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER makes capitalization consistent. It does not resolve every difference, such as spelling errors or all nonbreaking spaces. Normalize only when those differences should not distinguish records.
Numbers stored as text, date formatting, and hidden characters can also affect comparisons. Inspect suspicious values before converting them: an identifier such as 00123 may need its leading zeros preserved. Compare the helper values, not the original column, when using a normalized key.
Group and count matches
To count records with the same three selected values, enter this in an empty column on row 2 and fill it down:
=IF(COUNTA(A2:C2)=0,"",COUNTIFS($A$2:$A$100,A2,$B$2:$B$100,B2,$C$2:$C$100,C2))
A result greater than 1 marks every member of a matching group, including its first occurrence. COUNTA leaves a completely empty row unmarked. The formula treats a partly blank row as a record, so decide whether missing fields should participate in the match.
For example, if rows 2 and 8 both contain order ID 104, customer Lee, and amount 25, each receives a count of 2. If their amounts differ, the three-column comparison does not mark them as duplicates. To match by order ID alone, use a single criterion:
=IF(A2="","",COUNTIF($A$2:$A$100,A2))
This version skips blank IDs and counts repeated IDs regardless of other columns. COUNTIF and COUNTIFS do not distinguish uppercase from lowercase text, so they are not suitable for a case-sensitive exact match. For criteria containing wildcard characters such as * or ?, escape those characters if they must be treated literally.
Inspect the report for duplicate rows
Paste the table you are normalizing into the duplicate checker to verify grouped counts against your formulas.Filter the count column for values greater than 1 to see matching records. Compare the original fields within each group, especially dates, amounts, and identifiers excluded from the key. A repeated key is evidence to investigate, not proof that one row should be removed.
To distinguish the first occurrence from later matches, use a running count in another empty column:
=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"Later match","First occurrence"))
Fill the formula down. The expanding range counts appearances up to the current row, so sorting the data changes which occurrence is labelled first. This example uses column A as the key; it does not test the full row.
For visual review, select A2:C100, open Format > Conditional formatting, and choose Custom formula is. Enter the following formula to highlight rows whose ID occurs more than once:
=AND($A2<>"",COUNTIF($A$2:$A$100,$A2)>1)
The fixed column reference makes each cell in a selected row test that row's ID. The row number in the formula must match the first row of the applied range. This highlights all occurrences; it does not delete or merge anything.
The embedded duplicate checker can also check pasted data by selected columns and return grouped counts and row indexes. Its report is read-only, so resolving a match remains a separate decision.
Compare rows across sheets
To check whether an ID in the current sheet appears in another tab, place this formula beside the current row and fill down:
=IF(A2="","",IF(COUNTIF('Sheet2'!$A$2:$A$100,A2)>0,"Match","No match"))
Replace Sheet2 and the ranges with your actual tab and row range. This checks only the ID, not whether the rest of the row agrees. If the other sheet has repeated IDs, a match does not identify which record corresponds; inspect the associated fields before combining records.
For a three-column comparison, use COUNTIFS against the other sheet's A, B, and C ranges with the current row's values as criteria. Keep all three ranges the same size, and apply equivalent normalization on both sheets if the comparison requires it.
Export evidence
Before cleanup, preserve enough context to reproduce the finding: the sheet name, original row number, selected key values, group count, and any fields needed to distinguish records. Add row numbers to a helper column before sorting or copying the report:
=ROW()
Fill it down alongside the source records, then copy and paste those numbers as values if the report will be sorted independently. Row numbers describe positions at the time captured; later insertions, deletions, or sorts can change the source positions.
Copy the filtered results to a separate sheet and use File > Download to export an appropriate format. Check the downloaded file before sharing: CSV contains one sheet's values, while a spreadsheet format can retain more workbook structure. Avoid including unrelated sensitive columns in the exported evidence.
Common mistakes and limits
- Comparing too few columns: A shared name or ID may describe multiple legitimate records. Confirm the business key before treating a match as redundant.
- Including headers or mismatched ranges: Start criteria ranges below the headers and keep their sizes aligned. Extend fixed ranges when new records fall outside them.
- Confusing unique rows with duplicate groups: A count of 2 means two matching records, not two extra copies. A unique row has a count of 1 under the selected criteria.
- Trusting appearance alone: Formatting can make different underlying values look alike, or make equivalent values look different. Inspect the cell contents and normalization rules.
- Changing data during review: Filtering and highlighting support inspection; they do not resolve conflicts. Keep a copy before deleting or combining rows, and decide which values to retain.
FAQ
Does this page delete duplicate a row 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