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.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
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.
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 1 years agoMuito bom! Dica bastante útil! Valeu!
- To post as a guest, your comment is unpublished.· 1 years agoThanks! Very useful!
- To post as a guest, your comment is unpublished.· 2 years agoThanks so much.very useful.
- To post as a guest, your comment is unpublished.· 2 years agoReally nice idea and the way steps described are easy to learn and clear.
- To post as a guest, your comment is unpublished.· 3 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.
- To post as a guest, your comment is unpublished.· 3 years agoExcellent idea. It is simple and works reliably. Thank You.