How to Align Primary and Secondary Y-Axes at Zero in Excel Charts
Question details
The user needs to align specific reference points on a chart (such as a groundwater depth of zero on a secondary axis with an elevation of 136 on the primary axis).

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Creating a dual-axis chart where two different data scales need to synchronize at a specific baseline or zero mark.
- Observed behavior
- By default, primary and secondary axes scale independently based on their data ranges, causing baselines like zero to mismatch horizontally across the chart.
Ensure your dataset includes two distinct metric columns (e.g., Elevation and Depth) and that you have already inserted a chart with a secondary axis enabled.
Manually Set Minimum and Maximum Axis Bounds
By calculating and manually setting proportional minimum and maximum bounds for both axes, you can force their zero or specific baseline points to align perfectly.
Since Excel automatically calculates axis bounds based on the highest and lowest numbers in each data series, aligning specific values across two different axes requires manual adjustments.
To make a value like 136 on the primary axis match 0 on the secondary axis, you must set the minimum and maximum bounds so that the target values sit at the exact same percentage height on the chart.
Click to select the primary Y-axis on the left side of your chart, right-click it, and select 'Format Axis' from the context menu.
In the Format Axis pane under Axis Options, manually type your calculated values into the Minimum and Maximum fields (e.g., set Minimum to 124 and Maximum to 138).
Click to select the secondary Y-axis on the right side of the chart, right-click it, and select 'Format Axis'.
Enter the proportional minimum and maximum bounds in the Axis Options pane (e.g., set Minimum to -12 and Maximum to 1) until your zero value aligns visually with the primary target value.

Align Chart Axes Easily with WPS Spreadsheet
WPS Spreadsheet provides powerful charting tools fully compatible with Microsoft Excel. You can easily add secondary axes, customize axis bounds, and perfectly align your data points to create professional dual-axis charts.
- 1. Insert a Chart: Highlight your data series, go to the 'Insert' tab, and select a line or column chart to visualize the data.
- 2. Enable the Secondary Axis: Double-click the specific data series you want on the secondary axis, open the Series Options pane, and check 'Secondary Axis'.
- 3. Format Axis Bounds: Right-click each Y-axis, select 'Format Axis', and input your calculated minimum and maximum values to align the baselines accurately.

Frequently Asked Questions
Why don't my primary and secondary axes align at zero automatically?
By default, spreadsheet software automatically scales each axis based on the minimum and maximum values of its specific data series. Since the two series usually have different ranges, their zero baselines rarely match automatically.
Can I align chart axes without manually calculating the bounds?
Currently, standard spreadsheet tools require manual adjustment of axis bounds to force alignment. If your data updates frequently and changes ranges, you may need to use VBA macros to automate the boundary calculations.
How do I add a secondary axis to my chart?
Right-click the data series you want to plot on a separate scale, select 'Format Data Series', and under Series Options, select the radio button for 'Secondary Axis'.




