Manual Sorting in Pivot Table: How to Do It

Charts & pivot tables · Updated November 23, 2026

Yes, you can manually sort a pivot table — either by dragging row or column labels into the order you want, or by using a custom list. The simplest method is to select a cell in the row or column you want to reorder, then drag it to a new position; Excel preserves that order until you refresh or change the layout. This article explains every manual sorting method, when each works, and how to avoid the common pitfalls that make manual order disappear.

Why Manual Sorting Matters in Pivot Tables

Pivot tables automatically sort labels alphabetically (A to Z) or numerically (smallest to largest) by default. That automatic order is fine for many reports, but it fails when you need a logical, business-specific sequence — for example, a weekday order (Mon, Tue, Wed…), a priority order (High, Medium, Low), or a sales funnel stage (Lead, Qualified, Proposal, Closed). Manual sorting lets you impose that custom sequence without changing your source data or adding helper columns.

Manual sorting is also useful when you want to move a single item to the top (like “Other” or “Total”) or group related items together visually. Because the manual order is stored with the pivot table’s layout, it persists through most routine operations — but it can be lost when you refresh, add fields, or change the pivot’s structure. Understanding why that happens is key to using manual sorting reliably.

Method 1: Drag and Drop Labels

The most direct way to manually sort is to drag a label to a new position. Here’s how it works in Excel for Microsoft 365 on Windows:

  1. Click any cell inside the pivot table that contains the label you want to move (for example, a product name in the Row Labels column).
  2. Hover over the cell border until the cursor changes to a four‑headed arrow (or a hand icon).
  3. Hold the left mouse button and drag the label up or down (for row labels) or left/right (for column labels). A thick horizontal or vertical line shows where the label will land.
  4. Release the mouse button to drop the label in the new position.

This works for both row and column fields. On a Mac, the steps are identical, but you may need to click and hold a moment longer before dragging. In Excel for the web, drag‑and‑drop also works, but it can be finicky; if you have trouble, use the “Move” option in the field’s right‑click menu (see below).

You can also reorder entire field items by selecting multiple labels (hold Ctrl while clicking) and dragging them together. This is handy when you want to move a block of items, like moving all “High” priority items to the top.

Method 2: Using the Right‑Click Move Options

If dragging feels imprecise or you need to move an item by a specific number of positions, use the right‑click menu:

  1. Right‑click the label you want to move (e.g., a row label cell).
  2. Choose Move from the context menu.
  3. Select one of the options: Move “Label” Up, Move “Label” Down, Move “Label” to Beginning, or Move “Label” to End.

This method is available in Excel for Microsoft 365 on Windows and Mac. In Excel for the web, the Move submenu appears as well, but the wording may be slightly different (e.g., “Move Up” and “Move Down”). This is the most reliable way to move a single item without accidentally dropping it in the wrong spot.

Method 3: Custom Lists for Automatic Manual Order

If you frequently need the same custom order (like weekdays or month names), create a custom list and Excel will apply it automatically — no dragging required each time.

  1. Go to File > Options > Advanced (on Windows) or Excel > Preferences > Custom Lists (on Mac).
  2. In the Custom Lists box, type your list (one item per line) in the List entries field, or import from a range.
  3. Click Add, then OK.

Now, when you refresh the pivot table, items that match your custom list will appear in that order — as long as you haven’t manually dragged any items. If you have a mix of custom‑list items and others, the custom list items take their defined order, and the remaining items sort alphabetically after them.

Custom lists are stored in your Excel profile, so they work across all workbooks on your machine. They are particularly useful for sorting by month names (Jan, Feb, Mar…) or by department codes (e.g., HR, IT, Finance) without creating a helper column.

Method 4: Sort by Values (Not Labels)

Manual sorting is about label order, but sometimes you want to sort by a value (like sales total) while keeping a specific label order for ties. You can combine both:

  • To sort by value, click the drop‑down arrow on the row or column label header, then choose More Sort Options.
  • Select Sort by and choose the value field (e.g., Sum of Sales), then choose Ascending or Descending.
  • That gives you a numeric sort, not manual. To get a manual order after a value sort, you can drag items to override the automatic order — but note that any later refresh will revert to the value sort.

A better approach for a stable custom order is to add a helper column in your source data with a numeric rank (1, 2, 3…) and use that as the first sort field. Then the pivot table will sort by that rank, and you never have to drag. This is the most robust “manual” method because it survives refreshes and layout changes.

Common Problems and Fixes

Manual sorting often seems to “not work” because the order resets. Here are the most common issues and their solutions:

  • Order resets after refresh: When you refresh the pivot table, Excel re‑applies the default sort (alphabetical or numeric). To keep your manual order, you must re‑drag after every refresh, or use a custom list or helper column.
  • Order resets when adding a field: Adding a new row or column field can trigger a re‑sort. If you add a field, your manual order may be lost. Re‑apply it after adding fields.
  • Can’t drag because the pivot table is in Compact Layout: In Compact Layout, labels are in the first column, and dragging works, but it can be tricky to grab the right cell. Switch to Outline or Tabular layout (under Report Layout) to make dragging easier.
  • Items are grouped or have subtotals: Grouped items (like date ranges) cannot be manually reordered within the group; you must ungroup first. Subtotals may also interfere — try turning them off temporarily.
  • Manual order doesn’t apply to multiple fields: If you have two row fields (e.g., Region then Product), manual sorting applies independently to each field. You must drag items within each field separately.

A common misconception is that manual sorting is permanent. It is not — it’s a layout preference that Excel stores, but many actions (refresh, add/remove fields, change layout) can reset it. The only fully permanent solution is to control the order in your source data with a sort column.

Comparing Manual Sorting with Other Methods

Manual sorting is quick and visual, but not always the best choice. Here’s how it stacks up against alternatives:

  • Custom lists: Best for recurring orders (weekdays, months). They are automatic but only work if your labels exactly match the list entries.
  • Helper column with numeric rank: Most reliable. Add a column in your source data with numbers (1,2,3…), then sort by that column. Survives everything, but requires editing source data.
  • Sort by value: Useful for “top N” reports, but it’s not manual — it’s based on numbers. You can’t mix manual label order with value sorting without a helper.
  • Power Query / Power Pivot: You can sort columns in the data model, but that’s overkill for a simple manual order.

For a one‑time report, drag‑and‑drop is fastest. For a recurring report, invest in a custom list or helper column to save time.

Frequently Asked Questions

Why does my manual sort keep resetting every time I refresh?

When you refresh a pivot table, Excel recalculates and re‑applies the default sort order (alphabetical for text, numeric for numbers). Manual dragging is a layout override that is not retained across refreshes. To keep your order, use a custom list or a helper column with a numeric rank.

Can I manually sort in Excel for the web?

Yes, you can drag labels in Excel for the web, but it can be less responsive. The right‑click Move options work as well. However, custom lists are not available in Excel for the web — they are a desktop feature. For a stable order on the web, use a helper column.

How do I sort by month name in the correct order (Jan, Feb, Mar…)?

Excel has built‑in custom lists for month and weekday names, so if your source data contains full month names (like “January”), the pivot table will automatically sort them chronologically. If you use abbreviations (Jan, Feb), you may need to create a custom list with those abbreviations in order.

Can I manually sort values (not labels) by dragging?

No, you cannot drag values to reorder them. Values are always tied to their row/column labels. To reorder values, you must reorder the labels, or use the sort by value option. If you need a specific value order that isn’t numeric, you’ll need a helper column.

Is there a way to lock the manual order so it never changes?

Not directly. The only way to guarantee a permanent order is to add a numeric sort column in your source data and sort by that column. Custom lists are stable but can be overridden by manual dragging. Manual dragging is always temporary.

What is the difference between manual sorting and sorting A to Z?

Sorting A to Z (or Z to A) is an automatic alphabetical or numeric sort. Manual sorting lets you place items in any order you choose, regardless of alphabet or numbers. Manual sorting overrides the automatic sort until the pivot table refreshes or changes.

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.