The grand total in a Google Sheets pivot table is the row and column that summarize all the data in the pivot table, and it appears by default at the bottom and far right. You can show or hide it via the pivot table editor under the Rows and Columns sections, and you can fix common issues like missing totals or incorrect sums by checking your data range and value field settings.
What the Grand Total Actually Shows
When you create a pivot table in Google Sheets, it automatically groups your data and adds a “Grand Total” row at the bottom and a “Grand Total” column on the right. These totals represent the sum (or other aggregate) of all values in the pivot table, regardless of row or column grouping. For example, if you have sales data by region and product, the grand total row shows each product’s total across all regions, and the grand total column shows each region’s total across all products. The intersection cell (bottom-right) shows the overall total of all values.
This is different from subtotals, which appear within a grouped field (like a subtotal for each region). Grand totals are always the outermost summary, and they are controlled separately from subtotals.
How to Show or Hide the Grand Total
To control the grand total in Google Sheets:
- Click anywhere inside the pivot table to open the pivot table editor on the right.
- In the Rows section, click the field name (e.g., “Region”).
- At the bottom of that field’s settings, you’ll see Show totals — check or uncheck it to show or hide the grand total row.
- Repeat the same steps in the Columns section to show or hide the grand total column.
Note: If you have multiple row fields, each field has its own “Show totals” toggle. Unchecking it for a field removes the grand total for that field, but not necessarily for other fields. To hide all grand totals, you must uncheck it for every row and column field.
Why Your Grand Total Might Be Wrong (or Missing)
A common problem is that the grand total doesn’t match the sum of the visible rows. This usually happens when your source data contains blank cells, text values, or numbers stored as text. Google Sheets pivot tables ignore blank cells in the value field, so if a row has a blank value, it won’t be included in the grand total. Also, if a value column contains text (like “N/A”), the pivot table may treat it as zero or ignore it, leading to a mismatch.
Another issue: if you have filtered the pivot table (using the filter icon on a row or column label), the grand total still calculates based on all data, not just the filtered visible rows. This is by design, but it can confuse users who expect the total to reflect only what they see. To get a total for filtered rows only, you’d need to use a different approach, like a SUMIFS formula outside the pivot table.
If the grand total is missing entirely, check that your source data range includes all rows. If you added rows after creating the pivot table, the range may not have expanded automatically. Go to the pivot table editor, click the data range field (under “Data range”), and update it to include the new rows.
How to Change the Grand Total Calculation (Sum, Average, Count, etc.)
The grand total uses the same aggregation as the value field. By default, it sums the values. To change it:
- In the pivot table editor, under Values, click the value field (e.g., “Sales”).
- In the dropdown, select Summarize by and choose from options like SUM, AVERAGE, COUNT, MAX, MIN, etc.
- The grand total will automatically update to use that same aggregation.
For example, if you change to AVERAGE, the grand total row will show the average of all values, not the sum. This is a common source of confusion: a user might see a grand total that looks like a sum but is actually an average because they changed the value field earlier.
Comparing Grand Totals in Google Sheets vs. Excel
In Microsoft Excel, pivot tables also have grand totals, but the way you toggle them differs. In Excel, you right-click the pivot table, choose PivotTable Options, and on the Totals & Filters tab, you can check or uncheck “Show grand totals for rows” and “Show grand totals for columns.” Excel also allows you to hide the grand total for a specific field by right-clicking that field and selecting “Field Settings.” In Google Sheets, the toggle is inside the pivot table editor, which is more straightforward but less flexible if you want to keep totals for some fields but not others.
Also, Excel’s pivot tables automatically include subtotals for each row group, while Google Sheets shows subtotals only if you enable them per field (via the same “Show totals” toggle). In Google Sheets, unchecking “Show totals” for a row field removes both the subtotal and the grand total for that field, which can be limiting.
How to Add a Grand Total to a Regular (Non-Pivot) Table
If you don’t want to use a pivot table but still need a grand total, you can use the SUM function. For example, with data in cells B2:B100, you’d write:
=SUM(B2:B100)
This returns the total of all numbers in that range. For a more dynamic approach that updates when you add rows, consider using =SUM(B2:B) in Google Sheets (this works because the open-ended range includes all rows below B2). In Excel, you’d use =SUM(B2:B100) or a structured table reference like =SUM(Table1[Sales]).
Frequently Asked Questions
Why does my grand total show 0 or blank?
This usually means the value field contains no numeric data, or the field is set to COUNT but the data is blank. Check the source data for empty cells or text. Also, ensure the value field is actually added under “Values” — if you only have row/column fields, there is no value to total.
Can I move the grand total to the top or left?
No, Google Sheets does not offer a setting to move the grand total row to the top or the grand total column to the left. The grand total always appears at the bottom and right. In Excel, you also cannot move it; it’s fixed by design.
How do I remove only the grand total column but keep the row?
Go to the pivot table editor, under Columns, click the column field (if you have one), and uncheck Show totals. If you have no column field, the grand total column doesn’t appear anyway. For the row total, do the same under Rows.
Does the grand total include hidden rows or filtered data?
Yes, the grand total always includes all data in the source range, regardless of any filters applied to the pivot table (like label filters). It does not respect row-level filters on the source sheet either. To get a total of only visible rows, use a SUBTOTAL function or a QUERY with a WHERE clause.
Why is my grand total double-counting?
Double-counting usually happens when the source data has duplicate entries or when the pivot table is built on a range that includes both the original data and a summary row. Check your source range for duplicate rows or accidental inclusion of a total row. Also, if you have multiple value fields with the same data, the grand total sums each field separately, which can look like double-counting.
Can I format the grand total differently (bold, color)?
Yes, you can manually select the grand total cells and apply formatting (bold, fill color, etc.). However, this formatting is not automatic — if the pivot table updates, the formatting may be lost. To keep formatting, you can use conditional formatting rules based on the cell’s position or content, but it’s easier to just reapply formatting after updates.
Related
- Windows 10 Shortcut Keys: The Essential List
- Computer Jobs Online Data Entry: Real Work or Scam?
- Generate Random Numbers in a Range: 6 Easy Ways
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Google Sheets Pivot Table: How to Show FiltersYes, Google Sheets pivot tables can show filters, and you control them directly from the pivot table editor…
- Generate an Org Chart from Excel Data in ExcelYes. In Excel for Microsoft 365 on Windows, you can turn employee names and reporting relationships into an…
- Half Circle KPI Chart in Excel: Build It Step by StepTo create a half-circle KPI chart in Excel, enter the KPI value, the amount remaining to its target,…
- Excel Extend Trendline Beyond Data Points?Yes. In Excel for Microsoft 365 on Windows, select the chart, choose Chart Design > Add Chart Element…
- Delta Pivot Chart in Excel: Meaning and How to Build OneA “Delta PivotChart” is not a separate, built-in Excel chart type. It usually means a PivotChart that displays…
- Excel Chart Ignore Blank Cells? How to Control GapsYes. In Excel for Microsoft 365 on Windows, select the chart, choose Chart Design > Select Data >…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.