vlookup returns N/A

G

gibson

Hello,

I have a list of the NFL teams in col A. In col B I have a
2 or 3 letter abbrieviation for that team.

I use a simple lookup formula to return that abbrev.

=VLOOKUP(D1,A1:A32,2)

I get the #NA error code in some cells no matter what
configuration I have in col A.

If I have col A sorted ascending and include the TRUE
argument in the formula, I still get NA.

If I have col A not sorted(random) and use the FALSE
argument in the formula, I still get NA.

I would think one or the other should work but neither
does.

I also tried an INDEX MATCH formula but I can't get that
to work at all.

Any suggestions?

Thanks!
 
G

gibson

Thanks for the reply Don.

I found the apparent problem! The list of teams was
copied/pasted from a web site. There must have been some
unseen characters that copied over. I deleted the list and
manually re-entered it and now things are working just
fine.
 
G

Gord Dibben

gibson

As written, your formula has only one column in the lookup range.

=VLOOKUP(D1,A1:A32,2)

Change to =VLOOKUP(D1,A1:B32,2)

Gord Dibben Excel MVP
 
G

gibson

Yeah, thanks for the reply. That was my fault. Just a typo
in the post!
-----Original Message-----
gibson

As written, your formula has only one column in the lookup range.

=VLOOKUP(D1,A1:A32,2)

Change to =VLOOKUP(D1,A1:B32,2)

Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top