Pivot Table Issues

How to Create a Flexible Excel Order Summary by Size Using PivotTables

Olivia MillerOlivia Miller Nov 3, 2026 868 views

Question details

The user needs a scalable method to summarize product orders involving multiple variables like garments, sizes, and colors without manually listing all combinations.

How to Create a Flexible Excel Order Summary by Size
Product
Excel
Device & OS
not provided
Scenario
Organizing and summarizing multifaceted product order data for dynamic and flexible reporting.
Observed behavior
The goal is to utilize automated tools like Power Query and PivotTables to build an easily refreshable summary report rather than managing data manually.
Before you start

Ensure your source order data is organized in a contiguous range without blank rows or merged cells, and format it as an official Excel Table for dynamic updating.

Solution 1Recommended

Use Power Query and PivotTables to Unpivot and Summarize

Unpivot your cross-tabular data columns into a normalized format to create a scalable PivotTable that uses Slicers for filtering.

Using Power Query to unpivot cross-tabular data (like sizes spread across multiple columns) into a flat list is the most robust way to prepare your data. Loading this normalized list into the Data Model allows your PivotTable to scale seamlessly when new product options are added.

1
Convert Source Data to a Table

Select your source data range and press Ctrl+T (or go to Insert > Table) to convert it into an Excel Table.

2
Load Data into Power Query

Go to the Data tab on the ribbon and click 'From Table/Range' to open the Power Query Editor.

3
Unpivot the Columns

Select the garment and size columns, right-click the headers, and choose 'Unpivot Columns' to normalize the data into attribute and value pairs.

4
Load to the Data Model

Click 'Close & Load To...' from the Home tab, select 'Add this data to the Data Model', and choose 'PivotTable Report'.

5
Configure PivotTable and Slicers

In your new PivotTable, drag the garment type, size, and color fields to the Rows or Columns areas. Go to the PivotTable Analyze tab and select 'Insert Slicer' to add interactive filters.

Use Power Query and PivotTables to Unpivot and Summarize
Dynamic Updates: When new orders are added to the source table, simply click 'Refresh All' on the Data tab to instantly update your query and PivotTable summary.
Powerful Spreadsheet Analytics

Build Flexible Order Summaries with WPS Spreadsheet

WPS Spreadsheet offers an intuitive and highly compatible platform for creating dynamic order summaries. With its robust PivotTable functionalities and seamless Microsoft Excel compatibility, you can manage complex product data effortlessly.

  1. 1. Open Your Order Data: Launch WPS Spreadsheet, open your order data file, and select the entire data range.
  2. 2. Insert a PivotTable: Navigate to the 'Insert' tab on the top ribbon and click on the 'PivotTable' icon.
  3. 3. Configure Field Layout: Drag your order fields such as 'Garment', 'Size', and 'Color' into the Rows or Columns areas, and drop the 'Quantity' field into the Values area.
  4. 4. Add Interactive Slicers: Click anywhere inside your PivotTable, navigate to the PivotTable Tools tab, and click 'Insert Slicer' to easily filter your summary by specific sizes or colors.
100% compatible with Microsoft Excel (.xlsx) formatsAdvanced PivotTable features for multi-dimensional data summariesBuilt-in Slicers for visual and interactive data filteringFree, lightweight, and user-friendly interface
microsoft office alternative - wps office

Frequently Asked Questions

Why should I format my data as a Table before creating a PivotTable?

Formatting your data as an Excel Table creates a dynamic range. When you add new orders to the bottom of the table, the PivotTable automatically expands its data source to include them when refreshed, preventing any missing data in your summary.

How do I arrange my sizes in a logical order (S, M, L) instead of alphabetical order?

You can define a custom sort sequence by navigating to File > Options > Advanced. Scroll down to the General section, click 'Edit Custom Lists', and type your preferred order (e.g., S, M, L, XL). Your PivotTable will automatically follow this sorting logic.

What is the benefit of adding Slicers to my order summary?

Slicers act as visual filters for your PivotTable. Instead of using traditional drop-down menus, Slicers display all available options (like specific sizes or colors) as clickable buttons, making your summary report much more interactive and easier to navigate for presentations.

What does 'unpivoting' data in Power Query mean?

Unpivoting transforms data from a wide, cross-tabular format (like having multiple columns for different sizes) into a long, normalized list. This results in a single column for 'Size' and another for 'Quantity', making it the ideal structure for summarizing data efficiently in a PivotTable.