Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2008

Tip: Looking for answers? Try searching our database.

VLOOKUP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sulasno - 18 Feb 2008 15:40 GMT
Using Excel 2002;

using a formula; =VLOOKUP($K$2,Sheet1!$A:$G,2) on cell K3

irrespective of what value I input into K2, I get a result in cell K3
regardless of whether K2 is valid or not

is this a bug or am I missing something?
Gav123 - 18 Feb 2008 15:55 GMT
Hi,

Try this
=VLOOKUP($K$2,Sheet1!$A:$G,2,0)

The addition of (,0) on the end of your formula will only return a result if
there is an exact match in your lookup table.

Hope this helps,

Gav.

> Using Excel 2002;
>
[quoted text clipped - 4 lines]
>
> is this a bug or am I missing something?
Sulasno - 19 Feb 2008 01:45 GMT
thanks
re read the help and realise my function lacks the 4th argument

Any difference is using "0" or "False"

tia

> Hi,
>
[quoted text clipped - 17 lines]
>>
>> is this a bug or am I missing something?
Gav123 - 19 Feb 2008 12:30 GMT
No, they are the same thing. "0" is just quicker to type..

Regards,

Gav.

> thanks
> re read the help and realise my function lacks the 4th argument
[quoted text clipped - 24 lines]
> >>
> >> is this a bug or am I missing something?
RagDyeR - 18 Feb 2008 15:56 GMT
You're missing the 4th argument to the function, which directs it to look
for an *exact* match.

=VLOOKUP($K$2,Sheet1!$A:$G,2,0)

Without that last argument, you'll need to have your lookup list sorted (not
necessary when looking for exact matches), ascending, and Vlookup would then
return the *closest* match that's not larger then the lookup value.

Without the 4th argument, *and not* having the list sorted, you can get all
sorts of inaccurate returns.

Signature

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

Using Excel 2002;

using a formula; =VLOOKUP($K$2,Sheet1!$A:$G,2) on cell K3

irrespective of what value I input into K2, I get a result in cell K3
regardless of whether K2 is valid or not

is this a bug or am I missing something?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.