VLOOKUP works for some cells but not all Help!

T

Tacrier

On a quarterly basis I import information from another program into excel so
that I can format the information into a specific format.

When the info. is first imported it is all in column A so I use text to
columns to move the info. over into it's own columns.

After that there is one column of info. that I am missing, "Vendor Name", so
I use the VLOOKUP to plug in the name from another spreadsheet that has the
Vendor Name info.

The VLOOKUP has worked before but for some reason this time, it returns a
#NA result for most of the column even though there is a match. I have tried
changing the format to text, then general then text again. It doesn't work.

Any suggestions as to how I can get the VLOOKUP to work?
 
B

Bob Umlas, Excel MVP

Most likely the value you're looking up has many trailing spaces -- if you
highlight the reference in the VLOOKUP formula & press the F9 key, you'll
probably see siomething like "IBM " instead of "IBM" because of the
text-to-columns.
So instead of =VLOOKUP(B3,....), use
=VLOOKUP(TRIM(B3),.....)

HTH
Bob Umlas
 
T

Tacrier

Awesome! That worked!

Thank you. :)

Bob Umlas said:
Most likely the value you're looking up has many trailing spaces -- if you
highlight the reference in the VLOOKUP formula & press the F9 key, you'll
probably see siomething like "IBM " instead of "IBM" because of the
text-to-columns.
So instead of =VLOOKUP(B3,....), use
=VLOOKUP(TRIM(B3),.....)

HTH
Bob Umlas
 

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

Similar Threads

VLookup Formula 5
Excel Vlookup Help 0
Some rules about Vlookup 2
Some rules about Vlookup REPOSTED 6
VLOOKUP #REF error 3
vlookup with numbers 10
vlookup almost works but not quite 5
VLOOKUP error #NAME 2

Top