Excel often will not sort a PivotTable by values because the field is sorting by labels, sits under another row field, is grouped or filtered, or the source contains blanks or text where numbers belong. Miss the cause, and the order looks random while totals can mislead. This guide matches each symptom to the right fix, so you can sort the correct field by the correct values without guesswork.

What this sorting error means

What this sorting error means
An Excel pivot table menu shows sorting options and values

When a PivotTable will not sort by values, Excel is usually sorting a label field instead of the summarized number you want. Start by moving the target field into the Row area, then apply a Largest to Smallest or Smallest to Largest sort from that row label field.

A PivotTable can summarize data by average, sum, or count, and the sort usually depends on which field is active in the field list. If the field sits in the Values area only, Excel can calculate it but may not sort the visible labels as expected. Value field settings also control the calculation display.

Likely causes, ranked

The issue is often field placement. Manual sort overrides, old cache order, grouped fields, or source-data issues such as blanks and mixed text-number values can also stop Excel from reordering correctly. Multiple value fields can make Excel sort by the wrong summary unless the intended one is chosen.

Symptom Likely cause Check in Excel Fastest fix Needs refresh, repositioning, or rebuild?
Sort arrows appear, but the order does not change Manual sort is overriding the value sort Right-click row label > Sort > More Sort Options Choose Ascending or Descending and clear the manual order Refresh
Only labels move, not the summarized totals The target field is not in the Row area PivotTable Fields pane Drag the field from Values or Columns into Rows Field repositioning
Sort works once, then snaps back after refresh PivotTable cache kept the old order Refresh and reapply the sort Refresh the PivotTable, then sort again from the row label menu Refresh
Totals look right, but the wrong summary is used Multiple value fields are present Value Field Settings Select the correct value field and sort by that field Field repositioning
Average sorts differently from Sum Summarize Values By is set to a different calculation Value Field Settings > Summarize values by Switch between Sum, Count, or Average, then sort again None
Sort order breaks after grouping dates or items Grouped field is controlling the label order Ungroup command on the row field Remove grouping, then sort the base field Rebuild
New rows in source data do not affect order Source range is not a structured Excel table Source data range Convert the source to a table and refresh Refresh
Some items sort as text instead of numbers Text-number mismatch in the source Source cells and helper columns Convert values to numbers, then refresh Refresh
Sort skips rows or leaves blanks at the top Blank rows or blanks inside the source block Source data and filters Remove blank rows, fill missing records, refresh Refresh
Sort still misbehaves after every other fix PivotTable cache is stale or corrupted New PivotTable from same source Rebuild the PivotTable from the cleaned source Rebuild

Row labels and field placement

PivotTable value sorting generally works only when the target field is in the Row Labels area, not the Values area alone. The key point is simple: you sort the row labels by a summarized value field, rather than trying to sort the value cell itself. That is why moving fields between row and column areas changes what Excel can sort.

Say your sales rep names are in Rows and Sales is in Values. Sorting by largest to smallest changes the name order based on Sales. If Sales sits only in Values and Region sits in Rows, Excel may sort Region labels while leaving the Sales summary untouched.

  1. Open the field list. Click inside the PivotTable, then use the PivotTable Fields pane to inspect Row, Column, and Values placement. The field that should move must appear in Rows.
  2. Drag the target field. Drag the field you want ordered into the Row area if it is not already there. Keep the measure in Values so Excel can rank the rows against that measure.
  3. Apply a value sort. Right-click a row label, then choose Sort > More Sort Options. Pick Ascending or Descending by the relevant value field, then confirm the exact summary field name.

Why value field settings matter

Value Field Settings control how the PivotTable calculates the number that drives sorting. Excel can summarize by average, sum, or count, and it can also change the display with Show Values As. If the calculation is wrong, the sort can look wrong even when the labels are in the right place.

For example, a month-over-month comparison often needs the current month sorted by the change field, not by raw totals. If the PivotTable uses Count instead of Sum, the order can change in a way that feels wrong but is mathematically correct for the selected summary.

  1. Open value settings. Right-click the value field, then choose Value Field Settings. This is where Excel shows the current calculation and display mode.
  2. Check the summary. Review Summarize Values By and choose Sum, Count, or Average as needed. Average is often the reason a PivotTable sorts differently than expected.
  3. Reset display options. Inspect Show Values As and clear any percentage, running total, or difference view if you need a straight numeric sort. Then reapply the sort from the row label menu.

Multiple value fields need a direct choice

When more than one value field is present, Excel may sort by the wrong summary unless you pick the exact field in the sort dialog. This matters when one field shows Sales and another shows Quantity. The row order can change depending on which one Excel uses.

  1. Select the target summary. Right-click the row label, choose Sort > More Sort Options, and open the sort-by field selector. Pick the exact value field name, not just the first total shown.
  2. Remove the extra noise. Temporarily remove secondary value fields from the Values area if the sort still points to the wrong number. Then sort again and add the other field back after the order is correct.
  3. Confirm the label area. Make sure the field being ranked is still in Rows. If it moved to Columns, drag it back before retrying the sort.

Manual sort overrides

Manual sort can block automatic value sorting, especially after someone drags items into a custom order. If the PivotTable was ordered by hand, Excel may keep that order until you clear it and choose a true ascending or descending sort again.

A common first-time mistake is using a manual drag order on the row labels and then expecting largest to smallest to take over. It will not always do that without a fresh sort command.

  1. Open more sort options. Right-click the row label, then choose Sort > More Sort Options. This exposes the exact label-versus-value choice.
  2. Pick value sorting. Choose Ascending or Descending by the field you want. If Excel offers A to Z or Z to A, use them only when you are sorting the labels themselves, not the measure behind them.
  3. Clear custom order. If the result still sticks, remove the manual arrangement by reapplying the sort after refresh. That clears the old row order and lets the calculation control the layout.

Refresh and pivot cache issues

Refreshing matters when source data changes, but refresh does not always fix the sort by itself. The PivotTable cache can hold an old order, so Excel shows updated totals while keeping the former arrangement. That is why sorting can appear to ignore new data.

Blank rows, text-number inconsistencies, and helper columns in the source can also stop the cache from rebuilding the order you expect. If the source is a plain range, converting it to a structured Excel table helps keep the source boundaries stable.

  1. Refresh the PivotTable. Right-click inside the PivotTable and choose Refresh. If the source data changed, refreshing the PivotTable is usually the first cleanup step.
  2. Check the source block. Inspect the source range for blank rows, mixed text and number entries, and helper columns that alter the sort key. Fix those values in the source, then refresh again.
  3. Recreate if needed. If the order still sticks, build a new PivotTable from the cleaned Excel table source. A new cache often clears old sort behavior that refresh alone keeps alive.

Quick matrix for stubborn cases

This checklist helps match the symptom to the fix faster than repeating generic sort steps. Use the left column to identify what you see, then follow the setting named in the third column.

PivotTable sort matrix

PivotTable sort matrix
An Excel PivotTable interface shows fields, values, and a subtotal menu

Use this matrix when the same PivotTable keeps refusing to sort by values. It maps the visible failure to the most likely control that needs a change, and it tells you whether the next move is refresh, field repositioning, or rebuilding the PivotTable.

Failure Likely cause Excel setting to check Fastest fix Action type
Value sort option is missing The field is not in Rows PivotTable Fields pane Move the field into Rows Field repositioning
Sort order does not change Manual sort override Sort > More Sort Options Reapply Ascending or Descending by value Refresh
Totals sort by the wrong number Wrong value field selected Value Field Settings Choose the correct value field name Field repositioning
Average and sum disagree Summarize Values By mismatch Value Field Settings Switch to Sum, Count, or Average None
Sort resets after data changes Pivot cache keeps old order Refresh command Refresh, then sort again Refresh
Grouped dates sort oddly Grouping controls the label order Ungroup Remove grouping and sort the base field Rebuild
New rows are ignored Source range is not a table Source data range Convert to Excel table and refresh Refresh
Some values behave like text Text-number mismatch Source cells Convert text to numbers Refresh
Blanks sit at top or break order Blank rows in source Source range Remove blank rows and refresh Refresh
Nothing else fixes it Corrupted cache or layout conflict New PivotTable from same source Rebuild the PivotTable Rebuild

Still not working?

Still not working?
An Excel pivot table menu shows sorting options for values

If the PivotTable still will not sort correctly, rebuild it from a cleaned Excel table source. That is the next step when refresh, value field settings, and field placement have all been checked. A fresh PivotTable also clears old cache order that can survive repeated refreshes.

Use this sequence: clean the source data, convert the range to a table, create a new PivotTable, place the field in Rows, then choose the exact value field in More Sort Options. If the issue happens in a shared workbook or a file with multiple reports, compare the field list and source range to another PivotTable that sorts correctly.

Prevention is simple: keep source columns consistent, avoid blank rows inside the data block, and reapply the sort after any structural change to the PivotTable layout. That keeps the label order tied to the intended summarized field.

Keep reading

Frequently asked questions

Why can't I sort a pivot table

Most often, the field is in the wrong area or Excel is sorting the labels rather than the summarized values. Put the target field in Rows, then right-click a row label and choose Sort > More Sort Options. If the source changed, refresh first so the cache uses current data.

Why won't pivot table sort?

Manual sort, grouping, or a stale cache can block the change. Check the row field placement first, then inspect Value Field Settings and reapply the sort from the label menu. If the source has blank rows or mixed text and numbers, fix those values before trying again.

Why won't my pivot table sort correctly?

Incorrect sorting usually means Excel is using the wrong summary, such as Count instead of Sum, or a different value field than the one you want. Open Value Field Settings, confirm the calculation, then use More Sort Options to choose the exact value field name.

Why won't my Excel pivot table sort?

If the field is nested under another row field or placed in Columns, Excel may not offer the sort behavior you expect. Move it into Rows, then sort by the summarized field. When the order still does not move, refresh the PivotTable and clear any manual order.

Can't sort pivot table by values?

Yes, but only when the row labels are the field being ranked. The value itself does not sort the grid by itself. Right-click the row label, choose Sort > More Sort Options, and select the correct value field and direction.

Why won't pivot table sort by values?

The usual reasons are field placement, a manual sort override, or a source problem such as blank rows or text-number inconsistency. Check the row area first, then Value Field Settings, then refresh. If none of that helps, rebuild the PivotTable from the cleaned source table.