VLookup problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

I'm trying to fill in a retail price based on the product code provided in a
neighboring column. That product code is being pulled via a lookup function
and works fine. The price on the other hand gives me the dreaded #N/A, even
though I can copy the product code and do an alt-F in the table array to find
the exact match.

I added the text() function within my VLOOKUP, and verified that it's
searching against text. If I change the range_lookup to TRUE, it uses the
code directly above the correct one in the table array and gives me the price
for that one instead.

I'm tearing my hair out because I can't figure out what's wrong with it!
Please help!
 
I would also try the trim function to insure there are no spaces.
A way to check it also is to look at two cells
one what gets entered in the lookup value cell (A1)
and the other one that looks like that value that you would expect to be
selected by the Vlookup (A40)
in a blank cell enter
=A1=A40
if the answer is false there could be several things
try
=len(A1)-Len(A40)
=isnumber(A1)
=isnumber(A40)
because something does not match
 
K said:
Hi All,

I'm trying to fill in a retail price based on the product code provided in a
neighboring column. That product code is being pulled via a lookup function
and works fine. The price on the other hand gives me the dreaded #N/A, even
though I can copy the product code and do an alt-F in the table array to find
the exact match.

I added the text() function within my VLOOKUP, and verified that it's
searching against text. If I change the range_lookup to TRUE, it uses the
code directly above the correct one in the table array and gives me the price
for that one instead.

I'm tearing my hair out because I can't figure out what's wrong with it!
Please help!
Post your formula.

Alan Beban
 
Good call, the data in the lookup value cell is one space shorter than the
data in the array. How do I figure out where that space is and remove it?
 
IT WORKED! I used the trim function and it solved my problem! Thanks so
much - it's been 2 wasted days on this!
 

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 range changes 3
vlookup error 1
vlookup help plz 2
VLOOKUP - Not returning the proper number (Caro) 1
Vlookup Problem 6
VBA userform Vlookup Excel 1
vlookup 2
vlookup formatting problem 1

Back
Top