Bring back column labels for the top 3 values within a pivot table

Dobin1s

New Member
Joined
May 18, 2016
Messages
8
I have a pivot table containing 80 column labels and 4000 rows of data values. what i need is a formula to find the top 3 values but to return the column labels and not the values themselves.

I've used the following to return the highest values corresponding column label but i'm not sure if there is someway i can write a formula similar to this but where i can have it going across three cells and each time i amend it to bring back either the column label for the top, 2nd or 3rd highest value.

=INDEX($B$4:$BO$4,0,MATCH(MAX(B5:BO5),B5:BO5,0))

Thanks :)
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,216,736
Messages
6,132,426
Members
449,727
Latest member
Aby2024

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