Site icon Best Excel Tutorial

How to Sort a Pivot Table

You learn how to sort data in a pivot table. Sorting a PivotTable in Excel can help you visualize data better, whether it’s identifying top buyers or analyzing other trends.

Pivot table data preparation

Mark the data, click insert, and then click Pivot Table. It will create a pivot table.

Check the label, then click on it, and drag it to the field of your need in your pivot table.

How to sort pivot table by values?

Click the arrow on Row Labels or Column Labels, and then click the sort option you want. To sort data in ascending or descending order, click Sort A to Z or Sort Z to A.

Manual Sorting in a Pivot Table

For more sorting options, click More Options.

Note: Manual sorting allows rearranging items by dragging, but values cannot be rearranged.

Ascending (A to Z) and Descending (Z to A) sort alphabetically or by the sum of quantities.

Automatic Sorting in a Pivot Table

In More Options, enable Sort automatically every time the report is updated. This feature automatically sorts data when your pivot table is refreshed.

After this step the data in your pivot table will be sorted.

Note: If the pivot table is based on data in an Excel table, you can also sort the underlying data by clicking on the column header and selecting “Sort A to Z” or “Sort Z to A”. The pivot table will automatically reflect the change in sorting.

Exit mobile version