The quickest way to flip your axes
To swap the x and y axes in an Excel chart, right-click the chart, select Edit Data, then click Switch Row/Column in the Data group. This reverses which data appears on each axis — what was horizontal becomes vertical and vice versa. If you want to keep the axes as they are but just change the labels or scale, you'll use different tools depending on whether you're working with a bar chart, line chart, or scatter plot.
The method you choose depends on what you're trying to accomplish. Swapping axes is useful when your data is organized one way but you want to display it another. Changing labels or scales is useful when the chart layout is right but the numbers or text need adjustment.
Key Takeaways
- Switch Row/Column flips your entire chart so rows become columns and columns become rows, reversing which axis displays which data.
- To change only the axis labels without flipping the chart, double-click the axis itself and edit the label text in the Format Axis pane.
- The axis scale (the numbers or dates running along the bottom or side) can be adjusted by right-clicking the axis and choosing Format Axis.
- Different chart types handle axes differently — scatter plots and line charts let you control both axes independently, while pie charts have no axes at all.
Switching rows and columns in your chart
When you build a chart in Excel, the program assumes your first row or column contains the labels and the rest contains the data. Sometimes that assumption is backwards. The Switch Row/Column button fixes this in one click.
Click anywhere on the chart to select it. Go to the Chart Design tab at the top. In the Data group, click Switch Row/Column. Excel will redraw the chart with the axes flipped — data that was running left to right now runs top to bottom, and the labels swap positions.
This works for bar charts, column charts, line charts, and area charts. It does not work for pie charts or doughnut charts, which have no axes. If you switch and the chart looks worse, you can undo it with Ctrl+Z and try a different approach.
Changing axis labels without flipping the chart
Sometimes you want to keep the chart layout but change what the axes are called. Double-click the axis you want to edit — the numbers or text running along the bottom or left side of the chart. The Format Axis pane will open on the right.
Look for the Axis Options section. You'll see a field for the axis title. Type the new name you want. When you're done, click outside the chart and the label will update. This only changes the label text, not the data itself.
If there is no axis title showing at all, you may need to add one first. Click the chart, go to the Chart Design tab, click Add Chart Element, then Axis Titles, and choose which axis to label. Once the title box appears on your chart, you can double-click it to edit the text.
Adjusting the scale and numbers on an axis
The scale is the range of numbers or dates that run along an axis. By default, Excel picks a scale it thinks looks good. You can change it to zoom in, zoom out, or start at a different number.
Right-click the axis (the numbers themselves, not the label). Select Format Axis. In the pane that opens, look for Axis Options. You'll see fields for Minimum, Maximum, and Major Unit. Minimum is where the axis starts, Maximum is where it ends, and Major Unit is the gap between the tick marks. Change any of these to adjust the scale, then click outside the chart.
For example, if your axis runs from 0 to 100 but your data only goes up to 50, you could set the Maximum to 50 to make the chart use more of the space. Or if you want the tick marks to appear every 5 units instead of every 10, change the Major Unit. These adjustments help you focus on the range of data that matters most.
Flipping an axis without swapping data
Sometimes you want the axis to run backwards — for example, a vertical axis that counts down instead of up, or a horizontal axis that goes right to left instead of left to right. This is different from switching rows and columns.
Right-click the axis you want to flip. Select Format Axis. In the pane, look for Axis Options and check the box next to Categories in reverse order. The axis will immediately reverse direction. This works on any axis in any chart type and is useful when you want to match a specific presentation style or compare data in a different order.
Working with multiple axes in scatter and line charts
Scatter plots and line charts can have two different y-axes — one on the left and one on the right. This is useful when you're comparing two data series that have very different scales, like temperature and humidity on the same chart.
To add a second axis, right-click the data series you want to move (the line or set of points). Select Format Data Series. In the pane, look for Series Options and choose Secondary Axis. That series will now use the right-side axis instead of the left-side one, and Excel will add a new scale on the right.
You can format each axis independently. Right-click the left axis to change its scale, then right-click the right axis to change that one. This lets you show two different measurements on the same chart without one overwhelming the other. For instance, if one series ranges from 0 to 10 and another from 0 to 1000, a secondary axis prevents the smaller values from appearing flat.
Rotating axis labels for readability
When your axis labels are long — like product names or dates — they can overlap and become unreadable. You can rotate them to save space.
Right-click the axis labels (the text itself, not the numbers). Select Format Axis. In the pane, click the Text Options tab. Look for Text Direction or Rotation and choose an angle — 45 degrees is common for readability, or 90 degrees to run them vertically. Click outside the chart when you're done. Rotating labels is especially helpful when you have many categories or long names that would otherwise crowd the chart.
Frequently Asked Questions
Can I change which axis is which without switching rows and columns?
Not directly. Switch Row/Column is the only built-in way to swap axes. If you want a different layout, you may need to rearrange your source data before creating the chart, or delete the chart and create a new one with the data organized differently.
What if my chart has no axis labels at all?
Click the chart, go to Chart Design, click Add Chart Element, then Axis Titles, and select which axis to label. You can then type the label text. Some chart types like pie charts don't support axis labels because they have no axes.
How do I make the numbers on my axis show as percentages instead of decimals?
Right-click the axis numbers, select Format Axis, and look for the Number section in the pane. Change the Category to Percentage. The axis will recalculate and display as percentages automatically.
Can I have different scales on the left and right axes of the same chart?
Yes. Create a secondary axis by right-clicking a data series and choosing Secondary Axis. Then right-click each axis separately to set its own minimum, maximum, and major unit values.