Google Sheets Pivot Table: Compact Form and Custom Sort

Google Sheets pivot table in compact form with custom sort order

A Google Sheets pivot table with three row fields used to spread across three columns, and it always sorted labels A to Z. That gave you months in the order Feb, Jan, Mar. Two recent updates fix both problems. Compact form layout puts every row field in one indented column. Manual reorder and custom sort lets you drag rows and columns into the order your report needs.

This tutorial walks through both features using one sales dataset. You can rebuild every example yourself with the free practice workbook on this page.

What changed in Google Sheets pivot tables

Google announced the two features on the Workspace Updates blog:

Both features also improve Excel compatibility. When you import an Excel file, its compact layout and its manual or custom sort order now stay the same, and they are kept when you export the file back to Excel. Before these updates, Sheets switched compact pivot tables to outline form and reset custom sorts to ascending or descending order.

Availability and rollout

Google says both features are available to all Google Workspace customers and to personal Google accounts, with no admin setting to turn on. Each one rolls out gradually, and it can take up to 15 days to show up on your account:

FeatureRapid ReleaseScheduled Release
Manual reorder & custom sortFrom Sep 22, 2026From Oct 5, 2026
Compact form layoutFrom Oct 22, 2026From Nov 6, 2026

If you don’t see these options yet, your account may still be waiting for the rollout. Google hasn’t said whether the mobile apps support them, so this guide uses Sheets on the web.

Sample data for the examples

The practice sheet has 36 rows of sample sales data with these columns: Region (North, South, West), Category (Hardware, Software), Product (Laptop, Monitor, Antivirus, Office Suite), Month (Jan, Feb, Mar), Units, and Revenue. Total revenue is 351,250.

  1. Select the data range (A1:F37 on the Practice sheet).
  2. Click Insert > Pivot table, choose New sheet, and click Create.
  3. In the pivot table editor, add Region, Category, and Product under Rows.
  4. Add Month under Columns.
  5. Add Revenue under Values, summarized by SUM.

In outline form, Region, Category, and Product each take a column, so the numbers start in column D.

How to apply pivot table compact form in Google Sheets

  1. Click any cell in the pivot table, then click the Edit button that appears below it to open the pivot table editor.
  2. Find the layout option in the editor and switch from Outline form to Compact form.
  3. All three row fields now share one column. Categories are indented under each region, and products are indented under each category.
  4. Use the inline expand/collapse buttons to show only region totals (North 114,015, South 109,895, West 127,340) or to drill down to products.

Google’s announcement says you pick the layout “directly from the pivot table editor” but doesn’t name the exact control, and the Customize a pivot table help page doesn’t describe it yet either. The label might look a little different on your account.

When to use compact vs outline form

LayoutHow row fields appearBest forExcel equivalent
Compact form (Sheets)All in one column, indented, with expand/collapse buttonsDeep hierarchies, narrow screens, dashboardsCompact Form (Excel’s default)
Outline form (Sheets)Each field in its own columnCopying values out, filtering by a single fieldOutline Form
Tabular formEach field in its own column, laid out as a gridExporting flat tablesTabular Form (Excel only)

In Excel, you’ll find these choices under PivotTable Design > Report Layout. See Microsoft’s guide to PivotTable layout and format.

Manually reorder and custom sort a Google Sheets pivot table

By default, text labels sort in ascending order, so the Month columns appear as Feb, Jan, Mar. Here’s how to put them in calendar order:

  1. Click the Jan column header in the pivot table.
  2. Drag it to the left of Feb. A drop-zone indicator shows where it will land.
  3. Release it. The editor now shows the Order for Month as Custom.
  4. Do the same for rows. For example, drag regions into your reporting order: West, North, South.

Keep these rules from Google’s help page in mind:

  • You can select a block of headers and drag them together. If there isn’t enough room where you drop them, they go back to where they were.
  • When you move a parent item, its child items move with it. For example, moving West also moves its Hardware and Software rows.
  • Items can only move within the same level. You can’t drag a product into the region level, and you can’t drop a category header onto the values area.
  • Your custom order stays in place across sessions, data refreshes, filtering, and layout changes.

Sort options compared

OptionHow to set itUse it when
Ascending / DescendingEditor > Rows or Columns > OrderAlphabetical or numeric order is fine
Sort by a valueEditor > Sort by > SUM of RevenueYou want to rank, e.g. top regions by revenue
Custom (manual)Drag headers on the gridCalendar order, business hierarchy, fixed report order

Check your pivot with formulas

To check the pivot numbers, or to build the same summary without a pivot table, use SUMIFS. With the data in A1:F37:

=SUMIFS($F$2:$F$37,$A$2:$A$37,"West",$D$2:$D$37,"Jan")
=SUMIFS($F$2:$F$37,$A$2:$A$37,"North",$B$2:$B$37,"Hardware")   → 75720

To match a custom order in a formula-based report, look up each label’s position in your order list and sort by that number (Google Sheets syntax; in Excel 365, drop ARRAYFORMULA):

=MATCH(A2,{"West","North","South"},0)
=SORT(A2:F37,ARRAYFORMULA(MATCH(A2:A37,{"West","North","South"},0)),TRUE)

In Excel 365, the PIVOTBY function builds a similar grouped summary with a single formula. If your sales data lives in another file, bring it in first with IMPORTRANGE in Google Sheets, then build the pivot table on top of it.

Practice tasks

  1. Build the pivot table (Region > Category > Product by Month) and switch it to compact form.
  2. Collapse every region and confirm the totals: North 114,015, South 109,895, West 127,340.
  3. Drag the months into Jan, Feb, Mar order (Jan 110,795, Feb 103,345, Mar 137,110).
  4. Reorder the regions to West, North, South and confirm the editor shows Custom.
  5. Fill in the yellow answer cells in the workbook with SUMIFS, then compare them with the Solutions sheet.

FAQ

Will my existing pivot tables switch to compact form automatically?

No. Google describes compact form as a layout you choose in the pivot table editor. Outline form is still available.

Does a custom sort survive when the source data changes?

Yes. Google says custom arrangements stay in place across browser sessions, data refreshes, filtering, and layout adjustments.

Do Excel pivot tables keep their layout in Google Sheets?

Yes, after these updates. When you import an Excel file, its compact layout and manual or custom sort order are kept, and they stay the same when you export back to .xlsx.

Why don’t I see the options yet?

Both features are rolling out gradually and can take up to 15 days to reach an account after the start dates above. There is no admin setting to turn them on.

Download the practice workbook

The same data as this tutorial, with empty answer cells and a Solutions sheet.

Team Xl in Excel

Team Xl in Excel

Spreadsheet Architect & Educator at Xl in Excel. Sharing advanced formulas, dynamic arrays, and clean data modeling techniques.

Learn More About Team Xl in Excel →

Leave a Reply

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

Zoom: 100% | UTF-8 | Xl in Excel