Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VLOOKUP return using =MAX 2

Status
Not open for further replies.

Chris559

Instructor
Dec 29, 2002
30
0
0
GB

I want the VLOOKUP to return the name in Column A of the highest value in column B. I thought that my lookup at the bottom would work - but doesn't. Any suggestions?

A&B £450.00
Tesco £322.00
Scouts £160.00
Teashop £25.00
Take Away £60.00
Flower shop £75.00


VLOOKUP((=max(C7:C12),B7:C12,1,true)



 
hi,
[tt]
=INDEX(B7:B12,MATCH(MAX(C7:C12),C7:C12,0),1)
[/tt]


Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
=LOOKUP(MAX(C7:C12),C7:C12,B7:B12)


Avoid Hangovers. Stay drunk.
 
thanks skip - works a treat

thanks to xlhelp, but yours returns Flower shop which is the lowest not the highest (A&B)
 
LOOKUP, it seems, works as expected when the amount column is sorted ascending.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top