banner



how to change axis in excel

Skip to content
How to Switch X and Y Axis in Excel

How to Switch X and Y Axis in Excel (without changing values)

Written by co-founder Kasper Langmann, Microsoft Office Specialist.

Knowing how to switch the x-axis and y-axis in Excel will save you a lot of trouble.

Microsoft Excel is powerful spreadsheet software that will let you store data and make calculations on it. You can then visualize the data using built-in charts and graphs .

However, there are times when you have to switch the value series of the chart's axes .

And if you don't know how, your only choice is to exchange the columns or values manually.

In this article, we'll show you how to switch x and y axes in Excel.

Kasper Langmann, Co-founder of Spreadsheeto

*This tutorial is for Excel 2019/Microsoft 365 (for Windows). Got a different version? No problem, you can still follow the exact same steps.

The X-Axis and Y-Axis

Most graphs and charts in Excel, except for pie charts , has an x and y axes where data in a column or row are plotted.

By definition, these axes (plural of axis) are the two perpendicular lines on a graph where the labels are put.

Kasper Langmann, Co-founder of Spreadsheeto

Here's an example of an Excel line chart that shows the X and Y axes:

pageviews line chart with x and y axes

The x-axis is the horizontal line where the months are named. The y-axis is the vertical line with the numbers.

Why switch the axes

There are times when you have to arrange the variables in the spreadsheet before making a chart out of them.

Like in the case of making a scatter plot . It's recommended that the independent variable should be on the left while the dependent variable should be on the right.

But of course, that's not general knowledge. So chances are, some people would have swapped them.

This is just one example of a scenario where knowing how to switch axes would come in handy.

Kasper Langmann, Co-founder of Spreadsheeto

In this tutorial, we'll borrow this data set from the scatter plot tutorial where the values in the left (B) and right column (C) isn't the recommended arrangement.

The chart still works. However, the "Pageviews" value series should be on the y-axis (horizontal line) while the "Sales" value series should be on the x-axis (vertical line).

Get your FREE exercise file

Before you start:

Throughout this guide, you need a data set to practice.

I've included one for you (for free).

Download it right below!

Download the FREE Exercise File

Download exercise file

How to switch the axes

If you don't know how to switch the axes, you would've deleted the chart and copy-pasted the contents of columns B and C to exchange the values.

There's a better way than that where you don't need to change any values.

First, right-click on either of the axes in the chart and click 'Select Data' from the options.

select data option after right-clicking an axis

A new window will open.

Click 'Edit' .

edit option on select data source window

Another window will open where you can exchange the values on both axes.

What you have to do is exchange the content of the 'Series X values' and 'Series Y values'.

You can use notepad and copy the values. Then, simply paste them on each form.

Kasper Langmann, Co-founder of Spreadsheeto

Your goal is to change the values from this:

Once you do that, the value series on the axes would be swapped.

switched axes

Notice that we didn't change any values on the spreadsheet data at all. All we did was customized the chart.

Wrapping things up…

Microsoft Excel's chart and graph features are so advanced that you can literally swap the series value on the axes without touching the original data on the spreadsheet.

If you got confused along the way, feel free to download the exercise file for this tutorial. That way, you can follow this guide step-by-step.

Kasper Langmann, Co-founder of Spreadsheeto
Kasper Langmann 2021-07-02T08:17:56+00:00

how to change axis in excel

Source: https://spreadsheeto.com/switch-axis/

Posted by: mcgaughcaut1994.blogspot.com

0 Response to "how to change axis in excel"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel