ranking in Pivot Tables

lenik

New Member
Joined
Jan 9, 2009
Messages
7
I have sales figures that I need to rank, and they are represented in a pivot table. I can put the formula "=RANK(B6,B$6:B$54)" outside of the pivot table and it will work correctly.

How can I represent the sales ranks without having to retype the formula to the side of the pivot table each time the pivot table is refreshed or updated?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Why not to install your ranking formula in the DataBase as an extra field (Rank) and put this field in the Pivot Table
 
Upvote 0
You need to use the getpivotdata function. Something like this:

=RANK(GETPIVOTDATA("Sales",$A$3,"Product","widget1"),B$6:B$54)
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,988
Members
448,538
Latest member
alex78

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