mdbct is making the point that if you compare the length of the cells in Col A to their equivalent in Col B you will find Col B is longer - it has a trailing space.
Native Excel for the most part is not case sensitive (apple = Apple) - there are a few functions where this does not hold true but neither Match nor Countif are case sensitive.
It follows then that the failed duplicate test is down not to case sensitivity but to the fact that "apple" <> "Apple "
If you can't alter the original values (advised) you need to account for the trailing space either by
a) using Wildcard in Countif - open to false positives
b) using Trim in the Match
(I would suggest you use a Trim based approach if the originals are to be left as they are).
Regards your file... it's not really clear which cells you want to Conditionally Format.
If we assume for sake of demo you wish to highlight all instances of a match (ie A & B values simultaneously) then with A6:B11 highlighted (having selected A6 first) apply a Conditional Formula rule of:
using your sample the above would format B6 and A10...
The above takes advantage of the fact that with Conditional Formatting
a) formulae are processed as Arrays by default
b) errors evaluate as False
c) conditional formatting is applied where result is True (and in Excel any number other than 0 is True)
Bookmarks