3
$\begingroup$

My data looks like this:

enter image description here

Why is this error showing up?

$\endgroup$

1 Answer 1

1
$\begingroup$

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

AK  

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

=VLOOKUP(CONCATENATE("*",TRIM(A2),"*"), $E$2:$F$5, 2,FALSE)

$\endgroup$
1
  • $\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.