How to obtain MAXIF VALUE and its corresponding adjacent cell?

Status
Not open for further replies.

housy33

New Member
Joined
Jul 9, 2018
Messages
4
[h=1]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![/h]
[TABLE="class: cms_table, width: 604"]
<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="class: cms_table, width: 604"]
<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]
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
[TABLE="width: 800"]
<colgroup><col><col span="11"></colgroup><tbody>[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]27/06/2018[/TD]
[TD]Deadlift[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]50[/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]27/06/2018[/TD]
[TD]Deadlift[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]110[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]27/06/2018[/TD]
[TD]Deadlift[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]130[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]27/06/2018[/TD]
[TD]Deadlift[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]130[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]27/06/2018[/TD]
[TD]Deadlift[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]120[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]formula[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 6"]=OFFSET($D$1,MATCH(MAX($D$2:$D$6),$D$2:$D$6,0),1)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
This formula only returns the number 5, is there any way that this formula can be dragged down ?
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,820
Messages
6,181,160
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