How to display grand total at top in pivot table?
As we all know, the grand total row is at the bottom of the pivot table in default, but sometimes, in order to view the grand total quickly and easily, you need to put the grand total row at the top of the pivot table. In Excel, there is no direct way for you to change the position of the grand total, but here, I will talk about an interesting trick for solving this problem.
Recommended Productivity Tools for Excel
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 71% of your time and solve 82% Excel problems for you. 300+ advanced tools designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
To show the grand total row at the top of the pivot table, you need to add a new field to the pivot table and let it act as the grand total, and then display it at the top. Please do with the following operations step by step:
Step1: Create a fake Grand Total field
1. In your source data range, please add a new column among them, and name the column heading as “GT”, and then enter “Grand Total” into this new column, see screenshot:
2. Then refresh your pivot table by right clicking the pivot table and choose Refresh, and the new field has been inserted into the Choose fields to add to report list box, and then drag the new field GT into the Row Labels box, and put it at the top of other row labels, see screenshot:
Tip: Refreshing the pivot table to add the new column, you can also click the pivot table and click Options tab or Analyze tab > Change Data Source > Change Data Source, and to select the new range including the new column you add in step1, now the GT column is added into PivotTable Field List.
3. After dragging the new field to the Row Labels, you will get the Grand Total row at the top of the pivot table.
Step2: Show the amount of the grand total
4. In the step 3, we can only display the Grand Total, but don’t have the amount data. So we need to change the settings to show the amount at the top. Please click any one cell in your pivot table, and then click Design > Subtotals > Show all Subtotals at Top Group, see screenshot:
5. And the amount of the grand total has been displayed as following screenshot shown:
Step 3: Hide the original Grand Total row
After adding the grand total at the top of the pivot table, next, you need to hide the default grand total at the bottom.
6. Click any one cell of the pivot table, and then click Design > Grand Totals > On for Rows Only, see screenshot:
7. And the grand total row at the bottom is hidden at once.
Recommended Productivity Tools
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 4 months agoMuito bom! Dica bastante útil! Valeu!
To post as a guest, your comment is unpublished.· 9 months agoThanks! Very useful!
To post as a guest, your comment is unpublished.· 1 years agoThanks so much.very useful.
To post as a guest, your comment is unpublished.· 1 years agoReally nice idea and the way steps described are easy to learn and clear.
To post as a guest, your comment is unpublished.· 2 years agoAny ideas on how to do this with data from an OLAP query? I can't manipulate the database on the back-end, so adding a column is not an option.