To show subtotals in a Google Sheets pivot table, click any cell in the pivot, then in the side panel under Rows or Columns, check the box next to “Show totals” (the default is on). If you don’t see subtotals, your data has only one row field, or you’ve unchecked that option—re-enable it to bring back the gray “Total” rows for each group.
What Subtotals Actually Do in a Pivot Table
A pivot table groups your raw data by a field (like “Region” or “Product”) and then aggregates a value (like “Sales”) using a function such as SUM, COUNT, or AVERAGE. The subtotal is the aggregate for each group, while the grand total is the aggregate for all groups combined. In Google Sheets, subtotals appear automatically as a row labeled “Total” (or “Grand Total” for the overall sum) below each group when you have at least one row field and one value field.
For example, if you have sales data with columns: Region (A), Product (B), and Amount (C), and you drag Region to Rows and Amount to Values (summarized by SUM), the pivot shows:
- East – $1,200 (subtotal for East)
- West – $800 (subtotal for West)
- Grand Total – $2,000
Each “Total” row is a subtotal. If you add a second row field (like Product), you get subtotals for each region and then for each product within that region, plus a grand total at the bottom.
How to Turn Subtotals On or Off
Subtotals are controlled per row or column field in the pivot editor. Here’s the exact path:
- Click anywhere inside the pivot table.
- On the right, the “Pivot table editor” panel opens.
- Under “Rows” (or “Columns”), find the field you’ve added.
- Click the small downward arrow next to that field’s name to expand its options.
- Check or uncheck “Show totals.”
When checked, that field shows subtotals for each of its values. When unchecked, the subtotals for that field disappear, but the grand total remains (unless you also uncheck “Show totals” for the entire pivot via the “Totals” section at the bottom of the editor).
Note: If you have only one row field, the “Show totals” option controls both the group subtotals and the grand total—they’re the same thing. With two or more row fields, you’ll see separate subtotal rows for each level.
Why Subtotals Might Be Missing
Several common reasons explain why you don’t see subtotals:
- You have no value field added—subtotals only appear when there’s something to aggregate.
- You’ve unchecked “Show totals” for that specific field.
- Your data range includes blank rows or columns, which can confuse the pivot.
- You’re looking at a pivot that uses “Show totals” disabled in the editor’s “Totals” section (this hides all totals).
To fix, open the pivot editor, expand the field under Rows or Columns, and ensure “Show totals” is checked. Also check the “Totals” section at the bottom—make sure “Show totals” is enabled there as well.
Subtotals vs. Grand Totals vs. Filtered Totals
People often confuse these three. A subtotal is the sum (or other aggregate) for a single group within a field. A grand total is the sum for all groups combined. A filtered total appears when you apply a filter to the pivot—it recalculates the grand total to include only the visible rows.
For instance, if you filter the pivot to show only “East” region, the grand total changes to East’s subtotal, but the subtotal row for East still shows the same number. If you want to see a total that ignores filters, you’d need to use a formula outside the pivot, like =SUMIF on the raw data—the pivot itself always respects filters.
How to Customize Subtotal Aggregations
By default, subtotals use the same aggregation as the value field (e.g., SUM). You can change the aggregation for the entire value field, but you cannot set a different aggregation for subtotals vs. the grand total in Google Sheets—unlike Excel, which allows per-level subtotal functions. To change the aggregation:
- In the pivot editor, under “Values,” click the value field (e.g., “SUM of Amount”).
- Choose “Summarize by” and pick a different function (SUM, COUNT, AVERAGE, MIN, MAX, etc.).
This changes both subtotals and grand total. If you need different subtotals per group (say, average for one group and sum for another), that’s not possible directly in a pivot—you’d have to create separate formulas or use a different data layout.
Common Problems and Fixes
- Subtotals show “0” or blank: Usually means the value field is blank or the data type is text. Check your source data for numbers stored as text—convert them with
=VALUE()or use Data > Split text to columns. - Subtotals appear for columns but not rows: You may have only a column field and no row field. Subtotals for columns work the same way—check “Show totals” under the Columns section.
- Subtotals are not updating: Pivot tables refresh automatically in Google Sheets when source data changes, but if you added new rows outside the original range, update the data range in the pivot editor (under “Data range” at the top).
- Can’t move subtotal rows: Subtotals are fixed in position—they always appear directly below their group. You cannot drag them elsewhere.
Subtotals in Excel vs. Google Sheets
Excel’s pivot tables have a separate “Subtotals” option in the Field Settings dialog, where you can choose “Automatic,” “Custom,” or “None.” Google Sheets only offers a simple on/off checkbox. In Excel, you can also show subtotals at the top of a group (above the data) or at the bottom; Google Sheets always shows them at the bottom. If you’re migrating from Excel, expect less control in Sheets—but the core functionality is the same.
Frequently Asked Questions
How do I add subtotals to a Google Sheets pivot table?
Click any cell in the pivot, open the Pivot table editor on the right, expand the field under Rows or Columns, and check “Show totals.” That’s it—subtotals appear automatically for each group.
Why is my pivot table not showing subtotals?
The most common cause is that “Show totals” is unchecked for that field. Also verify you have at least one value field added and that your data range includes all rows. Check the “Totals” section at the bottom of the editor to ensure the master toggle is on.
Can I show subtotals only for certain groups?
No—Google Sheets applies subtotals uniformly to all groups in a field. If you need selective subtotals, you’d have to create separate formulas outside the pivot, like =SUMIF() for specific groups.
How do I remove subtotals but keep the grand total?
Uncheck “Show totals” for the row or column field you want to remove subtotals from. The grand total is controlled separately in the “Totals” section—keep that checked to retain it.
Can I change the subtotal function (e.g., from SUM to AVERAGE)?
Yes—change the “Summarize by” option for the value field in the pivot editor. This changes both subtotals and the grand total. There’s no way to use different functions for subtotals vs. grand total.
Do subtotals update automatically when I edit source data?
Yes, Google Sheets recalculates pivot tables in real time as you edit cells in the source range. If you add new rows beyond the original range, you must update the pivot’s data range manually.
Related
- Shortcut for cmd? (Open Command Prompt Fast)
- Computer Skills Test for Data Entry: What It Covers
- Generating Random Numbers in Python: A Complete Guide
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Sorting Values in Pivot Table: Quick GuideTo sort values in a pivot table, click the arrow in the row or column label header (or…
- Excel Waterfall Chart: Remove Connector LinesTo remove connector lines from a waterfall chart in Excel for Microsoft 365 on Windows, select the chart,…
- Excel Pie Chart: How to Break Its Link in Microsoft WordTo break a linked Excel pie chart in Word for Microsoft 365 on Windows, open the document and…
- Excel Slicer Link to Different Pivot Tables: How It WorksYes. In Excel for Microsoft 365 on Windows, one slicer can filter multiple PivotTables when those PivotTables share…
- Add an Average Line to a Bar Graph in Excel: StepsTo add an average line to a bar graph in Excel, calculate the average in a worksheet cell,…
- Advanced Gantt Chart Excel Formula: Build a Dynamic PlanAn advanced Gantt chart in Excel is usually built with a date-based conditional-formatting formula, not a single formula…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.