Dual Y Axis Excel: How to Create a Secondary Axis
In this article
A dual y-axis chart in Excel allows you to plot two different data series on the same graph when they have significantly different scales or units of measurement. For example, if you want to show monthly revenue in dollars (thousands) and the number of new customers (single digits) on the same chart, a single axis would make the customer line look like a flat line at the bottom. By adding a secondary axis, you create a second vertical scale on the right side of the chart, allowing both data sets to be visualized clearly.
What You'll Need
- Microsoft Excel (Desktop version for Windows or Mac).
- A data table containing at least two sets of numeric data that you wish to compare.
- A shared X-axis (such as dates, months, or categories) for both data sets.
Step-by-Step
- Highlight your data: Select the entire range of cells containing your labels and the two sets of data you want to chart.
- Insert the initial chart: Go to the Insert tab on the top ribbon. In the Charts group, select a Clustered Column or Line chart. At this stage, your data will appear on a single Y-axis, and the smaller data set will likely be difficult to see.
- Select the data series to move: Right-click on the bar or line that represents the data set you want to move to the secondary axis. If the data is too small to click, go to the Chart Design tab, click Select Data, and select the series name from the list.
- Format Data Series: Right-click the selected series and choose Format Data Series from the context menu. This will open a formatting pane on the right side of the screen.
- Assign the Secondary Axis: In the Format Data Series pane, under Series Options (the icon that looks like a small bar chart), select the radio button for Secondary Axis. You will now see a second vertical axis appear on the right side of the chart.
- Change the Chart Type (Optional but Recommended): Having two sets of bars often overlaps the data, making it hard to read. To fix this, right-click the secondary series again and select Change Series Chart Type.
- Create a Combo Chart: In the Change Chart Type dialog box, ensure you are on the Combo category (usually at the bottom of the list). Here, you can specifically assign one series as a Clustered Column and the other as a Line. Ensure the Secondary Axis checkbox is checked for the series that needs the separate scale. Click OK.
- Label the Axes: To avoid confusion, add titles to both axes. Go to Chart Design > Add Chart Element > Axis Titles. Select Primary Vertical and Secondary Vertical to name each axis according to its unit of measurement.
Common Mistakes
- Using the same chart type for both: Using two sets of columns often results in the secondary columns completely hiding the primary columns. Always use a "Combo" approach (e.g., Column and Line) for clarity.
- Forgetting to label the axes: Because there are now two different scales, viewers will not know which axis applies to which data set unless you explicitly add axis titles.
- Overcomplicating the data: Trying to add a third or fourth Y-axis is not natively supported in Excel. Adding too many series to a dual-axis chart can make the visual cluttered and misleading.
Tips
- Color Coordination: Match the color of your axis font to the color of the data series it represents. For example, if your revenue bars are blue and your customer line is orange, make the right-side axis text orange.
- Simplify Gridlines: If the horizontal gridlines from the primary axis clash with the secondary axis, you can remove them or change their color via Add Chart Element > Gridlines.
- Check for Scale Logic: Ensure that the scales are not misleading. Sometimes Excel automatically sets the secondary axis to a range that exaggerates a small trend; you can manually adjust the axis bounds by right-clicking the axis and selecting Format Axis.
Troubleshooting
If the chart does not look correct or the secondary axis is not appearing, try these steps:
- Check Data Types: Ensure your data is formatted as "Number" or "Currency" and not as "Text." If Excel sees the numbers as text, it cannot plot them on a numeric axis.
- Reset the Series: If you cannot find the series to right-click it, use the Format tab in the ribbon. In the far left dropdown menu (Current Selection), select the specific series by name, then open the Format Selection task pane.
- Refresh the Chart: If the axis labels are overlapping, try widening the chart area by clicking and dragging the corners of the chart box.
Frequently Asked Questions
Can I have three Y-axes in one Excel chart?
No, Excel natively supports only one primary and one secondary Y-axis. If you have three different scales, the best approach is to create multiple smaller charts (small multiples) side-by-side.
Why is my data disappearing when I select the secondary axis?
The data hasn't disappeared; it has likely shifted because the new scale is different. Check if the chart type changed to something that doesn't fit the data, or use the Change Chart Type menu to switch the secondary series to a Line chart.
How do I change the scale of the secondary axis?
Right-click the secondary axis (the numbers on the right), select Format Axis, and under Axis Options, manually enter the Minimum and Maximum bounds.
Does this work in Excel for Web?
Yes, though the menus may look slightly different. You can generally find these options by clicking the chart, going to the Chart tab, and looking for Format or Chart Type options.
When should I use a dual Y-axis instead of two separate charts?
Use a dual Y-axis when there is a direct correlation or relationship between the two data sets that you want to highlight visually, such as the relationship between advertising spend and sales volume.