How to identify duplicate rows in excel
Tutor 5 (87 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To identify duplicate rows in Excel, you can use multiple approaches depending on your preference and version of Excel. Duplicate rows are rows where all the cell values in selected columns are exactly the same.
Method 1: Using Conditional Formatting
Select the range of rows you want to check for duplicates.
Go to the Home tab.
Click on Conditional Formatting → Highlight Cells Rules → Duplicate Values.
In the dialog box, choose Duplicate and select a formatting color.
Click OK.
Excel will highlight all duplicate values. If you want to highlight entire rows:Select the range of rows.
Click Conditional Formatting → New Rule → Use a formula to determine which cells to format.
Enter the formula, assuming you want to check duplicates based on columns A, B, and C (starting at row 2):
=COUNTIFS($A$2:$A$100,$A2,$B$2:$B$100,$B2,$C$2:$C$100,$C2)>1
Choose a format and click OK.
Method 2: Using Excel’s Remove Duplicates Tool
Select the table or range containing your data.
Go to the Data tab.
Click Remove Duplicates.
In the dialog, check all columns you want to consider for duplicates.
Click OK.
Excel will tell you how many duplicate rows were found and removed. This method identifies duplicates without highlighting; it deletes them unless you copy the data first.
Method 3: Using a Helper Column
Insert a new column next to your data.
Enter the formula to combine all columns, assuming columns A, B, and C (starting at row 2):
=A2&B2&C2
Drag the formula down for all rows.
Use COUNTIF on this helper column to flag duplicates:
=IF(COUNTIF($D$2:$D$100,D2)>1,"Duplicate","Unique")
This will mark each row as "Duplicate" or "Unique".
Notes
On Windows and Mac, the steps for Conditional Formatting and Remove Duplicates are almost identical. The only difference is that Mac uses Cmd instead of Ctrl for shortcuts.
Conditional Formatting only highlights duplicates, while Remove Duplicates permanently deletes them unless you copy the range first.
Using a helper column gives flexibility to combine multiple columns and can be adapted for large datasets.
This approach ensures you can quickly identify, highlight, or handle duplicate rows in Excel efficiently.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
What is the formula to highlight duplicate values
Answers · 1
What is the formula to remove duplicates
Answers · 1
How to delete duplicate values in excel
Answers · 1
How to delete duplicate rows based on one column
Answers · 1