Is there any way to fix this and make it work properly? If I remove false
and change it for true or leave it blank, it produces results that can not be
trusted
Thank
Jorge E Jaramillo
Connect the two cells with a simple formula, eg =A3=E7 and see if you get a
TRUE or FALSE. I'll bet on FALSE.
Usual culprits are numbers stored as text, or vice versa - look identical,
but they are not.
If it works sometimes but not others then it sounds like you need to do some
data cleansing.
Regards
Ken..............................
"Jorge E. Jaramillo" <JorgeEJ...@discussions.microsoft.com> wrote in
message news:5A6F26DF-5E38-4425...@microsoft.com...
Debra Dalgleish has lots of notes on troubleshooting =vlookup():
http://contextures.com/xlFunctions02.html#Trouble
--
Dave Peterson
The information to be searched is a 9 figure number that identifies
customers. I changed the format to Number on all the columns containing the
information but I still get the #N/A's.
In one of the cplumns there are many of those green triangles that indicate
that the format is not correct. Could this be the culprit? Any ideas on how
to fix it?
Thanks that with the help from this group's people, I am going in the right
direction
Jorge E Jaramillo
Try these variations (with the table array locked with $ signs)
[The 3 variations are ways to make the lookup values consistent
with what's in the lookup col A2:A2808]
=VLOOKUP(E2+0,$A$2:$C$2808,3,FALSE)
the: +0 will coerce any lookup values which are text nums to real nums, w/o
impacting its numerical value
(assuming all real nums in the lookup col A2:A2808)
=VLOOKUP(E2&"",$A$2:$C$2808,3,FALSE)
the: &"" bit will make the lookup values to text nums
(assuming all text nums in the lookup col A2:A2808)
=VLOOKUP(TEXT(E2,"0000"),$A$2:$C$2808,3,FALSE)
the TEXT function will pad leading zeros (if necess.) to the lookup values,
enabling consistency in matching with the text nums in the lookup col
A2:A2808. Adjust the "0000" part to suit
voila? celebrate success, click the YES button below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
I did as you suggested but it brought #N/A's as results. Then I applied the
+ 0 trick to the column where the values should be checked in and IT
WORKED!!!!!!!!!
Thanks a million
Jorge Jaramillo
I use the method of converting to number by putting a number 1 into a spare
cell, copying that cell, then using 'paste special' - 'multiply' across the
data to convert it all to number. Which is useful some of the time.
However, as some product codes have leading zeros, these answers from Max
have given me new ways to deal with these problems.
The remaining question is, why doesn't Excel change the format of cells when
we change the format using 'Format cell' ? Odd, and frustrating!
Thanks Max.