3
$\begingroup$

My data looks like this:

enter image description here

Why is this error showing up?

$\endgroup$
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)

| improve this answer | |
$\endgroup$
  • $\begingroup$ I've looked for spaces after each of the state names. There aren't any. $\endgroup$ – Minu Dec 6 '14 at 0:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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