5/7/2020
1. Add a Rank Column in a Pivot Table for Different Versions
2. Using RANK.EQ and RANK.AVG in Source Data
3. Add a Separate Rank Column in a Pivot Table
1. Add a Rank Column in a Pivot Table for Different Versions
In Excel 2010 and Above
This is the easiest method to add ranking to a pivot table if you are using Excel 2010 or earlier version.
Important: While using this method, ranks will change when you filter pivot table.
In Excel 2007 and Below
Alert: Make sure that you have sorted your pivot table in ascending or descending order.
2. Using RANK.EQ and RANK.AVG in Source Data
The benefit of using RANK.EQ and RANK.AVG is that you don’t have to add anything to your pivot table.
Just follow these simple steps.
=IF(COUNTIF(C$2:C2,C2)>1,””,SUMIFS($E$2:$E$1507,$C$2:$C$1507,C2))
Here's how the formula works:
This formula will add a single total for each category in the column. And, you can use that total to calculate the rank for each category.
Now, add two more columns at the end of your data and add below formulas in them.
=IF(H2=””,0,RANK.EQ(H2,$H$2:$H$1507,1))
=IF(H=””,0,RANK.AVG(H2,$H$2:$H$1507,1))
Here's how the formula works:
Here, RANK.EQ & RANK.AVG will calculate the ranking for the category in your data dump. We have used both of these functions to get different ranking type.
Important: While using this method, ranking will not change when you filter the items.
3. Add a Separate Rank Column in a Pivot Table
Instead of using formulas or any other method you can also add a manual separate column for ranking. When you want to add ranks for an instance, you can use this method.
Just follow these simple steps.
Sample File
Download this sample file from here to learn more.
5/17/2022
4/26/2022