How to mark duplicates in excel
Tutor 5 (37 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
Marking duplicates in Excel helps identify repeated values in a dataset for easier analysis. Excel provides built-in tools to highlight or flag duplicate entries efficiently.
Method 1: Using Conditional Formatting
-
Select the range of cells you want to check for duplicates.
-
Go to the Home tab on the Ribbon.
-
Click Conditional Formatting → Highlight Cells Rules → Duplicate Values.
-
In the dialog box, select the formatting style for duplicates (e.g., red fill, yellow text).
-
Click OK.
Duplicates in the selected range are now highlighted with the chosen format.
Notes:
-
Unique values can be highlighted by selecting “Unique” in the dialog box instead of “Duplicate.”
-
Conditional formatting updates automatically when new duplicates are added.
Method 2: Using the COUNTIF Function
-
Insert a new column next to your dataset.
-
In the first cell of the new column (e.g., B2), enter the formula:
=IF(COUNTIF($A$2:$A$100, A2)>1, "Duplicate", "Unique")
-
Drag the formula down the column to apply it to all rows.
This formula checks each value in column A against the entire range A2:A100. If the value occurs more than once, it is marked as "Duplicate"; otherwise, it is "Unique."
Method 3: Using Excel’s Remove Duplicates Tool for Marking Before Deletion
-
Select the dataset.
-
Go to the Data tab → Remove Duplicates.
-
Instead of deleting immediately, use the tool to identify duplicates and copy them to a new sheet.
This method does not mark duplicates in place but helps isolate repeated entries for review.
Tips for Accurate Results
-
Ensure the selected range includes all relevant columns if duplicates depend on multiple fields.
-
Trim leading or trailing spaces with the TRIM function to avoid false duplicates.
-
Check for case sensitivity: Conditional formatting and COUNTIF are not case-sensitive by default.
Example Use Case
Suppose a dataset contains 200 email addresses. Conditional formatting highlights all repeated emails in red. Using the COUNTIF method in a new column, each repeated email is labeled as “Duplicate,” making it easy to filter and review.
This approach ensures accurate identification of duplicates while preserving the original dataset.
. 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
Why are margins not working
Answers · 1
Why is page layout not working
Answers · 1
How to print repeated rows on top in excel
Answers · 1
How to print header on each page
Answers · 1