Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

 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.

Display grand total at top in pivot table


arrow blue right bubble Display grand total at top in pivot table


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:

doc-show-grand-total-at-top-1

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:

doc-show-grand-total-at-top-1

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.

doc-show-grand-total-at-top-1

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:

doc-show-grand-total-at-top-1

5. And the amount of the grand total has been displayed as following screenshot shown:

doc-show-grand-total-at-top-1

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:

doc-show-grand-total-at-top-1

7. And the grand total row at the bottom is hidden at once.


Related articles:

How to create clickable hyperlinks in pivot table?

How to repeat row labels for group in pivot table?

How to filter top 10 items in pivot table?


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Rogério Germano · 4 months ago
    Muito bom! Dica bastante útil! Valeu!
  • To post as a guest, your comment is unpublished.
    Chrystèle · 9 months ago
    Thanks! Very useful!
  • To post as a guest, your comment is unpublished.
    Jenny · 1 years ago
    Thanks so much.very useful.
  • To post as a guest, your comment is unpublished.
    rohit · 1 years ago
    Really nice idea and the way steps described are easy to learn and clear.

    Thanks you
  • To post as a guest, your comment is unpublished.
    Dave · 2 years ago
    Any 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.

    Thanks.