How to Switch Axis in Excel (Switch X and Y Axis) (2024)

Sometimes, when you create a chart in Excel, you may want to switch the axis in the chart (i.e., interchange the X and the Y-axis)

It’s really easy, and in this short tutorial, I will show you how you can switch axes in Excel charts with a few clicks.

So let’s get started!

Table of Contents

Understanding Chart Axis in Excel Charts

If you create a chart (for example, a column or bar chart), you will get the X and the Y-axis.

The X-axis is the horizontal axis in the chart, and the Y-axis is the vertical axis. The intersection of the X and Y axes is called the origin, and it’s where the values start in the chart.

The relationship between the X and Y axes helps in identifying trends, patterns, and correlations in the data.

  • The X-axis typically represents the categories or the independent variable. It is the horizontal line running across the bottom of the chart. For example, it may have years or city names of product names.
  • The Y-axis represents the values or the dependent variable. It is the vertical line running up the side of the chart.

Let’s now see how to create a scatter chart, which will further make it clear what an axis is in an Excel chart.

For creating a chart, I will be using the below data set, which contains products in column A, Sales value in column B, and Quantity value in column C.

To create a chart, you need to follow the below steps:

  1. Select a range of values that you want to plot on the scatter chart (in this example, B1:C10)
  2. Go to the Insert tab in the ribbon.
  3. In the Charts group, click on the Scatter chart icon.
  4. From the drop-down, select the Scatter chart option (the first one)

As a result, you get the scatter chart as shown below (where I have highlighted the axis using the arrow).

How to Switch Axis in Excel (Switch X and Y Axis) (2)

This chart has the X-axis (horizontal) with values from the Sales column and the Y-axis (vertical) with values from the Quantity column.

When you create a chart in Excel, it automatically decides the range that needs to be shown on the axis.

Now that’s all good!

But what if I want a chart where Sales are on the Y-axis and Quantity on the X-axis? So, I want to flip the axes.

Thankfully, Excel allows you to easily switch the X and Y axes with a few clicks.

Let’s see how to switch the axes in Excel charts!

Also read: How to Add Axis Titles in Excel?

Switch the X and Y Axis in Excel Charts

Microsoft Excel allows you to switch the horizontal and vertical axis values in a chart without making any changes to the original data.

This is useful when you have already created and formatted the chart, and the only change you want to make is to swap the axes.

Let’s take the example of the same chart we created in the previous section (where the quantities are shown on the Y-axis and sales values are shown on the X-axis):

How to Switch Axis in Excel (Switch X and Y Axis) (3)

Now, if you want to display Sales values on the Y-axis and Quantity values on the X-axis, you need to switch the axis in the chart.

Below are the steps to switch axes in Excel:

  1. You need to right-click on one of the axes and choose Select Data. This way, you can also change the data source for the chart.
How to Switch Axis in Excel (Switch X and Y Axis) (4)
  1. In the ‘Select Data Source’ dialog box, you can see vertical values (Series), which is X axis (Quantity). Also, on the right side, there are horizontal values (Category), which is the Y axis (Sales). You have to click on the Edit on the left side in order to switch axes.
How to Switch Axis in Excel (Switch X and Y Axis) (5)
  1. In the pop-up window, you can see that Series X values refer to the range “=Sheet1!$B$2:$B$10”, and the Series Y values refer to the range “=Sheet1!$C$2:$C$10”.
How to Switch Axis in Excel (Switch X and Y Axis) (6)
  1. In order to switch values, you have to swap these two ranges, so that the range for series X becomes a range for series Y and vice versa. So, in Series X values, enter “=Sheet1!$C$2:$C$10”, and in Series Y values, enter “=Sheet1!$B$2:$B$10”.
How to Switch Axis in Excel (Switch X and Y Axis) (7)
  1. After you confirm changes, you will be redirected back to the Select Data Source window and click OK.

Finally, your chart has a switched axis. As you can see, Sales values are now on the Y-axis, and Quantity values are on the X-axis.

How to Switch Axis in Excel (Switch X and Y Axis) (8)
Also read: How to Add Secondary Axis in Excel Charts?

Rearrange the Data to Swap the Chart Axes

The above method works great when you have already created the chart and you want to swap the axis.

But if you haven’t created the chart already, one way could be to rearrange the data so that Excel picks up the data and plots it on the X and Y axis as per your needs.

Excel, by default, sets the first column of the data source on the X-axis and the second column on the Y-axis.

In this case, you can just move Quantity in column B and Sales in column C.

Switching the axis option in a chart gives you more flexibility for adjusting the chart axis. Also, this way, you don’t need to change any data in your sheet.

So, these are two simple and easy ways to switch X-axis and Y-axis in Excel charts.

While I have shown an example of a scatter chart in this tutorial, you can use the same steps to interchange axes in case of any chart in Excel.

Different types of charts utilize these axes differently. For example, in a line chart, both axes are crucial for understanding the trend, whereas in a pie chart, there’s no X or Y-axis as it represents parts of a whole.

Some Tips When Formatting Chart Axis

When you’re playing around with charts in Excel and decide to flip the axes, it’s super important to keep the chart easy to read.

Make sure those data labels are placed just right so everyone can understand them at a glance.

You’ll want to pick a font size and color that are easy on the eyes and work nicely together.

Oh, and adding a chart title and a legend can be a big help in making your data clear to others.

Also, think about what kind of data you’ve got and the best way to show it off – whether that’s with a bar, line, or scatter chart. Remember, the whole point of your chart is to make your information clear and engaging!

I hope you found this Excel tutorial useful!

Other Excel tutorials you may also like:

  • How to Move a Chart to a New Sheet in Excel
  • How to Insert an Excel file into MS Word (3 Easy Ways)
  • How to Create Bar of Pie Chart in Excel?
  • How to Insert Chart Title in Excel?
  • How to Add Border to a Chart in Excel?
  • How to Create a Waterfall Chart in Excel?
  • How to Make Box Plot (Box and Whisker Chart) in Excel?
How to Switch Axis in Excel (Switch X and Y Axis) (2024)

FAQs

How do I flip the x and y axis in Excel? ›

Click anywhere in the chart that contains the data series that you want to plot on different axes. This displays the Chart Tools, adding the Design, Layout, and Format tabs. On the Design tab, in the Data group, click Switch Row/Column.

How to interchange X-axis and y-axis in Excel? ›

Click "Switch Row/Column"

In the dialog box, locate the button in the center labeled "Switch Row/Column". Click on this button to swap the data that appears along the X and Y-axis. Use the preview window in the dialog box to ensure that the data transfers correctly and appears on the correct axis.

How do I switch between axis in Excel? ›

Click anywhere in the chart. This displays the Chart Tools, adding the Design and Format tabs. On the Format tab, in the Current Selection group, click the arrow in the Chart Elements box, and then click the axis that you want to select.

How do you shift the X and y-axis in Excel? ›

First, right-click on either of the axes in the chart and click 'Select Data' from the options. A new window will open. Click 'Edit'. Another window will open where you can exchange the values on both axes.

How to flip data in Excel? ›

Here's how you can transpose cell content:
  1. Copy the cell range.
  2. Select the empty cells where you want to paste the transposed data.
  3. On the Home tab, select the Paste icon, and select Paste Transpose.

How to switch the primary and secondary axis in Excel? ›

Add or remove a secondary axis in a chart in Excel
  1. Select a chart to open Chart Tools.
  2. Select Design > Change Chart Type.
  3. Select Combo > Cluster Column - Line on Secondary Axis.
  4. Select Secondary Axis for the data series you want to show.
  5. Select the drop-down arrow and choose Line.
  6. Select OK.

How do I move the horizontal axis in Excel? ›

Within the “Format Axis” window, you'll find an array of options to adjust the X-axis position. Look for settings such as “Axis Position,” “Horizontal Axis Crosses,” or “Axis Labels.” These settings enable you to shift the X-axis to your desired location.

How do you reverse the x-axis direction in Excel? ›

On the Format tab, in the Current Selection group, click Format Selection. In the Axis Options category, under Axis Options, select the Series in reverse order check box.

How do you flip over the x-axis? ›

The formula for reflection over the x-axis is to change the sign of the y-variable of the coordinate point. The point (x,y) is sent to (x,-y). For an equation, the output variable is multiplied by -1: y=f(x) becomes y=-f(x).

References

Top Articles
'PEN15' Is Back, And Girlhood Is Still Painfully Awkward
Pen15 Season 2 Ending Explained
Bj 사슴이 분수
Faridpur Govt. Girls' High School, Faridpur Test Examination—2023; English : Paper II
Team 1 Elite Club Invite
South Park Season 26 Kisscartoon
Here's how eating according to your blood type could help you keep healthy
Lesson 1 Homework 5.5 Answer Key
Which Is A Popular Southern Hemisphere Destination Microsoft Rewards
Call Follower Osrs
Tcu Jaggaer
Mlb Ballpark Pal
Current Time In Maryland
Money blog: Domino's withdraws popular dips; 'we got our dream £30k kitchen for £1,000'
Sky X App » downloaden & Vorteile entdecken | Sky X
50 Shades Darker Movie 123Movies
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Bank Of America Financial Center Irvington Photos
Libinick
Invitation Homes plans to spend $1 billion buying houses in an already overheated market. Here's its presentation to investors setting out its playbook.
Bekijk ons gevarieerde aanbod occasions in Oss.
Qual o significado log out?
Never Give Up Quotes to Keep You Going
Gran Turismo Showtimes Near Marcus Renaissance Cinema
Pain Out Maxx Kratom
Tinyzonehd
Login.castlebranch.com
Rs3 Bring Leela To The Tomb
Elijah Streams Videos
Mosley Lane Candles
Pfcu Chestnut Street
JD Power's top airlines in 2024, ranked - The Points Guy
Appraisalport Com Dashboard /# Orders
Space Marine 2 Error Code 4: Connection Lost [Solved]
Restored Republic December 9 2022
Natashas Bedroom - Slave Commands
Myql Loan Login
Kazwire
The best bagels in NYC, according to a New Yorker
Lake Kingdom Moon 31
Smite Builds Season 9
Eat Like A King Who's On A Budget Copypasta
Cch Staffnet
Aurora Southeast Recreation Center And Fieldhouse Reviews
Craigslist Sparta Nj
A Snowy Day In Oakland Showtimes Near Maya Pittsburg Cinemas
M Life Insider
Grandma's Portuguese Sweet Bread Recipe Made from Scratch
Bumgarner Funeral Home Troy Nc Obituaries
Att Corporate Store Location
Fetllife Com
Qvc Com Blogs
Latest Posts
Article information

Author: Mr. See Jast

Last Updated:

Views: 6400

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.