Max with index match

Shree1

New Member
Joined
Sep 8, 2014
Messages
31
Hi, I need a bit of help to find the last column header in of the maximum value in row of cells when the max is duplicated.
Max tbtb00tb01tb02tb03
=INDEX($b$1:$e$1,0,MATCH(MAX($b2:$e2),$b2:$e2,0))120130120120
130130
125100100125

The index match function gives me the first column header of the first max value, but I want the column header of the last occurrence of the max value. So, in the above example, I want a formula that will give me tb01 for a2, tb01 for a3 and tb03 for a4.

Any ideas on how to do that. I have an older version of excel and maxifs functions don't work.

Thanks
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
ABCDEFG
1tb00tb01tb02tb03MAX
2120130120120tb01
3130130tb01
4125100100125tb03
Sheet1
Cell Formulas
RangeFormula
G2:G4G2=LOOKUP(2,1/(B2:E2=MAX(B2:E2)),B$1:E$1)
 
Upvote 0
Solution
Hi Shree1,

Does this do what you want?

Shree1.xlsx
ABCDE
1Max tbtb00tb01tb02tb03
2tb01120130120120
3tb01130130
4tb03125100100125
Sheet1
Cell Formulas
RangeFormula
A2:A4A2=INDEX($B$1:$E$1,AGGREGATE(14,6,COLUMN(B2:E2)-COLUMN(A2)/(B2:E2=MAX(B2:E2)),1))
 
Upvote 0

Forum statistics

Threads
1,215,040
Messages
6,122,806
Members
449,095
Latest member
m_smith_solihull

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