excel - VLOOKUP return column A text where column B has the largest number -


i have following data in excel spreadsheet (just example , not homework):

item name     qty    price apple           3    $3.00 banana          5    $2.80 orange          7    $1.20

i know item have of. have tried following formula doesn't appear working:

=vlookup(max(b:b),a:c,1, false)

my question is: a) using vlookup correctly , b) right function this?

i think vlookup not suitable because item left of qty. please try instead:

=index(a:a,match(max(b:b),b:b,0))

your formula (with minor adaptation) suitable price associated maximum qty (because price right of qty):

=vlookup(max(b:b),b:c,2,false) 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -