My data looks like this:

enter image description here

Why is this error showing up?


1 Answer 1


This is a common result of imprecise matching, such as with whitespace problems.

For example, if you imagine that the grey shading used in codeblocks on StackExchange represents the whitespaces in your Excel cells, then AK is technically the same as


You can trim and/or use wildcard chars to allow matching to skip spaces. For example:


  • $\begingroup$ I've looked for spaces after each of the state names. There aren't any. $\endgroup$
    – Minu
    Commented Dec 6, 2014 at 0:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.