Excel Secondary Y Axis: Step-by-Step Guide
In this article
Adding a secondary y-axis in Excel allows you to plot two data series with vastly different scales on the same chart, such as revenue in millions and profit margin in percentages. This prevents one dataset from appearing flat or invisible due to scale disparity. To achieve this, you typically need a chart already created with at least two data series, where one series is selected to be moved to the secondary axis.
What You'll Need
- Microsoft Excel (Desktop version recommended for full feature access; web version has limited options)
- A dataset containing at least two columns of numerical data with significantly different ranges
- An existing chart (column, line, area, or scatter) plotting these datasets
Step-by-Step
- Select the Data Series: Click on the chart to activate it. Then, click specifically on the data series you want to move to the secondary axis. If clicking directly on the bars or lines is difficult, use the Chart Elements button (the plus sign next to the chart) > Series > [Series Name] to select it. Alternatively, go to the Format tab and use the Current Selection dropdown to pick the specific series.
- Open Format Data Series: Right-click on the selected data series and choose "Format Data Series..." from the context menu. A pane will open on the right side of the screen titled "Format Data Series."
- Assign to Secondary Axis: In the Format Data Series pane, look for the section labeled "Axis." Select the radio button that says "Secondary axis." The chart will immediately update, and the selected series will now align with a new vertical axis on the right side of the chart.
- Change Chart Type if Necessary: Often, mixing a column chart with a line chart improves readability. With the secondary axis series still selected, go to the Design tab (or Chart Design) and click "Change Chart Type." Choose a combo chart type, or manually change just that series to a Line or Scatter chart while keeping the primary series as Columns. Ensure the secondary series is checked for "Secondary Axis" in the combo chart dialog if using that method.
- Add Secondary Axis Title: To clarify what the right-side numbers represent, click the Chart Elements button (+) next to the chart. Check the box for "Axis Titles." Two title boxes will appear. Click the one on the right side (secondary axis) and type a descriptive label, such as "Profit Margin (%)" or "Temperature (°F)."
- Adjust Scale and Formatting: Right-click the secondary axis (the numbers on the right) and select "Format Axis." Here you can adjust minimum and maximum bounds, major units, and number formats to ensure the data displays clearly without overlapping the primary axis labels.
Common Mistakes
One frequent error is selecting the wrong data series when trying to apply the secondary axis. Always verify which series is highlighted before formatting. Another common issue is forgetting to add an axis title, which leaves viewers confused about what the right-hand numbers actually represent. Additionally, users often fail to change the chart type for the secondary series, resulting in a cluttered visual where bars overlap awkwardly. Finally, ensuring both axes start at zero or have logical intervals is crucial; mismatched scaling can distort trends and mislead the audience.
Tips
- Use Combo Charts: Instead of manually assigning axes, consider starting with a "Combo" chart type from the Insert menu. This allows you to assign each series to a primary or secondary axis during creation, saving steps later.
- Color Coding: Match the color of the secondary axis labels and gridlines to the data series plotted on them. This visual cue helps readers instantly connect the right-side numbers to the correct data points.
- Gridline Management: Turn off gridlines for the secondary axis if they clash with the primary axis gridlines. Go to Chart Elements > Gridlines and uncheck "Secondary Major Horizontal" to reduce visual noise.
- Legend Clarity: Update your legend to include the unit of measurement for each series, especially when using dual axes, to prevent ambiguity.
Troubleshooting
If the secondary axis does not appear after following the steps, check if the data series was correctly identified. Sometimes, empty cells or text values in the data range can cause Excel to ignore the series. Ensure your source data contains only numeric values for the axis assignment. If the axis appears but the scale looks wrong, right-click the secondary axis and choose "Reset to Default" to fix any manual formatting errors. On Mac versions of Excel, the interface may differ slightly; look for the "Chart Options" icon instead of the plus sign, and navigate to "Axes" to toggle the secondary axis visibility.
Frequently Asked Questions
Can I use a secondary x-axis?
No, standard Excel charts do not support a secondary horizontal (x) axis. You can only add a secondary vertical (y) axis. For complex time-series comparisons, consider creating separate charts or using a specialized add-in.
Why are my secondary axis labels overlapping?
This usually happens if the scale range is too narrow or the font size is too large. Try increasing the minimum and maximum bounds of the secondary axis in the Format Axis pane, or reduce the font size of the axis labels.
How do I remove a secondary axis?
Select the data series currently on the secondary axis, right-click, choose Format Data Series, and switch the setting back to "Primary axis." Once all series are on the primary axis, the secondary axis will disappear automatically.
Does this work in Excel Online?
Excel Online supports basic combo charts and secondary axes, but the customization options are more limited than the desktop version. For precise control over axis formatting and titles, the desktop application is recommended.