To reorder a stacked bar chart in Excel, you change the order of the data itself, not the chart: edit the row order in your worksheet (cut and paste rows, or sort them), or right-click the chart, choose Select Data, and move series up or down. Excel plots stacked bars in the order the rows or series appear in the source range, so the chart follows whatever order the data is in. Two different things get called "reordering," so decide first which one you mean: swapping the order of the stacked segments inside each bar (that is series order), or swapping the order of the bars themselves on the axis (that is category or row order). Everything below covers both, because the fix is different for each.
What You'll Need
- Excel on Windows or Mac, or Excel for the web. Menu labels can differ slightly by version, so if a wording below does not match exactly, look for the closest equivalent.
- A stacked bar chart (or stacked column chart) already built from a table, with the categories in one column and each stack segment in its own column.
- Ideally, your source data laid out with clean headers in row 1 and one row per category, with no blank rows inside the range. Blank rows are the most common cause of a chart that will not reorder as expected.
Step-by-Step
Part 1: Reorder the stacked segments (series order)
- Click once on the chart to select it. Small handles appear around the plot area.
- Right-click inside the chart and choose Select Data. On Mac, this is also in the chart's right-click menu.
- In the dialog, look at the Legend Entries (Series) list on the left. Each entry is one colored segment in your stacks.
- Select a series and use the up and down arrow buttons beside the list to move it. The top entry is drawn first, at the base of each bar, and later entries stack outward from there. Move a series to the top to push it to the bottom of every bar.
- Click OK. The chart redraws with the new stacking order.
- If the order still looks wrong, check the legend: the legend order and the visual stacking order are linked, and reading them together makes it obvious which series is where.
To reverse the whole stack in one move instead, right-click the chart, choose Format Data Series, and look for a Reverse order or similar checkbox depending on chart type and version. It is not available on every chart type, so if you do not see it, use the Select Data method above.
Part 2: Reorder the bars themselves (category order)
- Go to the worksheet holding your source data. This is the reliable method and works in every version.
- Select the entire row for the category you want to move, including its label and all its values.
- Cut it with Ctrl+X (Windows) or Cmd+X (Mac).
- Right-click the row where you want it to go and choose Insert Cut Cells. Do not paste over an existing row, or you will overwrite data. The chart updates as soon as the rows move.
- Alternatively, sort the table: click any cell in the label column, then use Data > Sort (or the A–Z / Z–A buttons on the Data tab) to sort alphabetically, by value, or by a custom list. Sorting is faster for many rows, but it rearranges the whole table, so make sure the table is contiguous with no blank rows or columns.
- If the bars are in reverse of what you want, there is a shortcut: right-click the category axis, choose Format Axis, and tick Categories in reverse order. Note this flips the axis, not the data; you may also need to set the value axis to cross at the maximum so the value labels stay at the bottom.
Part 3: When the chart ignores your data order
- Click the chart and check the highlighted range on the sheet. If the highlight skips rows or includes the wrong block, right-click the chart, choose Select Data, and fix the Chart data range.
- Check for blank rows or subtotal rows inside the range. Excel may treat these as gaps or extra categories. Delete or move them out of the range.
- Confirm the chart type is actually stacked. A clustered bar looks similar but has no stacking order to change. Select the chart and check the change chart type option.
Common Mistakes
- Editing the chart instead of the data. Reordering the legend, dragging labels, or moving a legend entry does not change the stack order. Only series order and row order do.
- Pasting instead of inserting. Pasting a cut row over an existing row wipes out that row's values. Always use Insert Cut Cells.
- Sorting only part of the table. If the table has blank rows or merged cells, Excel may sort only the top block and leave the rest behind, which scrambles category labels against values.
- Forgetting that stacked bars read bottom-up. The first series sits at the base of the bar. People often expect the first series to be on top, then conclude the reorder failed.
- Using reverse categories without fixing the value axis. The bars swap ends, but the value axis moves to the top and looks wrong until you adjust the crossing point.
Tips
- Keep the table layout fixed (labels in the left column, one series per column) so the chart range stays valid when you add or reorder rows.
- For a deliberate order that is not alphabetical (small to large, process steps, priority tiers), add a helper number column and sort by it, then hide the helper column if you prefer. Do not include it in the chart range.
- Use a table (Insert > Table) so that inserting rows and sorting keep a single continuous range and the chart keeps tracking it.
- If you reorder often, change the series order once in Select Data and leave the rows alone, rather than moving data around every time.
- After any reorder, check the legend and axis labels against the data, because one stale heading is easy to miss.
Troubleshooting
If that did not work, work through these checks in order. First, click the plotted bars and look at the formula bar: the SERIES formula shows which range drives each segment, so you can see whether the chart points to the range you think it does. Second, if Select Data shows fewer series than expected, your range may cut off a column; widen the chart data range. Third, if moving a series with the arrows does nothing, the chart may be a pivot chart: reorder the pivot fields instead (drag items in the Rows area or sort the field), because pivot charts ignore manual series moves until the pivot is refreshed. Fourth, if the chart keeps reverting after a refresh, the underlying query or table is re-sorting the data; fix the order at the source or add a sort key. Finally, if bars are missing rather than misordered, check for blank cells, text stored as numbers, or hidden rows in the range. Undo (Ctrl+Z / Cmd+Z) backs out any reorder you regret; it does not delete data, so it is safe to try.
Frequently Asked Questions
Why does my stacked bar chart not change when I reorder rows?
Most likely the chart's data range no longer matches the table, or the chart is a pivot chart tied to a pivot field order. Check the highlighted range on the sheet and confirm the chart is not linked to a pivot table.
Can I reorder the legend without changing the bars?
Not in a stacked chart. The legend follows series order, so moving a legend entry moves the segment too. In a clustered chart you have more freedom, but in stacked charts the two are linked.
How do I put the largest segment at the bottom of every bar?
Stacked bars are not sorted per bar; they use one fixed series order. Sort your categories by total value instead, or restructure the data so the segment you care about is the first series in Select Data.
What is the difference between reversing categories and reordering series?
Reversing categories flips which end of the axis the bars start from. Reordering series changes which segment sits at the base of each bar. They are independent, and you can use both at once.
Does reordering rows break my chart's formatting?
Usually not. Series colours follow the series, not the row position, so cut-and-insert of whole rows keeps colours attached to their series. Sorting a partly selected range is the exception and can move values without their labels.
Does this work in Excel for the web and on Mac?
Yes. Select Data, Format Data Series and Format Axis are available in Excel for the web and on Mac, though the wording and dialog layout can differ slightly by version. The row cut-and-insert method works identically everywhere.