# How to obtain MAXIF VALUE and its corresponding adjacent cell?

Status
Not open for further replies.

#### housy33

##### New Member
[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]
 A 27/06/2018 B Deadlift C 1 D 50 E 8 27/06/2018 Deadlift 2 110 5 27/06/2018 Deadlift 3 130 5 27/06/2018 Deadlift 4 130 4 27/06/2018 Deadlift 5 120 5

<tbody>
</tbody>

 28/06/2018 Lat Pulldown 1 50 10 28/06/2018 Lat Pulldown 2 50 10 28/06/2018 Lat Pulldown 3 55 7 28/06/2018 Lat Pulldown 4 50 9

<tbody>
</tbody>

### Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

#### oldbrewer

##### Well-known Member
 27/06/2018 Deadlift 1 50 8 27/06/2018 Deadlift 2 110 5 27/06/2018 Deadlift 3 130 5 27/06/2018 Deadlift 4 130 4 27/06/2018 Deadlift 5 120 5 5 formula =OFFSET(\$D\$1,MATCH(MAX(\$D\$2:\$D\$6),\$D\$2:\$D\$6,0),1)

<colgroup><col><col span="11"></colgroup><tbody>
</tbody>

#### housy33

##### New Member
This formula only returns the number 5, is there any way that this formula can be dragged down ?

Status
Not open for further replies.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,168,029
Messages
5,856,933
Members
431,840
Latest member
simplysoph

### 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.

### Which adblocker are you using?

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

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