MS Office

Excel: Swap X-axis and Y-axis in charts

Excel: Swap X-axis and Y-axis in charts

When creating charts in Excel, it is possible to swap the X-axis and the Y-axis. This makes things easier because you don't have to create a second chart.

Swap X and Y axes – just press a button

Using the Microsoft Excel program, you can swap the X-axis and the Y-axis by performing the following actions.

  1. Select the diagram by left-clicking with the mouse. The new “Diagram Design” area should now appear in the menu ribbon.
  2. Now click on this tab and then on the “Swap Row/Column” button. This way you don't have to go through the hassle of converting columns into rows and rows into columns.
  3. If you press the tab several times, you can swap the rows and columns over and over again, but the color design will change as you switch. So first look at the diagram before switching (with blue columns only) to adjust the design if necessary.

After you change the view, the chart should look something like the second graphic.

About author

As a tech enthusiast and writer for votoh.com, I focus on providing practical solutions for common issues related to iOS, Android, Windows, macOS, Office, Smart TVs, software, games, and hardware. With a passion for simplifying technology, I aim to make complex topics accessible to everyone, offering tips and troubleshooting advice to help users navigate the digital world with ease.