Find 2nd and 3rd highest numbers in a row and return column header

centaur87

New Member
Joined
May 9, 2016
Messages
13
ETF-AETF-BETF-CETF-D
10271111

<tbody style="box-sizing: inherit; border: 0px; margin: 0px; padding: 0px; vertical-align: top; -webkit-font-smoothing: antialiased; text-size-adjust: none;">
</tbody>
[FONT=&quot]I cannot seem to write the formula that would return the column header of the second largest value.

In above Case, first Largest value is 27, it will return ETF-B
But 2nd largest has duplicate values, hence what formula shall i write to return [/FONT]
[FONT=&quot]the column header of the second largest value.

Best Regards.
[/FONT]
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
In this case (if 2nd value appeared twice) do you want to display both headers? Like ETF-C, ETF-D?
 
Upvote 0
yes for 2nd largest it should return the first which appears like in this case ETF-C and 3rd Largest it should return the second one as ETF-D
 
Upvote 0
Output required sample :

1st Large2nd Large3rd Large4th Large
ETF-BETF-CETF-D ETF-A


OR
1st Large2nd Large3rd Large4th Large
ETF-BETF-DETF-C ETF-A



<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
It is your case but to be honest in my opinion if should be:
1st ETF-B
2nd ETF-C, ETF-D
3rd ETF-A

as ETF-C and D has the same value.
 
Upvote 0
maybe something like this:

ETF-AETF-BETF-CETF-DMaxCustom
30​
6​
30​
30​
30​
ETF-A, ETF-C, ETF-D
6​
ETF-B
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,414
Members
448,895
Latest member
omarahmed1

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