How to highlight case sensitive duplicates
Tutor 5 (112 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To highlight case-sensitive duplicates in Excel, the built-in conditional formatting is not enough because it treats text like "Apple" and "apple" as the same. You must use a formula that distinguishes the case of letters.
Steps to Highlight Case-Sensitive Duplicates
Select the Range
Highlight the cells where you want to check for duplicates, for example,A1:A20.Open Conditional Formatting
Go to the Home tab.
Click Conditional Formatting → New Rule → Use a formula to determine which cells to format.
Enter the Formula
In the formula box, enter:=SUMPRODUCT(--EXACT(A1,$A$1:$A$20))>1
Explanation:
EXACT(A1,$A$1:$A$20)checks each cell in the range againstA1and is case-sensitive.--converts TRUE/FALSE values into 1/0.SUMPRODUCT(...)>1counts how many times the exact match occurs. Values greater than 1 are duplicates.
Choose Formatting
Click Format and select a color or font style to highlight duplicates.
Press OK to apply.
Apply the Rule
The formatting will now highlight all cells that are duplicates with the same case.
Notes
The formula works for both Windows and Mac Excel versions.
Adjust
$A$1:$A$20to your actual data range.It is case-sensitive:
"Apple"and"apple"are treated as different values.
Example
| A | Highlighted? |
|---|---|
| Apple | No |
| apple | No |
| Banana | No |
| Apple | Yes |
| BANANA | No |
This method ensures exact matches including capitalization are detected.
. 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 is drop down list not showing in excel
Answers · 0
Why is the drop down list not showing all options
Answers · 1
Why can't I delete drop down list excel
Answers · 1
How to create an Excel drop-down list from a lookup table
Answers · 1