Multiple Grand Totals in Pivot Table: How-To
In this article
Excel pivot tables show a single grand total by default, but you often need to see totals for more than one measure—like both sum and count, or revenue and profit—side by side. This guide shows you how to add multiple grand totals in a pivot table using built-in features, without formulas or macros. You'll learn the fastest method (adding the same field twice) and how to switch between sum, count, average, and other calculations.
What You'll Need
- A pivot table already created from your data (Excel 2013 or later, including Microsoft 365).
- The source data should have at least two numeric columns you want to total (e.g., Sales and Profit, or Quantity and Revenue).
- Basic familiarity with the PivotTable Fields pane.
Step-by-Step
- Open your pivot table. Click anywhere inside the existing pivot table to show the PivotTable Fields pane on the right. If it doesn't appear, right-click the pivot table and choose Show Field List.
- Add the first value field. In the Values area, drag the first numeric field (e.g., "Sales"). By default, it shows as "Sum of Sales".
- Add the same field again. Drag the same field (e.g., "Sales") from the field list into the Values area again. You'll now see two entries: "Sum of Sales" and "Sum of Sales2".
- Change the second field's calculation. Click the drop-down arrow next to "Sum of Sales2" in the Values area. Choose Value Field Settings. Under Summarize value field by, pick a different function like Count, Average, Max, or Min. Click OK.
- Rename the fields for clarity. In the same Value Field Settings dialog, type a custom name in the Custom Name box, e.g., "Sales Count" or "Avg Sales". Click OK. This makes the column headers clear.
- Repeat for additional fields. If you want totals for a different column (e.g., "Profit"), drag that field into the Values area once or twice, and set its calculation as needed.
- Verify the grand totals. Look at the bottom row of the pivot table (or the rightmost column if you have row totals). You'll see separate grand totals for each value field. For example, if you have "Sum of Sales" and "Count of Sales", the grand total row shows the total sales and the total count.
- Adjust grand total settings (optional). Right-click the pivot table, choose PivotTable Options, go to the Totals & Filters tab. Check or uncheck "Show grand totals for rows" and "Show grand totals for columns" as needed.
Common Mistakes
- Not renaming duplicate fields. If you leave both as "Sum of Sales", it's confusing. Always rename the second instance.
- Using the same calculation for both. The point is to show different totals—if you need two sums of the same field, that's fine, but often you want a count or average.
- Dragging fields into Rows instead of Values. Make sure you drop them into the Values area, not Rows or Columns, or you'll get a different layout.
- Forgetting to refresh after data changes. If your source data changes, the pivot table won't update automatically unless you refresh it (right-click > Refresh).
Tips
- Use the PivotTable Fields pane efficiently. Double-click a field in the field list to quickly add it to Values—then repeat.
- Set a default calculation. If you often use Count, change the default for new fields by going to File > Options > Data > Edit Default Layout, but this affects all new pivot tables.
- Create a calculated field for custom totals. If you need a total like "Sales / Quantity", use Fields, Items & Sets > Calculated Field in the Analyze tab.
- Use the "Show Values As" option. For percentages or running totals, right-click a value and choose Show Values As—this can give you additional "totals" like % of column total.
Troubleshooting
- Grand total row is missing. Right-click the pivot table, select PivotTable Options, and ensure "Show grand totals for rows" is checked. Also check that you haven't filtered out the total row.
- Only one grand total appears even after adding two fields. This happens if you added the field twice but changed the second to the same calculation. Double-check the Value Field Settings for each.
- The second field shows as "Sum of Sales2" and won't change. Click the drop-down in the Values area, not the field in the field list. If you can't find it, click the field in the Values area, then click Value Field Settings in the ribbon (Analyze tab).
- Grand totals are showing for rows but not columns (or vice versa). Go to PivotTable Options > Totals & Filters and check both checkboxes.
- Your pivot table is based on a data model (Power Pivot). The steps are the same, but you may need to use DAX measures to create distinct counts or other totals. In that case, the Value Field Settings dialog has fewer options—use the Power Pivot field list instead.
Frequently Asked Questions
Can I show a grand total for a calculated field? Yes, calculated fields appear in the Values area and will have their own grand total, calculated using the same formula on the total row.
How do I remove one of the multiple grand totals? Simply remove the corresponding field from the Values area by dragging it out or clicking the drop-down and choosing Remove Field.
Can I show grand totals at the top instead of the bottom? No, Excel doesn't support placing grand totals at the top by default. You can manually insert a row, but it won't update automatically. A workaround is to use a PivotTable with the "Report Filter" layout, but it's not the same.
Why does my count grand total show a decimal? That happens if your data contains blank cells or if the field is formatted as a number. Count counts non-empty cells, so it should be an integer. Check for hidden rows or filters.
Can I show multiple grand totals for different columns? Yes, just add each column as a separate value field. Each will get its own grand total in the same row.
Does this work in Google Sheets? The steps are similar, but Google Sheets pivot tables don't allow adding the same field twice easily. You'd need to duplicate the column in the source data or use a calculated field.