A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

vlookup does not always work



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2003, 09:06 PM
Pablo
external usenet poster
 
Posts: n/a
Default vlookup does not always work

Most of the time I am able successfully implement the
vlookup function. However, there are so few times when
everything looks good, I know there is a matching
reference, but my result is #N/A when I set the Range
lookup to FALSE. I have checked the field formats and
they both seem to match.

Any thoughts as to what is happening?

Thanks,
Pablo
  #2  
Old September 15th, 2003, 09:45 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default vlookup does not always work

Just because they seem to match does not mean they match,
there can be [not visible] things like spaces html characters etc..

--

Regards,

Peo Sjoblom

"Pablo" wrote in message
...
Most of the time I am able successfully implement the
vlookup function. However, there are so few times when
everything looks good, I know there is a matching
reference, but my result is #N/A when I set the Range
lookup to FALSE. I have checked the field formats and
they both seem to match.

Any thoughts as to what is happening?

Thanks,
Pablo



  #3  
Old September 15th, 2003, 10:37 PM
Richard Hoekstra
external usenet poster
 
Posts: n/a
Default vlookup does not always work

I can't say I've got your answer but I've had problems
with the same. Usually due to formatting, and usually
because the formatting change I made did not take. I have
found I sometimes have to make the format change follwoed
by an f2 (edit) to edit the cell in question. only after
the edit does the formatting change stick. This is common
when dealing with a imported text file and the Text vs
General format selected during the import wizard needs to
be corrected.

Hope this helps
Rich
-----Original Message-----
Most of the time I am able successfully implement the
vlookup function. However, there are so few times when
everything looks good, I know there is a matching
reference, but my result is #N/A when I set the Range
lookup to FALSE. I have checked the field formats and
they both seem to match.

Any thoughts as to what is happening?

Thanks,
Pablo
.

  #4  
Old September 16th, 2003, 12:22 AM
Harlan Grove
external usenet poster
 
Posts: n/a
Default vlookup does not always work

"Pablo" wrote...
Most of the time I am able successfully implement the
vlookup function. However, there are so few times when
everything looks good, I know there is a matching
reference, but my result is #N/A when I set the Range
lookup to FALSE. I have checked the field formats and
they both seem to match.

Any thoughts as to what is happening?


If your lookup value were, say, 3.33 and one of values in the first column of
the loolup table were calculated as =10/3 formatted to 2 decimal places, it'd
appear you had a match when in fact you wouldn't. If you set VLOOKUP's 4th
argument to 0 or False, you need *EXACT* matches. Approximately equal isn't
sufficient. If you believe your lookup value (say, X99) matched a value in the
first column of the lookup table (say, A7), then in a blank cell enter the
formula =X99=A7. If the result is True but your VLOOKUP returns #N/A, then
there's a problem. However, if the result is False, you don't have an *EXACT*
match, so you'd need to figure out an acceptable alternative. More often than
not it'd require explicitly rounding the values in the first column of the
lookup table to a common number of decimal places and rounding the lookup value
to the same number of decimal places *OR* sorting the lookup table in ascending
order in its first column and omitting VLOOKUP's 4th argument.

--
Never attach files.
Snip unnecessary quoted text.
Never multipost (though crossposting is usually OK).
Don't change subject lines because it corrupts Google newsgroup archives.
  #5  
Old September 16th, 2003, 06:45 AM
Nishant
external usenet poster
 
Posts: n/a
Default vlookup does not always work

hi,
it is not clear what exactly ur problem is,
but vlookup function will definetly work if u use trim
function in case of text,becoz vlookup will not recognize
the same text if there is different spacing b/w the same
text.
i think this will help u

regards
nishant


-----Original Message-----
Most of the time I am able successfully implement the
vlookup function. However, there are so few times when
everything looks good, I know there is a matching
reference, but my result is #N/A when I set the Range
lookup to FALSE. I have checked the field formats and
they both seem to match.

Any thoughts as to what is happening?

Thanks,
Pablo
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.