DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
The Finance Base
The Money Desk · Blog
Re:

How to Add or Remove Subtotals in an Excel PivotTable

Learn the exact Excel steps to hide all PivotTable subtotals, put them above or below groups, remove one field's subtotal, change its calculation, and distinguish subtotals from grand totals.
From TheFinanceBase Team5 min to read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In Excel, click anywhere in the PivotTable, open Design, choose Subtotals, and select Do Not Show Subtotals, Show all Subtotals at Bottom of Group, or Show all Subtotals at Top of Group. These settings change the report layout; they do not delete source records.

The instructions below apply to Excel for Microsoft 365 (Windows and Mac), Excel 2024, 2021, 2019, and 2016, as documented by Microsoft.

What a PivotTable subtotal means

A subtotal summarizes one subgroup inside a PivotTable. For example, with Region and then Salesperson in the Rows area and Sales in Values, Excel can show a sales subtotal for each region. A grand total is different: it summarizes the entire report, usually in a final row or column.

Neither setting changes the underlying source data. Hiding a subtotal only removes its displayed summary line; the detail rows, grouping fields, and source records remain available.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not confuse either PivotTable feature with Excel’s worksheet Data → Outline → Subtotal command. That command inserts SUBTOTAL formulas and outline controls into an ordinary list or range, rather than changing a PivotTable.

Add or remove all PivotTable subtotals

  1. Click any cell inside the PivotTable.
  2. Open the Design tab under PivotTable Tools.
  3. In Layout, select Subtotals.
  4. Choose the required option:
Choice Result
Do Not Show Subtotals Hides the subtotal lines for the PivotTable’s row and column fields.
Show all Subtotals at Bottom of Group Lists each group’s detail first, then its subtotal.
Show all Subtotals at Top of Group Places each group’s subtotal before its detail rows.

Top placement often suits an executive-style summary because the result appears first. Bottom placement is common for schedules where readers review transactions and then their total. The better choice depends on how the report is read.

Remove a subtotal from only one field

The Design command is global. To keep subtotals for some fields but remove one field’s subtotal:

  1. Click a label belonging to the target row or column field—for example, a region name. Do not select a numerical value cell.
  2. Choose PivotTable Analyze → Active Field → Field Settings (the button may appear simply as Field Settings).
  3. Under Subtotals & Filters, select None.
  4. Click OK.

The field’s subtotal disappears while other fields can continue to use their own settings. To restore the normal behavior, return to Field Settings and choose Automatic.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose a different subtotal calculation

In the same Field Settings dialog, Excel may offer Automatic, None, and Custom under Subtotals. Automatic uses the field’s normal function—usually Sum for numeric data and Count for nonnumeric data.

When Custom is available, you can select one or more of these functions:

  • Sum
  • Count
  • Average
  • Max
  • Min
  • Product
  • Count Numbers
  • StDev and StDevp
  • Var and Varp

Use Sum for a monetary total, Count for the number of records, Average for a typical value, and Max or Min for extremes. Statistical functions can be useful for analysis but may make an operational report harder to read. Selecting several functions can also add columns or rows and make nested PivotTables crowded.

Custom functions are not available in every PivotTable. Calculated items can prevent the summary function from being changed, and PivotTables based on some OLAP or other external analytical sources expose fewer choices.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Remove the grand total instead

If the unwanted line is the final Grand Total, changing Subtotals is the wrong control.

  1. Click inside the PivotTable.
  2. Open Design → Grand Totals.
  3. Choose the option for turning grand totals off, or the option that applies only to rows or only to columns.

For separate row and column control, use PivotTable Analyze → Options → Totals & Filters, then clear Show grand totals for rows and/or Show grand totals for columns. Subtotal visibility and grand-total visibility are independent.

Why layout changes what you see

Subtotals are most useful when fields are nested in the Rows or Columns areas. In a Region → Salesperson example, Region is the outer group and Salesperson is the inner group. Depending on your needs, you can show region subtotals, suppress salesperson subtotals through Field Settings, or put the region summary above its details.

Excel’s Compact, Outline, and Tabular report layouts arrange labels differently. The top and bottom choices are especially visible for outer row labels in Compact or Outline form, while Tabular form gives each row field its own column. If a setting appears to have little effect, check which fields are actually in Rows or Columns and change the report layout under Design → Report Layout.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When the subtotal control is missing or disabled

You selected a value cell

Field-level settings require a row or column label. Select an item such as a department or region name, then open Field Settings. A number in the Values area does not identify the field whose subtotal you want to change.

There is no grouped row or column field

A PivotTable containing only Values has no visible subgroup to subtotal. Add a field to Rows or Columns if you need group summaries.

The field contains a calculated item

Excel can still let you hide or show a subtotal, but it may not let you change the summary function when a calculated item is present.

The source is OLAP or another external connection

External analytical sources can limit custom subtotal functions and some filtered-total behavior. The available Field Settings options may therefore differ from those of a PivotTable built from a worksheet range.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You are not working in a PivotTable

If the object is a normal range, use Data → Outline → Subtotal after sorting the list by the field you want to group. That feature creates worksheet formulas and outline levels; it does not provide PivotTable’s Design tab.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Refreshes and source-data changes

Subtotals are layout settings, not manually typed rows. Refresh the PivotTable after changing its source data. For a PivotTable based on an Excel Table, new and updated table records are included when the PivotTable is refreshed. A refresh can change the items shown and the report’s size; behavior of every display preference can vary with the Excel build and connection type, so check the resulting layout.

Filtered totals are another issue. Options that determine whether filtered items contribute to totals—particularly with OLAP sources—do not control whether subtotal rows are visible.

Excel worksheet Subtotal versus PivotTable subtotal

Feature Use it when How it works
PivotTable subtotal You need a summary that follows PivotTable fields, filters, grouping, and refreshes. Controlled through Design → Subtotals or each field’s Field Settings.
Worksheet Subtotal You have a sorted ordinary list and need formulas in a fixed worksheet layout. Data → Outline → Subtotal inserts SUBTOTAL formulas and outline controls. It is unavailable while editing an Excel Table unless the table is converted to a normal range.

Google Sheets and LibreOffice Calc

Google Sheets

Google Sheets does not use Excel’s Design tab. Open the Pivot table editor and manage fields under Rows, Columns, Values, and Filters. Google’s current basic instructions do not document an Excel-equivalent global command for placing all subtotals at the top or bottom. See the Google Pivot table guide.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

LibreOffice Calc

In Calc, right-click the pivot-table results, open Properties, and use the partial-sum settings. Calc’s layout options can place partial sums at the top or bottom, but its terminology and dialogs differ from Excel. See the LibreOffice Pivot Tables guide.

Further help from Microsoft

For screenshots and edition-specific notes, see Microsoft’s subtotal and total fields in a PivotTable, PivotTable overview, and guide to worksheet subtotals.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More post from the Money Desk

  1. The Money DeskBlogTheFinanceBase07 MAR 2625 minWhat Is a 457 Plan?
  2. The Money DeskBlogTheFinanceBase07 MAR 2621 minTime Value of Money: What It Is and How It Works
  3. The Money DeskBlogTheFinanceBase07 MAR 2627 minAre You Living in One of These Top 10 Most Expensive Cities to Retire?
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.