How to obtain MAXIF VALUE and it's corresponding cell?

housy33

New Member
Joined
Jul 9, 2018
Messages
4
[TABLE="width: 604"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]A
27/06/2018[/TD]
[TD]B
Deadlift[/TD]
[TD]C
1[/TD]
[TD]D
50[/TD]
[TD="align: right"]E
8[/TD]
[/TR]
[TR]
[TD]27/06/2018[/TD]
[TD]Deadlift[/TD]
[TD]2[/TD]
[TD]110[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]27/06/2018[/TD]
[TD]Deadlift[/TD]
[TD]3[/TD]
[TD]130[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]27/06/2018[/TD]
[TD]Deadlift[/TD]
[TD]4[/TD]
[TD]130[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]27/06/2018[/TD]
[TD]Deadlift[/TD]
[TD]5[/TD]
[TD]120[/TD]
[TD="align: right"]5[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 604"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]28/06/2018[/TD]
[TD]Lat Pulldown[/TD]
[TD]1[/TD]
[TD]50[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]28/06/2018[/TD]
[TD]Lat Pulldown[/TD]
[TD]2[/TD]
[TD]50[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]28/06/2018[/TD]
[TD]Lat Pulldown[/TD]
[TD]3[/TD]
[TD]55[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]28/06/2018[/TD]
[TD]Lat Pulldown[/TD]
[TD]4[/TD]
[TD]50[/TD]
[TD="align: right"]9[/TD]
[/TR]
</tbody>[/TABLE]

Hi guys,

I am struggling to come up with a formula that will be able to obtain the MAX VALUE of Column D and the its corresponding cell to the right. e.g. for my deadlift, i want to use 130kg and return the number 5 (reps) in a cell, or for lat pulldown I want 55kg and 7. Any help would be much appreciated.

Thanks!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
=MAX(IF(D2:D10=H1,E2:E10))
Array formula, use Ctrl-Shift-Enter

where H1 is your kg amount you want to find
 
Upvote 0
Try

=index(b2:b10,MATCH(MAX(IF(D2:D10=H1,E2:E10)),e2:E10,0),1)
=index(a2:a10,MATCH(MAX(IF(D2:D10=H1,E2:E10)),e2:E10,0),1)

both array formulas, enter as specified before

NOTE: This will work only if the MAXIF VALUE is unique for that lift and date, ie if E4 was 5 instead of 4 like E3 youd only get one value returned
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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