Hello,
I have a table similar to the one below. I created an index/match formula to find the row header for the highest value which works fine. However, in this case the max value repeats multiple times. For this table, I would need to create a second index/match formula that finds the next spot with the max value and return that row header instead. I figure that index/match is still the best formula but how can I tell Excel to look at the row number from the prior index/match results and start with an array after that?
My first formula is as follows: =index(a2:a6,match(e2,d2:d5,0),1)
The second formula needs to translate to: =index(a3:a6,match(e2,d3:d5,0),1)
Thank you,
[TABLE="width: 500"]
<tbody>[TR]
[TD]Letter[/TD]
[TD]Number[/TD]
[TD]Number 2[/TD]
[TD]Total[/TD]
[TD]Max Value[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have a table similar to the one below. I created an index/match formula to find the row header for the highest value which works fine. However, in this case the max value repeats multiple times. For this table, I would need to create a second index/match formula that finds the next spot with the max value and return that row header instead. I figure that index/match is still the best formula but how can I tell Excel to look at the row number from the prior index/match results and start with an array after that?
My first formula is as follows: =index(a2:a6,match(e2,d2:d5,0),1)
The second formula needs to translate to: =index(a3:a6,match(e2,d3:d5,0),1)
Thank you,
[TABLE="width: 500"]
<tbody>[TR]
[TD]Letter[/TD]
[TD]Number[/TD]
[TD]Number 2[/TD]
[TD]Total[/TD]
[TD]Max Value[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]