Chart & Visualization Issues

Fix Excel Chart Horizontal Axis Labels Changing When Using a Secondary Axis

Natalie TaylorNatalie Taylor Nov 3, 2026 870 views

Question details

Horizontal category labels on an Excel chart change unexpectedly when a data series is moved to a secondary axis.

How to Fix Excel Chart Horizontal Axis Labels Changing When Using a Secondary Axis
Product
Microsoft Excel 2016
Device & OS
not provided
Scenario
Adding a secondary axis to an existing chart to compare two different data series with contrasting values or scales.
Observed behavior
The category labels on the horizontal axis change, misalign, or revert to default numbers (1, 2, 3) immediately after applying the secondary axis to a series.
Before you start

Ensure that the data ranges for both your primary and secondary series share the exact same category labels in your source worksheet to prevent accidental misalignment.

Solution 1Recommended

Manually Reassign Secondary Axis Labels

Use this method to explicitly define the correct horizontal axis labels for the series plotted on the secondary axis.

When you move a series to a secondary axis, Excel sometimes generates a hidden secondary horizontal axis with default labels. Manually editing the data source for this specific series forces Excel to use your intended categories.

1
Open the Select Data dialog

Right-click anywhere on the chart area and select 'Select Data' from the context menu to open the Select Data Source dialog box.

2
Select the secondary series

In the left pane (Legend Entries), click on the name of the data series that you recently moved to the secondary axis.

3
Edit the horizontal labels

Click the 'Edit' button located in the right pane under 'Horizontal (Category) Axis Labels'.

4
Choose the correct label range

Highlight the correct range of cells in your worksheet that contains your category labels, then click 'OK' to apply them.

Manually Reassign Secondary Axis Labels
Label Alignment: Your primary and secondary series labels should now perfectly overlap and match.
Free Microsoft Office alternative

Experience Hassle-Free Charting with WPS Office

Tired of complex axis settings changing your chart labels unexpectedly? Try WPS Office. It provides an intuitive, user-friendly interface for creating professional charts, including dual-axis combo charts, without the layout headaches. Plus, it's fully compatible with your existing Excel workbooks.

Fully compatible with Microsoft Excel (.xlsx) file formatsIntuitive chart creation with automatic axis and label alignmentFree and lightweight alternative to heavy office suitesFamiliar UI ensures a seamless migration without a steep learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why do my Excel chart labels change when adding a secondary axis?

When a series is assigned to a secondary axis, Excel sometimes generates an independent secondary horizontal axis. If the new axis doesn't have an explicit label range assigned, it defaults to sequential numbers (1, 2, 3) or misaligns the existing categories.

How do I remove the top secondary horizontal axis from my Excel chart?

Click your chart, select the 'Chart Elements' (plus) icon, hover over 'Axes', click the right arrow, and uncheck 'Secondary Horizontal'. This will hide the top axis and force the chart to use the primary bottom axis.

Can I have different category labels for my primary and secondary axes?

Yes. You can enable the 'Secondary Horizontal' axis from the Chart Elements menu. Then, right-click the chart, choose 'Select Data', select your secondary series, and edit its 'Horizontal (Category) Axis Labels' to point to a different data range.