How to Sort Excel 365 PivotTable Values from Largest to Smallest
Question details
The user needs to sort values within an Excel 365 PivotTable in descending order and understand how the row field hierarchy affects the sorting outcome.

- Product
- Excel 365
- Device & OS
- not provided
- Scenario
- Organizing PivotTable data to display the highest numerical values first for better data analysis.
- Observed behavior
- The values sort descendingly, but only within the parent group defined by the row fields to their left, which preserves the grouping hierarchy.
Ensure your PivotTable data source is up to date by clicking 'Refresh' on the PivotTable Analyze tab before applying new sorting rules.
Use the Context Menu to Sort Values
The quickest method to sort your PivotTable values is by using the right-click context menu directly on the data.
Excel PivotTables sort a row field only within the hierarchy of row fields positioned to its left. This specific behavior preserves the underlying relationship between parent and child row fields.
Click on any numeric value inside the target value column of your PivotTable.
Right-click the selected value to open the quick actions menu.
Hover over 'Sort' in the menu, then select 'Sort Largest to Smallest'.

Sort Values Using the Data Ribbon
You can also use the standard Sort & Filter tools located in the Excel ribbon to organize your PivotTable data.
Sort PivotTable Data Easily with WPS Spreadsheet
WPS Spreadsheet offers powerful, highly compatible PivotTable tools. You can effortlessly organize, sort, and analyze complex datasets with an intuitive interface identical to Microsoft Excel.
- 1. Open your workbook: Launch WPS Spreadsheet and open the .xlsx file containing your PivotTable.
- 2. Select the target value: Locate the PivotTable sheet and right-click on any numeric cell within the column you want to sort.
- 3. Choose Sort option: From the pop-up menu, navigate to 'Sort'.
- 4. Apply Descending order: Click on 'Descending' to instantly sort your data from largest to smallest within its respective hierarchy.

Frequently Asked Questions
Why is my PivotTable not sorting correctly from largest to smallest?
PivotTables inherently sort row fields only within the hierarchy of row fields to their left. If the sorting seems ineffective, the values are likely locked within a parent group, and Excel is sorting the items only inside each specific subgroup.
Can I sort a PivotTable by a specific column if I have multiple value columns?
Yes. To sort by a specific column, right-click any single cell inside that specific value column, choose 'Sort', and select 'Sort Largest to Smallest'.
How do I sort the parent row labels instead of the numerical values?
Click the drop-down arrow next to the 'Row Labels' header in your PivotTable, choose 'More Sort Options', select 'Descending', and then pick the specific row field name you want to sort by.




