Using MAX to reference a row

G

Guest

I am trying to retrieve data associated with my maximum in one column. How
can I use the MAX function on column A to return the value in column B in the
same row?

For example, if "=MAX(A1:A1000)" returns 25.67 from cell A315, how do can I
get a value from B315 returned? The row in which the maximum is found from
column A is variable and this needs to be repeated many times, so a function
is highly desireable.
Thanks!!
 
N

Niek Otten

=INDEX(B1:B5,MATCH(MAX(A1:A5),A1:A5,0))

Adjust B1:B5 and A1:A5 to your situation
 

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

Top