How to Flip Axes in Excel: Step-by-Step Guide
In this article
To flip the axes on an Excel chart, right-click the chart and choose Select Data, then use Switch Row/Column to swap the series and category axes. For a scatter (XY) chart, click the chart, open the Chart Design tab, and click Switch Row/Column; if your X and Y values are in two columns, you may instead need to edit the series formula or re-plot the data with the columns reversed. This guide covers both methods, plus how to reverse the direction of an axis and how to fix common problems.
What You'll Need
- Microsoft Excel (desktop version for Windows or Mac; the web version has fewer chart options).
- A chart already created from your data, or data ready to chart.
- Basic familiarity with selecting chart elements and opening the right-click menu.
Menu labels can differ slightly by Excel version, device and region, so if you don't see an exact match, look for the closest equivalent.
Step-by-Step
Method 1: Swap the horizontal and vertical axes on a standard chart (column, bar, line)
- Click once on the chart to select it. The ribbon will show the Chart Design and Format tabs (in older versions, Design and Format).
- On the Chart Design tab, click Select Data. The Select Data Source dialog opens.
- In the dialog, look for the Switch Row/Column button near the middle. Click it. The preview in the dialog updates immediately.
- Click OK. The chart now plots the same values with the axes swapped: what was on the horizontal axis is now on the vertical axis, and vice versa.
If you don't see Select Data, right-click the chart and choose Select Data from the context menu. This works the same way.
Method 2: Flip axes on a scatter (XY) chart
- Click the scatter chart to select it.
- On the Chart Design tab, click Select Data.
- In the Select Data Source dialog, click Edit under Legend Entries (Series).
- In the Edit Series dialog, you'll see Series X values and Series Y values. Swap the cell ranges: put the range that was in X into Y, and the range that was in Y into X. Use the range selector buttons to the right of each field to reselect the cells.
- Click OK twice to close both dialogs. The chart now plots the swapped values.
Alternatively, if your data is in two columns, you can copy the data, paste it into a new area with the columns reversed, and create a new chart from that range. This is often faster than editing series formulas.
Method 3: Reverse the direction of an axis (flip the scale)
This is different from swapping axes: it flips the order of values along one axis, so the lowest value appears at the top or right instead of the bottom or left.
- Right-click the axis you want to reverse (the horizontal or vertical axis labels) and choose Format Axis.
- In the Format Axis pane, under Axis Options, find the Values in reverse order checkbox (for a value axis) or Categories in reverse order (for a category axis). Check it.
- Close the pane. The axis now runs in the opposite direction.
Note: reversing a value axis also moves the other axis to the opposite side of the chart by default. You can change where the axes cross under Horizontal axis crosses in the same pane if needed.
Common Mistakes
- Confusing “switch row/column” with “reverse order.” Switching swaps which data series is plotted on which axis; reversing flips the scale direction. They solve different problems.
- Editing the wrong series. In a scatter chart with multiple series, you must edit each series individually. Use the Edit button for each one.
- Selecting the chart area instead of the plot area. If Select Data is greyed out, click directly on the chart's plot area or a data point first.
- Forgetting that the web version of Excel has limited chart editing. The Switch Row/Column button may not be available in Excel for the web; use the desktop app for full control.
- Reversing an axis and then wondering why the other axis moved. This is normal behavior; adjust the axis crossing setting if you want the axes to stay in place.
Tips
- Before switching, note which series is which. After switching, the legend may also swap, so check that the chart still tells the right story.
- If your chart looks cluttered after switching, consider changing the chart type (for example, from column to bar) to make the new orientation easier to read.
- Use Select Data to add, remove or reorder series without recreating the chart.
- For scatter charts, keep your X values in one column and Y values in the next column to make swapping easier later.
- If you reverse a category axis, the category labels will also reverse order; this is expected.
Troubleshooting
The Switch Row/Column button is greyed out. This can happen if the chart is not selected, if the chart type doesn't support switching (some 3-D charts), or if you're using Excel for the web. Select the chart and try again; if it's still greyed out, switch to the desktop app.
The chart looks wrong after switching. Check that your data range includes all the series and categories you intended. Use Select Data to verify the ranges. If the chart still looks odd, undo (Ctrl+Z) and try again.
I can't find Format Axis. Right-click directly on the axis labels or tick marks, not on the chart area. If you still don't see it, double-click the axis to open the Format Axis pane.
The axis reversal didn't work as expected. Make sure you're editing the correct axis (horizontal vs. vertical). In a scatter chart, both axes are value axes, so the option is Values in reverse order for both.
My scatter chart has dates on the X axis and I want to swap. If the X axis is a date axis, switching may not work as expected. Convert the dates to serial numbers or use a line chart instead, or edit the series formulas manually as in Method 2.
Frequently Asked Questions
Can I flip axes in Excel for the web?
The web version has limited chart editing. You may not find Switch Row/Column or Format Axis options. For full control, open the file in the desktop version of Excel.
What's the difference between switching axes and reversing an axis?
Switching axes swaps the data plotted on the horizontal and vertical axes. Reversing an axis flips the order of values along that axis (e.g., highest to lowest instead of lowest to highest).
Why is my Switch Row/Column button not working?
It may be greyed out if the chart isn't selected, if the chart type doesn't support it (like some 3-D charts), or if you're using Excel for the web. Select the chart and try again, or use the desktop app.
Can I flip the axes of a chart that uses a PivotTable?
Yes. Right-click the PivotChart and choose Select Data, then click Switch Row/Column. The PivotChart will update accordingly.
How do I flip only the horizontal axis labels?
Right-click the horizontal axis, choose Format Axis, and under Axis Options, check Categories in reverse order (for a category axis) or Values in reverse order (for a value axis).
Does flipping axes change the underlying data?
No. Switching or reversing axes only changes how the chart displays the data; the worksheet data remains unchanged.