目录
Why add a second axis to Excel chart?
How to add a secondary axis in Excel
Adding a second Y axis to existing chart
How to add a secondary X axis in Excel
How to remove secondary axis in Excel
Practice workbook for download
首页 专题 excel 如何在Excel中添加次级轴:水平X或垂直Y

如何在Excel中添加次级轴:水平X或垂直Y

Mar 24, 2025 am 09:54 AM

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.

如何在Excel中添加次级轴:水平X或垂直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.

如何在Excel中添加次级轴:水平X或垂直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.

    如何在Excel中添加次级轴:水平X或垂直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.

如何在Excel中添加次级轴:水平X或垂直Y

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

如何在Excel中添加次级轴:水平X或垂直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.

如何在Excel中添加次级轴:水平X或垂直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.

    如何在Excel中添加次级轴:水平X或垂直Y

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

    如何在Excel中添加次级轴:水平X或垂直Y

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

    如何在Excel中添加次级轴:水平X或垂直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.

    如何在Excel中添加次级轴:水平X或垂直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.

    如何在Excel中添加次级轴:水平X或垂直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.

    如何在Excel中添加次级轴:水平X或垂直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…

    如何在Excel中添加次级轴:水平X或垂直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.

    如何在Excel中添加次级轴:水平X或垂直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.

    如何在Excel中添加次级轴:水平X或垂直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.

    如何在Excel中添加次级轴:水平X或垂直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.

    如何在Excel中添加次级轴:水平X或垂直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.

如何在Excel中添加次级轴:水平X或垂直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.

如何在Excel中添加次级轴:水平X或垂直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)

以上是如何在Excel中添加次级轴:水平X或垂直Y的详细内容。更多信息请关注PHP中文网其他相关文章!

本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

<🎜>:泡泡胶模拟器无穷大 - 如何获取和使用皇家钥匙
4 周前 By 尊渡假赌尊渡假赌尊渡假赌
北端:融合系统,解释
4 周前 By 尊渡假赌尊渡假赌尊渡假赌
Mandragora:巫婆树的耳语 - 如何解锁抓钩
3 周前 By 尊渡假赌尊渡假赌尊渡假赌

热工具

记事本++7.3.1

记事本++7.3.1

好用且免费的代码编辑器

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)

热门话题

Java教程
1670
14
CakePHP 教程
1428
52
Laravel 教程
1329
25
PHP教程
1274
29
C# 教程
1256
24