Sort Pivot Table Largest to Smallest: Easy Steps

Charts & pivot tables · Updated November 23, 2026

To sort a pivot table from largest to smallest, click the drop-down arrow next to the row or column label you want to sort, select More Sort Options, choose Descending (Z to A) by and pick the value field, then click OK. For a quick sort, right-click any number in that value column, choose Sort, then Sort Largest to Smallest.

Why Pivot Table Sorting Feels Different

Pivot tables don’t sort the way normal spreadsheet ranges do. In a regular range, you select a column and click A→Z or Z→A. In a pivot table, the sort order is tied to the field, not the cell selection. If you try to sort by selecting the numbers and using the ribbon’s Sort button, Excel often ignores it or reorders the wrong field. That’s because a pivot table is a live summary: the row labels are categories, and the values are aggregations (sums, averages, counts). Sorting must be applied to the field’s underlying data, which is why the menu paths are different.

The Quickest Way: Right-Click Sort

This method works in Excel for Microsoft 365, Excel 2021, and most recent versions on Windows and Mac.

  1. Click any cell inside the value column you want to sort by (for example, the Sum of Sales column).
  2. Right-click that cell.
  3. Hover over Sort.
  4. Click Sort Largest to Smallest (or Sort Smallest to Largest).

That’s it. The row labels immediately reorder so the largest value appears at the top. On a Mac, the right-click works the same, or you can Control-click.

Using the Field Drop-Down for More Control

If you need to sort by a specific value field when there are multiple (like Sum of Sales and Sum of Profit), use the field header’s drop-down arrow.

  1. Click the drop-down arrow on the row label header (for example, “Region”).
  2. Choose More Sort Options.
  3. In the Sort dialog, select Descending (Z to A) by.
  4. In the drop-down next to that, choose the value field you want to sort by (e.g., “Sum of Sales”).
  5. Click OK.

This dialog also lets you sort manually by dragging items, but that’s rarely what you want for a numeric sort.

Sorting a Pivot Table with a Slicer or Timeline

Slicers and timelines don’t affect sort order. If you have a slicer filtering the pivot, the sort remains based on the underlying values after the filter is applied. For example, if you sort by Sum of Sales descending and then use a slicer to show only Q1, the pivot will re-sort within that filtered subset—largest Q1 sales first. This is automatic and requires no extra steps.

Common Sorting Problems and Fixes

Here are the most frequent issues people hit:

  • The sort doesn’t stick after refreshing. If you refresh data or add new items, the pivot may revert to alphabetical. To force a persistent sort, use the More Sort Options dialog and check “Sort automatically every time the report is updated.” That option appears in the same dialog under the sort order selection.
  • Numbers are sorting as text (1, 10, 2). This happens when the source data column is formatted as text. Convert the source column to numbers (select the column, go to Data > Text to Columns, finish, or use the VALUE function in a helper column).
  • The sort option is greyed out. This usually means you’ve selected a cell in the row label area, not the value area. Click a cell inside the values column first.
  • Sorting by a calculated field. Calculated fields (like Profit % = Profit/Sales) sort fine using the right-click method, as long as the calculated field is displayed in the Values area.

How to Sort by a Custom List (Like Month Order)

Sometimes you don’t want largest to smallest—you want months in chronological order (Jan, Feb, Mar) or a custom sequence like Low, Medium, High. Excel’s pivot table respects custom lists automatically if you’ve defined them in File > Options > Advanced > Edit Custom Lists. For months, Excel usually recognizes them. If not, you can manually drag items in the row label area, or create a helper column in your source data with a sort order number (e.g., 1 for Jan, 2 for Feb) and add that as the first row field, then hide it if needed.

Sorting in Excel for the Web and Mac

In Excel for the web, the right-click sort works the same way: right-click a value cell, choose Sort, then Sort Largest to Smallest. The field drop-down method also works. On a Mac, the steps are identical—right-click (or Control-click) and choose Sort. The ribbon’s Sort button (under Data) still won’t work on a pivot table, so stick with the context menu.

Frequently Asked Questions

Why does my pivot table sort alphabetically even after I sort largest to smallest? This usually happens when you sort by a row label instead of a value. Click a cell in the value column (like the sum column) and then right-click to sort. Also check if the “Sort automatically every time the report is updated” option is enabled in the More Sort Options dialog.

Can I sort a pivot table by two columns at once? No, pivot tables support only one sort key at a time. To achieve a multi-level sort, add the second field as a secondary row field (e.g., Region then Product), then sort by the outermost field. The inner field will sort alphabetically within each outer group, but you can’t sort by two different value fields simultaneously.

How do I sort a pivot table by a percentage field? Right-click any cell in the percentage column and choose Sort > Sort Largest to Smallest. It works exactly like any other numeric value field. Just make sure the percentage is formatted as a number (not text) in the source data.

Will sorting break if I add new data to my source and refresh? If you use the right-click sort, it applies to the current state; after refresh, new items might appear at the bottom. To keep the sort persistent, use the More Sort Options dialog and check “Sort automatically every time the report is updated.”

What’s the difference between sorting row labels and sorting values? Sorting row labels alphabetically (A→Z) reorders the category names. Sorting values (largest to smallest) reorders the categories based on the numeric result. You almost always want to sort by values, not labels, when you want the biggest numbers first.

Can I sort a pivot table using a formula? No, pivot tables don’t support formulas for sorting. You can, however, create a separate sorted list using the SORT function (in Excel 365) that references the pivot table’s values, but that’s a static snapshot, not a live pivot. For live sorting, stick with the built-in sort options.

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.