How to Create a Flexible Excel Order Summary by Size Using PivotTables
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.

- 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.
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.
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.
Select your source data range and press Ctrl+T (or go to Insert > Table) to convert it into an Excel Table.
Go to the Data tab on the ribbon and click 'From Table/Range' to open the Power Query Editor.
Select the garment and size columns, right-click the headers, and choose 'Unpivot Columns' to normalize the data into attribute and value pairs.
Click 'Close & Load To...' from the Home tab, select 'Add this data to the Data Model', and choose 'PivotTable Report'.
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.

Create Separate PivotTables for Each Garment Category
A simpler alternative if you prefer not to use Power Query, allowing you to manage individual summaries for shirts, pants, and jackets.
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. Open Your Order Data: Launch WPS Spreadsheet, open your order data file, and select the entire data range.
- 2. Insert a PivotTable: Navigate to the 'Insert' tab on the top ribbon and click on the 'PivotTable' icon.
- 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. 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.

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.




