Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default VLOOKUP to return first hit

Assume I have a table as follows:

1 A
2 B
3 C
3 Ca
3 Cb
4 D

Currently, if I use =VLOOKUP(3,TABLE,2,FALSE) I'll get "Cb" as a return.
Anyway I can force VLOOKUP to return the first hit, i.e. "C"?

--
Thanks!
Max
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default VLOOKUP to return first hit

When I use your formula:
=VLOOKUP(3,TABLE,2,FALSE)
it works as you intend and returns "C".

The only way to make VLOOKUP search from the bottom, as you describe, is to
use this version:
=VLOOKUP(3,TABLE,2,-1)

What version of Excel are you using? Perhaps the rules are different in your
version.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Max" wrote:

Assume I have a table as follows:

1 A
2 B
3 C
3 Ca
3 Cb
4 D

Currently, if I use =VLOOKUP(3,TABLE,2,FALSE) I'll get "Cb" as a return.
Anyway I can force VLOOKUP to return the first hit, i.e. "C"?

--
Thanks!
Max

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default VLOOKUP to return first hit

You're right - I went back - apparently, I'm not using the "FALSE" tag. If I
take that out, then I hit the last entry.

To answer your question, though, I'm running Excel 2000...
--
Thanks!
Max


"Ron Coderre" wrote:

When I use your formula:
=VLOOKUP(3,TABLE,2,FALSE)
it works as you intend and returns "C".

The only way to make VLOOKUP search from the bottom, as you describe, is to
use this version:
=VLOOKUP(3,TABLE,2,-1)

What version of Excel are you using? Perhaps the rules are different in your
version.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Max" wrote:

Assume I have a table as follows:

1 A
2 B
3 C
3 Ca
3 Cb
4 D

Currently, if I use =VLOOKUP(3,TABLE,2,FALSE) I'll get "Cb" as a return.
Anyway I can force VLOOKUP to return the first hit, i.e. "C"?

--
Thanks!
Max

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup function return all values j2thea Excel Worksheet Functions 20 November 2nd 05 10:32 PM
Excel 2000 VLOOKUP returns #N/A unless press F2 return on source? Colin Excel Worksheet Functions 3 August 31st 05 01:10 PM
Using a Vlookup to return values in a data list? rtjeter Excel Worksheet Functions 2 April 26th 05 05:56 AM
Want VLookup to Return the row above JoOwl0 Excel Worksheet Functions 8 April 23rd 05 07:16 PM
Vlookup of an if statement return James Excel Worksheet Functions 2 April 6th 05 10:28 PM


All times are GMT +1. The time now is 05:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"