Excel excel vlookup function

Joined
Jul 18, 2006
Messages
5
Reaction score
0
column B column E column H
2 29000

4 39172 29000 1255 35
5 39447 27500 975 114
6 40585 31250 985 56
7 40977 33125 1005 45

=VLookup(E$4,E$4:H$7,2)

My formula returns the 1st value regardless of whether E5,6,&7 are larger or not.

Returns 1st number(29000) whether function contains True or False as the last formula entry.
 
Last edited:
Joined
Feb 3, 2006
Messages
147
Reaction score
1
I am no expert on Excel but the formula you have given
VLookup(E$4,E$4:H$7,2)
I believe looks for the first occurrence of the value in E$4 in the table E$4:H$7 and then returns the value in the second column of that table. If that is what it means that inevitably it is going to choose the first row as E$4 is the first row value in the first column of the table.

What exactly are you trying to pick out?
 
Joined
Jul 18, 2006
Messages
5
Reaction score
0
VLookup solution

Thanks for the response SlimJim,

I AM TRYING TO REURN THE VALUE IN COLUMN 2 THAT CORRESPONDS TO THE LARGEST NUMBER VALUE OF THE "LOOKUP_VALUE" IN COLUMN 1.
Sorry about the caps I didn't realize I had hit caps lock.
 
Joined
Feb 3, 2006
Messages
147
Reaction score
1
Try

VLOOKUP(MAX(E$4:E$7),E$4:H$7,2,FALSE)

I've tried this on a simple data table and it seems to do the job
 
Joined
Jul 18, 2006
Messages
5
Reaction score
0
VLookup

Thanks SlimJimI last used your formula on a QPRO worksheet years ago and could not remember the MAX aspect!

I really appreciate your responses.
 

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

Similar Threads


Top