Excel’s secondary axis feature lets you plot two y-axes on the same chart to compare metrics with different scales or units, like revenue vs. profit margins or sales by region. This avoids confusion when one value grows much faster than the other, and it’s especially useful for financial reports, scientific data, or any scenario where data ranges differ significantly. Before you start, ensure your data is clean—no blanks, consistent units, and properly formatted as numbers or percentages.
What You'll Need
- A Microsoft Excel file (2016 or later; newer versions handle secondary axes better).
- Two data series where one may span a much larger range than the other (e.g., sales vs. cost percent).
- At least one chart type that supports dual axes: line, column, bar, or area charts (avoid pie charts).
- Basic familiarity with Excel’s ribbon interface.
Step-by-Step
- Prepare your data:
- Copy both data series into separate columns or rows (e.g., Column A for primary data, Column B for secondary). Ensure all values are numeric—no text or mixed types. If one axis uses percentages, keep 2 decimal places for consistency.
- Label your axes clearly. For example, if comparing "units sold" (primary) and "profit per unit" (secondary), label the primary y-axis "Units Sold" and the secondary "Profit ($/Unit)."
- Insert a new chart:
- Select the data range (including headers) that covers both series. For example, if your headers are in A1–B1 and data runs A2:B20, click and drag to highlight A1:B20.
- Go to Insert > Chart (ribbon). Choose a line, column, bar, or area chart. Avoid pie charts—they cannot use secondary axes.
- If a legend appears, click its Edit Legend icon (paintbrush) to customize labels (optional).
- Modify the chart to use secondary axes:
- With the chart selected, right-click any y-axis label > Axis Titles > Primary Vertical Axis or Secondary Vertical Axis (depending on your series).
- In the Chart Design tab, click Axis Titles > Add a Second Axis. Excel will prompt you to select the data series for the secondary axis.
- Choose the secondary data series (e.g., Column B) and click OK.
- Excel will adjust the chart automatically, positioning the secondary axis to the right of the primary.
- Customize the secondary axis:
- Right-click the secondary y-axis > Axis Options > Category (Series) (if applicable) or Values to adjust tick marks, labels, or range.
- For example, if your secondary axis starts at 0 but your data never reaches that value, uncheck Start at zero or adjust the minimum value.
- Label the secondary axis clearly (e.g., "Profit Margin (%)") in the Chart Design tab under Axis Titles.
- Right-click the secondary y-axis > Axis Options > Category (Series) (if applicable) or Values to adjust tick marks, labels, or range.
- Fine-tune the chart:
- Move the secondary axis to the right by selecting it and dragging it horizontally. To keep it aligned, check Show Axis Across Sheets in the Design tab if needed.
- Adjust gridlines (optional): Right-click the secondary axis > Gridlines > Show Gridlines (turn off if cluttered).
- Add data labels: Right-click a data point > Data Label > Edit to customize formats (e.g., "$12,000") if both axes use dollars.
Common Mistakes
- Data type errors: Mixing numbers and text in your data (e.g., writing "10%" as text) will break the chart. Ensure all values are numeric—Excel will prompt you to convert text to numbers if needed.
- Improper axis labels: Primary and secondary axes may overlap if labels aren’t distinct. Use contrasting colors (if allowed) or space the axes farther apart in the design options.
- Misaligned data ranges: If your secondary data series doesn’t start at the same row as the primary, Excel may misalign the axes. Verify your selected range includes all headers.
- Ignoring axis limits: If your secondary axis starts at zero but your data never reaches zero, Excel will clip values. Adjust the minimum value in Axis Options to reflect your actual data range.
- Using pie charts: They cannot support secondary axes. Stick to line, column, or bar charts for dual-axis displays.
Tips
- Start with a line chart: Secondary axes work best with line charts for trends or area charts for stacked comparisons. Column/bar charts may appear cluttered if plotted side by side.
- Use consistent units: If one axis measures dollars and the other percentages, Excel may auto-scale them poorly. Set both to the same unit (e.g., both in percentage terms) or adjust axis ranges manually.
- Label axes clearly: For example, "Revenue ($)" on the primary y-axis and "Growth Rate (%)" on the secondary. Avoid abbreviations unless universally understood.
- Check for hidden data: If the secondary axis doesn’t appear, ensure you’ve selected the correct data series in the Edit Axis dialog (right-click axis > Format Axis).
- Save as .xlsx: To preserve chart formatting, save your file with the extension .xlsx instead of .xls. Older versions may not handle secondary axes well.
Troubleshooting
If your chart fails to display a secondary axis, try these steps:
- Verify data selection: Double-check that your mouse cursor turns into a crosshair when hovering over both data series. If only one series is highlighted, adjust your selection range to include both.
- Right-click the chart > Add Axis (not "Edit Axis"):
- Some versions of Excel require you to right-click the chart area > Add Axis > Secondary Vertical Axis > choose your series and click OK.
- If prompted, click Yes to reconfigure the chart.
- Reset chart formatting:
- Select the chart > Design > Select Objects > Chart Area > Right-click > Reset to Defaults.
- Then reapply the secondary axis as in Step 1 above.
- Recreate the chart:
- Delete the existing chart (select it > right-click > Delete).
- Insert a new chart from scratch (as in Step 2), then reapply the secondary axis.
- Update Excel: Older versions may have bugs. Go to File > Office Account > Update Options > Update Now.
- Check for Excel corruption: Save a backup file and try creating a new chart in a fresh workbook.
If none of these work, the issue may lie with your data. Export both series to a new Excel file and recreate the chart—sometimes hidden formatting (e.g., merged cells or cell styles) interferes with axis creation.
Frequently Asked Questions
Why won’t my secondary axis appear?
Your data may not be selected correctly. Ensure both series are highlighted (crosshair cursor) when you click Add Axis. If you’re using a column/bar chart, the secondary axis will appear on the right only if you’ve chosen the correct series in the Edit Axis dialog.
Can I use a secondary axis with a pie chart?
No, pie charts cannot support secondary axes because they don’t have a distinct primary/secondary y-axis. Stick to line, column, or area charts instead.
How do I adjust the tick marks on the secondary axis?
Right-click the secondary y-axis > Axis Options > Category (Series) (if discrete values) or Values. Click Edit Range to set custom tick marks or adjust spacing.
My chart looks messy with the secondary axis. How do I fix it?
Move the secondary axis to the right by selecting it > drag horizontally. To prevent overlap, increase the chart’s width (select the chart > right-click > Resize > Chart Area). Disable gridlines if cluttered.
Is there a way to hide the primary axis entirely?
Yes, right-click the primary y-axis > Axis Options > Primary Vertical Axis > Hidden. This can help if the secondary axis dominates the plot.
Can I export a chart with a secondary axis from Excel?
Yes, save your file as .xlsx (not .xls) to preserve chart formatting. Export as PDF or PNG from File > Print > Save as Picture or use Print > Export > Save as Image.