VLOOKUP Frustration

J

JayceeJay

There are multiple fields (5) within my Excel table that depend upon lookup values. The VLOOKUP field upon which I am searching contains codes, similar to the following format

SU998
M77000
UU70801

In other words, no set string length, no rhyme or reason. I have set up the table and alphabetized the lookupfield. It works just FINE EXCEPT for the record ONE record that contains the entry, 90882 (It is the only code that does not start, nor does it contain, any letters) All cells were preformatted as text only fields. I get N/A errors for all "90882" records. WHAT DO I DO TO FIX this???
 
F

Frank Kabel

Hi
try formatting your lookup range as Text as well as the fields with the
search criteria. Probabla either of one is currently recognized as text
and the other one as number
 
G

George Gee

JayceeJay

Make suure the text is exactly the same in your VLOOKUP table as in your
record!

The following two items are different, the second one has a space after the
number
and will return N/A error with VLOOKUP!

"90882"
"90882 "

HTH

George Gee


*JayceeJay* has posted this message:
 
A

A.W.J. Ales

Jayceejay,

Is it possible that 90882 is a number ?
You can check by entering the function ISNUMBER or ISTEXT in any empty cell
and refer to the cell containing 90882.
If you use ISTEXT and you get FALSE it's a number and vice versa.
Whatever it is : make sure that the value you use as lookup value in the
VLOOKUP function has the same attribute.
Apart from that : If it is text : make sure that there are no spaces before
or after the text itself.

--
Regards,
Auk Ales

* Please reply to this newsgroup only *
* I will not react on unsolicited e-mails *

JayceeJay said:
There are multiple fields (5) within my Excel table that depend upon
lookup values. The VLOOKUP field upon which I am searching contains codes,
similar to the following format:
SU9987
M77000t
UU708012

In other words, no set string length, no rhyme or reason. I have set up
the table and alphabetized the lookupfield. It works just FINE EXCEPT for
the record ONE record that contains the entry, 90882 (It is the only code
that does not start, nor does it contain, any letters) All cells were
preformatted as text only fields. I get N/A errors for all "90882" records.
WHAT DO I DO TO FIX this????
 
W

wiseman

You can force the lookup to look for text or numbers.
If the lookup table has numbers in the fields to lookup use =VLOOKUP(A1*1, .
.. . .
If the lookup table has text in the fields to lookup use
=VLOOKUP(TEXT(A1,"#"), . . . .
so regardless of how A1 is formatted it is converted to be the same as is
being looked up.
Barbara

JayceeJay said:
There are multiple fields (5) within my Excel table that depend upon
lookup values. The VLOOKUP field upon which I am searching contains codes,
similar to the following format:
SU9987
M77000t
UU708012

In other words, no set string length, no rhyme or reason. I have set up
the table and alphabetized the lookupfield. It works just FINE EXCEPT for
the record ONE record that contains the entry, 90882 (It is the only code
that does not start, nor does it contain, any letters) All cells were
preformatted as text only fields. I get N/A errors for all "90882" records.
WHAT DO I DO TO FIX 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

Top