What is the formula to highlight duplicate values
Tutor 5 (87 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To highlight duplicate values in Excel, you can use Conditional Formatting with a formula.
Select the range of cells you want to check for duplicates.
Go to Home → Conditional Formatting → New Rule.
Choose Use a formula to determine which cells to format.
Enter the following formula:
=COUNTIF($A$1:$A$100, A1) > 1
$A$1:$A$100is the range to check for duplicates. Adjust it to your dataset.A1is the first cell in your selected range.
Click Format and choose a highlight color.
Click OK to apply.
Explanation
COUNTIF(range, criteria)counts how many times a value appears in a range.The formula checks if the count is greater than 1. If yes, it highlights the duplicate.
Notes
On Mac, the steps are identical; only the interface may slightly differ visually.
This method highlights all instances of duplicates, not just the second or later occurrence.
Do you want me to show a formula that highlights only the second and subsequent duplicates?
. 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