search
HomeTopicsexcelHow to add secondary axis in Excel: horizontal X or vertical Y

In this article, we'll guide you through the steps of adding a second vertical (y) or horizontal (x) axis to an Excel chart.

In Excel graphs, you're used to having one horizontal and one vertical axis to display your information. But things can get a bit tricky when you're dealing with different types of values, like numbers and percentages, or when you want to compare two datasets that don't quite match up in terms of time or size. This is where a second axis comes into play. A secondary axis in Excel charts lets you plot two different sets of data on separate lines within the same graph, making it easier to understand the relationship between them.

Why add a second axis to Excel chart?

Adding a second axis to your Excel chart might sound a bit technical, but it's all about enhancing clarity and insight. Here are some good reasons to consider using a second axis:

  1. Different kinds of data. Imagine you're dealing with numbers and percentages at the same time. Putting them on one line can be confusing. With a second axis, you can distinctly showcase both datasets.
  2. Significant differences in numbers. When comparing values that have very different sizes, like sales and taxes, one dataset might overshadow the other. A second axis ensures each dataset has its own space to shine.
  3. Time jumps. Visualizing information across various timeframes on a single axis can lead to distorted representations. A second axis lets you accurately depict each dataset's timeline.
  4. Intricate correlations. Sometimes, data conceals hidden relationships. Adding a second axis might uncover interesting connections that weren't obvious before.
  5. Enhanced storytelling. In presentations, reports, or academic papers, a chart with a second axis helps convey intricate information more effectively, showcasing how different variables interact.

Let's delve into a real-life example that illustrates the advantages of using a second axis in Excel. Imagine you're visualizing production numbers and defect percentages each month in a manufacturing process. Below is a standard column chart displaying both datasets. The blue columns represent units produced, while the tiny orange columns next to them show defect percentages.

How to add secondary axis in Excel: horizontal X or vertical Y

Now, take a moment and try to discern the relationship between the production numbers and defect percentages. It's a bit puzzling, isn't it? The standard graph doesn't allow for effective comparison of data with differing scales.

The solution is to create a separate vertical axis for percentages, scaling from 0% to 4.5%. A secondary axis works best for a combo chart, so we switch the defect percentage data series to a line, while keeping production numbers as columns. That's all! With the secondary axis in action, the relationship between production and defects becomes much clearer.

How to add secondary axis in Excel: horizontal X or vertical Y

In essence, incorporating a second axis in an Excel chart isn't just about accommodating complex data - it's about enabling a clearer, more insightful representation of your information.

How to add a secondary axis in Excel

In older versions like Excel 2010, adding a second axis required a bunch of manipulations that could get a bit tricky. But luckily, in modern versions of Excel 2013 through 365, the process has become much easier and faster.

To add a second axis to your Excel chart, follow these steps:

  1. Pick your data. Select the data you want to plot, including column headers.
  2. Insert chart. On the Insert tab at the top, find the Charts group, and click on Recommended Charts.

    How to add secondary axis in Excel: horizontal X or vertical Y

  3. Use recommended charts. With a bit of luck, you might see a chart with a second axis right there among the recommendations on the left side of the Insert Chart dialog box. If you do, just pick it and click OK. You're all set. But if not, no worries - follow the next steps.
  4. Combo choice. If you don't see the right chart in the recommendations, stay in the same pop-up window, but move to the All Charts tab. On the left side, choose Combo.
  5. Combo setup. For one of your data series, pick Clustered Column, and for the other one, choose Line. Then - this is important - check the Secondary Axis box for the Line data series. Once you're set, hit OK.

How to add secondary axis in Excel: horizontal X or vertical Y

And guess what? You're all done! Your chart now has a second vertical y-axis.

How to add secondary axis in Excel: horizontal X or vertical Y

Tip. If you want to make your combo graph with a second axis even cooler, you can do more stuff like changing the chart title, adding axis titles, etc. For the detailed instructions, check out How to customize Excel graphs.

Adding a second Y axis to existing chart

In certain scenarios, it's quicker to add a second Y-axis to an existing chart than start a new one with two vertical axes from the ground up. Here's how you can do it:

  1. Select your chart. First, click anywhere within your graph to activate the Chart Tools tabs on the ribbon.
  2. Change chart type. On the Chart Design tab, which is now available, click the Change Chart Type button.
  3. Choose combo chart. In the dialog box that appears, select Combo in the left pane, and choose the Cluster Column - Line on Secondary Axis chart type.
  4. Adjust second axis (if needed). If your graph contains multiple data series, you have the flexibility to decide which one(s) to display on the secondary axis. Simply check the Secondary Axis box next to that specific series.
  5. Save changes. After making your selections, click OK to apply the changes and close the dialog box.

That's it! Your chart now has a second Y-axis, allowing you to effectively visualize different sets of data with varying scales or types.

How to add secondary axis in Excel: horizontal X or vertical Y

How to add a secondary X axis in Excel

Adding a second horizontal X axis in Excel can be handy when you want to show two different sets of data for different time ranges. Unlike the y-axis, Excel doesn't provide an automatic way to add a second x-axis. But don't be uneasy, we'll guide you through it step by step.

To add a second X axis to your Excel chart, these are the steps to perform:

  1. Start fresh. Begin by creating a new graph from scratch, without selecting any data in your worksheet. To do this, go to the Insert tab > Charts group and choose the Scatter with Straight Lines type.

    How to add secondary axis in Excel: horizontal X or vertical Y

  2. Select data. Right-click the blank graph you've created and then click Select Data…

    How to add secondary axis in Excel: horizontal X or vertical Y

  3. Add data source. In the dialog window that pops up, click Add.

    How to add secondary axis in Excel: horizontal X or vertical Y

  4. Define first data series. Start by giving your first data series a clear name, such as "Working." Next, select the X values for the horizontal line (A4:A15) and the Y values for the vertical line (C4:C15). As you do this, Excel will show a real-time preview of how your chart is taking shape. When you're satisfied with your choices, click OK to move forward.

    How to add secondary axis in Excel: horizontal X or vertical Y

  5. Define second data series. In a similar manner, add another data series. Let's name this one "Defects". Choose the X values in cells B4:B15 and the Y values in cells D4:D15.

    How to add secondary axis in Excel: horizontal X or vertical Y

  6. Close dialog. With both data series added, click OK to close the Select Data Source dialog box. Your chart might look a bit off at this point, but don't worry - we'll fix it shortly.

    How to add secondary axis in Excel: horizontal X or vertical Y

  7. Open Format Data Series pane. Double click the data series you want to plot on the second x axis to open the Format Data Series pane. Alternatively, click on the series to select it, then click the Chart Elements button (it's the plus sign next to the graph). After that, click the little arrow next to Axes and select More Options…

    How to add secondary axis in Excel: horizontal X or vertical Y

  8. Add secondary axis. In the Format Data Series pane that appears, go to the Series Options tab (the last one) and choose Secondary Axis.

    How to add secondary axis in Excel: horizontal X or vertical Y

  9. Tweak secondary axis. By default, Excel adds a second y-axis, but we want a second x-axis. To change this, click anywhere on the graph to activate the Chart Elements button and click on that button, then click the arrow next to Axes. Uncheck the Secondary Vertical box and check Secondary Horizontal. Both options are available to you at this moment since the secondary axis has already been added to the chart.

    How to add secondary axis in Excel: horizontal X or vertical Y

  10. Reverse order. Your chart's second x-axis might be in reverse order. To fix this, click on the upper vertical axis, go to the Format Axis pane, find Axis Options, and check the Values in reverse order box.

    How to add secondary axis in Excel: horizontal X or vertical Y

  11. Final touches. Lastly, make a few adjustments like setting suitable minimum and maximum bounds as well as major units for each axis to fine-tune your chart.

    How to add secondary axis in Excel: horizontal X or vertical Y

And there you go! You've successfully created an Excel chart with two x-axes that not only looks great but also effectively communicates your data.

How to add secondary axis in Excel: horizontal X or vertical Y

How to remove secondary axis in Excel

Removing a secondary axis in Excel is much simpler than adding it :) Here's how you can do it:

  • Delete key. Click on the secondary axis you want to remove to select it, and then press the Delete key on your keyboard.
  • Chart Elements menu. Alternatively, you can click the Chart Elements button, click the arrow next to Axis, and uncheck the Secondary axis box.

Either method will do the trick, and your chart will be back to a single axis.

How to add secondary axis in Excel: horizontal X or vertical Y

In summary, adding, adjusting, and removing secondary axes in Excel charts is like giving your data a special ability. Whether your data is mixed, varies in size, or has secrets you want to uncover, a second axis can help you convey the information with clarity and precision. Thank you for reading and happy charting!

Practice workbook for download

Adding a second axis in Excel - examples (.xlsx file)

The above is the detailed content of How to add secondary axis in Excel: horizontal X or vertical Y. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor