A double pivot table is a single pivot table that shows two layers of grouping at once — for example, sales by region and then by product category, or two measures (sum of sales and count of orders) side by side for the same row fields. The quickest way to get one is to drop two fields into the Rows area of a normal pivot table: Excel nests the second field inside the first and adds expand/collapse buttons. You can build it in under a minute, but getting the totals, formatting and refreshing right is where most people get stuck.

What You'll Need

  • A spreadsheet application with pivot tables — Excel (Windows, Mac or the web version), Google Sheets, or LibreOffice Calc. The steps below use Excel's wording; Google Sheets calls the same areas Rows and Columns too, and LibreOffice calls them Data Fields. Labels can differ slightly by version, platform and region, so match the meaning rather than the exact word.
  • A clean source table: one header row, no blank rows or columns inside the data, no merged cells, and one value per cell. Pivot tables break quietly when the range contains gaps.
  • Columns that are suitable as the outer and inner grouping fields (for example Region and Product), plus at least one numeric column such as Sales or Quantity to aggregate.
  • Optional but useful: a field that describes the date so you can group by month or year, and a category field if you intend to build a second measure.

Step-by-Step

  1. Select the data. Click any cell inside your table and press Ctrl+A (Cmd+A on Mac) to grab the whole block, or select the full range including headers. If the data is already formatted as a table, just click inside it — Excel will use the table name and grow the pivot range automatically as rows are added.
  2. Insert the pivot table. Go to Insert > PivotTable. Confirm the range and choose whether to place it on a new worksheet or an existing one. A new worksheet is easier for a first attempt. Click OK.
  3. Build the outer layer. In the PivotTable Fields pane, drag your first grouping field (say Region) into the Rows area. You now have one-level grouping with subtotals at the bottom of each group.
  4. Add the inner layer. Drag the second grouping field (say Product) into the Rows area below Region in the field list. Order matters: whatever sits higher in the Rows box becomes the outer group, and the one below it nests inside. The layout instantly becomes a double-decker row structure with expand and collapse buttons beside each Region.
  5. Add the value. Drag your numeric field (Sales) into the Values area. Check that it says "Sum of Sales" and not "Count of Sales" — if the column contains any text or blanks, Excel may default to Count.
  6. Choose the reporting layout. By default Excel shows the nested layout in compact form, which squeezes both fields into one column. Go to Design > Report Layout and pick Show in Tabular Form so Region and Product sit in separate columns, then Repeat All Item Labels if you want every row to show its Region instead of blanks. Tabular form is the layout most people mean by a double pivot.
  7. Control the subtotals. Under Design > Subtotals, choose whether to show subtotals at the top or bottom of each group, or turn them off entirely. Turning them off and relying on a grand total is cleaner for small groups.
  8. Add a second measure if you need one. Drag the same numeric field into Values again, or drag a different one (Order Count). Excel names the second one "Sum of Sales2" — double-click the field header in the pivot and rename it under Custom Name, then set Number Format in the same dialog so currency and percentages display properly.
  9. Test with a filter. Drop a field into Columns (for example Year) or use the filter arrow on the row labels to confirm the nesting behaves as expected. Collapse one outer group to verify that the inner rows hide and the subtotal stays.
  10. Format and finish. Apply a number format to the values, widen columns, and switch off the field buttons under PivotTable Analyze > Field Headers if you want a cleaner printed sheet. Save the workbook.

Common Mistakes

  • Dragging the second field into Columns by accident. That produces a cross-tab (a matrix), not a nested double pivot. If you see groups going across the sheet instead of down, move the field from Columns to Rows.
  • Leaving the layout on Compact Form. Compact form stacks both labels in one cell, which looks like a single column and cannot be sorted or filtered row by row. Switch to Tabular Form.
  • Source data with blank rows or merged cells. Excel quietly cuts the range at the first blank row, so later entries never appear. Check that the row and value counts match the source.
  • Forgetting to refresh. Pivot tables do not update themselves from a plain range. Right-click inside the pivot and choose Refresh after editing data, or press Alt+F5 on Windows.
  • Confusing Sum with Count. If a value column contains any text, the default aggregation becomes Count. Always verify the field name in the Values area.
  • Renaming a source column. Changing a header in the source breaks the pivot field and often forces a rebuild. Rename the pivot's custom label instead.

Tips

  • Format the source as a real table (Ctrl+T) first. The pivot auto-expands when rows are added, removing a whole class of refresh bugs.
  • Use Slicers (PivotTable Analyze > Insert Slicer) to filter the double pivot by region or category without touching the layout.
  • Rename inner row-field headers with Custom Name so the report reads "Product" rather than "Row Labels".
  • If you need the same double pivot for many regions or periods, build one and use Show Report Filter Pages to split it into a sheet per filter value.
  • Keep measures consistent: two Sum measures of different columns are easy to compare; a Sum beside a Count is not.
  • Sort the outer level deliberately (right-click a region label > Sort) rather than leaving source order, which is rarely meaningful.

Troubleshooting

The inner field is not nesting. Confirm it sits below the outer field in the Rows area. In compact form the nesting is invisible — switch to Tabular Form to check.

New data does not show up. Right-click the pivot and refresh. If it still does not appear, the pivot range is fixed and does not cover the new rows: change the source range under PivotTable Analyze > Change Data Source, or convert the source to a table next time.

Subtotals appear twice or in the wrong place. Adjust Design > Subtotals and Grand Totals. Turning grand totals off for rows and on for columns often fixes double-counting confusion.

Values show as text or dates. The source column is formatted as text. Convert it to numbers in the source, then refresh.

The pivot looks grey and will not edit. Workbook sharing or a protected sheet is blocking it. Unprotect the sheet or stop sharing the workbook; note that shared workbooks cannot host pivot tables in the classic sense.

If that did not work, rebuild the pivot from scratch on a fresh worksheet, keeping the source range small and clean. Most pivot problems trace back to one bad cell in the source, and a rebuild in under a minute usually beats hunting for it.

Frequently Asked Questions

What is the difference between a double pivot table and a pivot chart?

A double pivot table is a text-based report with two levels of row grouping and one or more measures. A pivot chart is a visual built from the same data. You can create a chart from a double pivot, but it uses the pivot's current layout and filters.

Can I have three levels of grouping?

Yes. Add a third field below the second in the Rows area. Beyond three levels the report becomes hard to read, so use filters or slicers instead.

Does this work in Google Sheets?

Yes, in principle: add a second row field to the Rows section of the pivot table editor and Sheets nests it the same way. Menu names and layout options differ from Excel, and Sheets does not offer Excel's Tabular Form toggle.

Why are my row labels showing as blanks?

In compact or outline layout, repeated outer labels are hidden by default. Turn on Repeat All Item Labels under Design > Report Layout to show every value.

How do I copy the values out as plain data?

Select the pivot, copy it, then paste with Paste Special > Values into a new sheet. This breaks the live link, so later refreshes of the pivot will not update the copy.