Sort Numeric Values in an Excel 2010 PivotTable
Question details
Sort the numeric labels in an Excel 2010 PivotTable in ascending numerical order.

- Product
- Microsoft Excel 2010 PivotTable
- Device & OS
- not provided
- Scenario
- A PivotTable uses the Nr. field to display numeric labels such as 2, 4, 6, 8, and 10.
- Observed behavior
- The labels do not appear in true ascending numeric order.
Locate the Nr. field in the PivotTable and identify its source column. Check whether the source values are stored as numbers or as text.
Sort the PivotTable field in ascending order
Use the field's sort options to arrange numeric labels from smallest to largest.
In the PivotTable, click the filter arrow beside the Nr. field.
Select More Sort Options, choose Ascending (A to Z), and select the Nr. field as the sort field.
Click OK and check that the labels appear in order, such as 2, 4, 6, 8, and 10.

Convert source text to numbers and refresh the PivotTable
Use this method if ascending sorting places 10 before 2 because the source values are text.
Sort PivotTable Numbers in WPS Spreadsheet
Open your workbook in WPS Spreadsheet, check that the source values are numeric, and sort the PivotTable field in ascending order.
- 1. Open the workbook: Launch WPS Office, open Spreadsheet, and select the Excel workbook containing the PivotTable.
- 2. Check the source data: Open the source worksheet and verify that the values in the Nr. column are numbers rather than text.
- 3. Refresh the PivotTable: Return to the PivotTable, right-click inside it, and select Refresh if you changed the source values.
- 4. Sort the labels: Open the drop-down beside the Nr. field and choose ascending sort. Check that 10 appears after 8 rather than before 2.

Frequently Asked Questions
Why does my PivotTable put 10 before 2?
The source values may be stored as text, so Excel sorts them alphabetically. Convert the source column to numbers, right-click the PivotTable, and select Refresh before sorting again.
Where are the PivotTable sort options in Excel 2010?
Click the filter arrow beside the field you want to sort, then select More Sort Options and choose Ascending.
Does changing the number format convert text to numbers?
No. Changing the cell format alone does not convert text values. Use the warning icon's Convert to Number command when available, or use the VALUE function and paste the results as values.
Why do I need to refresh the PivotTable after changing the source data?
The PivotTable may still use its previously stored data until it is refreshed. Right-click inside the PivotTable and choose Refresh, then reapply the sort if needed.




