drag down formula that finds maximum in a column y and corresponding x in an other column

dimitris

New Member
Joined
Apr 4, 2014
Messages
4
Hello!
I have in the cells I4:I23 the variable y, and in the B4:B23 the variable x. I want to put in the cell L4 the maximum value of the I4:I23 and in the cell M4 the variable x that corresponds to that maximum(so if my maximum value was at cell I6 I want to appear in the cell M4 the value of B6). Then I want to drag the formula down so that in the cell L5 appears the maximum of the I27:I46 and at the cell M5 the variable x that corresponds to that maximum taken from the cells B27:B46. And so on (I want to drag it down for more maximums and corresponding x's)
Thank you
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try this..
L4=LARGE(OFFSET($B$4,23*(ROW(A1)-1),,20),1)
M4=INDEX(OFFSET(I$4,23*(ROW(A1)-1),,20),MATCH(L4,OFFSET(B$4,23*(ROW(A1)-1),,20),0))

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top