strud,
You post part of the code and this code compares column B, not A.
It could easily be resolved if you could attach the sample you used with the above code, and your desired result.