TechBuzzPro

How to Sort a Pivot Table Manually

· 5 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to manually sort a pivot table in Excel or Google Sheets, giving you full control over the order of rows, columns, and values. You’ll learn the click-by-click steps, common pitfalls, and how to fix sorting issues when they arise.

What You'll Need

  • A pivot table already created in Microsoft Excel (2016 or later) or Google Sheets.
  • The source data should have clear headers and no blank rows/columns.
  • Access to the PivotTable Field List or the pivot table editor panel.

Step-by-Step

  1. Select the pivot table. Click anywhere inside the pivot table. This activates the PivotTable Tools (Excel) or the pivot editor (Google Sheets).
  2. Decide what to sort. Manual sorting can be applied to row labels, column labels, or values. For this guide, we’ll sort row labels, which is the most common need.
  3. Turn off automatic sorting (if needed). In Excel, right-click a row label cell, choose Sort > More Sort Options. In the dialog, select Manual (you can also uncheck “Sort automatically every time the report is updated”). In Google Sheets, click the row label field in the editor, then under “Sort by” choose “Manual”.
  4. Drag items to reorder. In Excel, hover over the border of a row label cell until the cursor becomes a four-sided arrow, then drag the item up or down. In Google Sheets, select the row label cell, then drag it by its handle (the dotted border) to the new position. Release when you see a thick line indicating the drop spot.
  5. Sort column labels manually. The same drag technique works for column labels. Click a column header cell and drag it left or right.
  6. Sort values (not labels). If you want to reorder rows by the numeric values (e.g., largest to smallest), right-click a value cell and choose Sort > Sort Largest to Smallest (or vice versa). This is not manual, but it’s often confused with it.
  7. Use the “More Sort Options” dialog for finer control. In Excel, right-click a label, go to Sort > More Sort Options, then choose the sort key (e.g., a specific value field) and order. This lets you sort by a secondary field.
  8. Lock the manual order. After dragging, right-click the label and ensure “Sort” shows “Manual”. If it shows alphabetical/numeric, your manual order may be overridden when the pivot refreshes.
  9. Refresh and check. After any change, right-click the pivot table and choose Refresh (Excel) or click the refresh icon (Google Sheets). Your manual order should persist unless automatic sorting is on.

Common Mistakes

  • Dragging the wrong cell. You must drag the label cell itself, not the value cell next to it. In Excel, the cursor changes to a four-sided arrow only when you’re over the label cell’s border.
  • Automatic sorting still on. If the pivot table refreshes and your order reverts, automatic sorting is likely enabled. Turn it off as described in step 3.
  • Sorting the source data instead of the pivot. Sorting the underlying data does not change the pivot table’s order unless you refresh and automatic sorting is on. Always sort within the pivot.
  • Dragging in Google Sheets with a single click. In Google Sheets, you must click and hold the label cell, then drag. A single click just selects it.

Tips

  • Use the “More Sort Options” for complex sorts. You can sort by a specific value field (e.g., sum of sales) while keeping labels in a custom order.
  • Create a custom list for recurring orders. In Excel, you can define a custom list (e.g., “High, Medium, Low”) and then sort by that list. Go to File > Options > Advanced > Edit Custom Lists.
  • Group items to avoid manual dragging. If you have many items, grouping them (e.g., by month or category) can reduce the need for manual sorting.
  • Use the field list to reorder fields. Dragging fields in the PivotTable Field List changes the hierarchy (e.g., which field is on top), which also affects the display order.

Troubleshooting

My manual order disappears after I refresh.

This is almost always because automatic sorting is still enabled. Right-click a label, go to Sort > More Sort Options (Excel) or the field settings (Google Sheets), and switch to Manual. Also, make sure you’re not using a “Sort by” option in the field settings.

I can’t drag items in Excel.

Ensure you’re hovering exactly over the cell border. If the cursor doesn’t change, click the cell first, then try again. Also, check that the pivot table isn’t protected (Review > Unprotect Sheet).

Dragging works but the order is not what I expect.

You might be dragging within a group or subtotal. Expand all groups first (right-click > Expand/Collapse > Expand Entire Field). Also, verify that you’re dragging the label, not the value.

Google Sheets won’t let me drag.

Click the row label cell, then drag it by the small dotted border that appears. If that doesn’t work, try using the “Sort by” drop-down in the pivot editor and choose “Manual”, then drag.

Manual sort works, but then a filter breaks it.

Filters can reorder items. After applying a filter, re-apply your manual order. To avoid this, use the “Sort by” option in the field settings to set a stable order.

Frequently Asked Questions

Can I manually sort values (not labels)?

No, values are sorted by their numeric order, not manually. You can sort by values using the right-click sort options, but you cannot drag individual value cells to a custom position.

Will my manual sort stay after I add new data?

If you have automatic sorting off, yes. New items are added at the end (or alphabetically if you later turn on sorting).

How do I sort by a custom list like “High, Medium, Low”?

In Excel, create a custom list in Options, then right-click the label > Sort > More Sort Options > choose the list under “Sort by”. In Google Sheets, you’d need to add a helper column with the desired order number and sort by that.

Why can’t I drag column labels?

You can, but make sure you’re clicking the column header cell (e.g., the field name at the top). Drag it left or right. If it doesn’t work, check that the pivot table isn’t in compact layout (Excel) – switch to outline or tabular layout.

Is there a way to sort multiple fields at once?

Yes, but not manually. Use the sort dialog to choose a primary and secondary sort key. Manual sorting only works for one field at a time.

Does manual sorting affect the underlying data?

No, it only changes the display order in the pivot table. The source data remains unchanged.