Excel does not have a single button that adds a second X axis, but you can build one in a few minutes by combining a line chart with a scatter chart on a secondary axis. The trick is simple: put your two series on separate axes by converting the second series into an XY (scatter) series and moving it to the secondary axis, then formatting that secondary axis so it looks like a normal bottom axis. This gives you two line series plotted against two different horizontal scales - for example, comparing a measurement taken at irregular dates with one taken at regular intervals, or two variables whose X ranges differ wildly (one from 0-10 and another from 0-10,000). You will need Excel on Windows or Mac desktop; the classic chart tools here are not all available in the browser version.
What You'll Need
- Microsoft Excel for Windows or Mac (desktop). Excel for the web supports basic charts but not the full secondary-axis and scatter-combination workflow described here.
- Two data series, each with its own X values and Y values, arranged in columns.
- X values that are evenly spaced or at least sorted in ascending order, so the axis labels read sensibly.
- A few minutes to clean up axis formatting at the end.
Step-by-Step
- Lay out your data in four columns. Put Series A's X values in column A, its Y values in column B, Series B's X values in column C and its Y values in column D. Add short headers in row 1. Keeping X and Y pairs side by side makes the next step much easier.
- Select all four columns (including headers) and insert a chart. Go to the Insert tab, click the line chart icon in the Charts group and choose the plain 2-D line with markers. A chart appears with both series, but Excel treats your X columns as if they were extra data series or plain categories, so the shape will be wrong. That is expected.
- Convert the second series to a scatter series. Right-click the chart, choose Change Chart Type, then pick the Combo tab at the top of the dialog. You will see each series listed with a chart type dropdown.
- Set the chart types in the Combo tab. Set Series A to Line and Series B to Scatter. Put a checkmark in the Secondary Axis box next to Series B only. Click OK. Series B now plots against a second set of axes, but its X values may still be wrong.
- Check that Series B is using the right X values. Right-click the Series B line, choose Select Data, select Series B in the list and click Edit. In the Series X values field, point to column C. In the Series Y values field, point to column D. Clear any leftover entries so only your intended range remains, then click OK. Repeat for Series A: its X values should come from column A and its Y values from column B.
- Make the secondary horizontal axis visible. Click the chart, then use the plus (+) button that appears at its top right (Chart Elements) and tick Axes. If the secondary X axis still does not appear, right-click the chart, choose Select Data, and confirm Series B is marked as being on the secondary axis. Alternatively, click the secondary vertical axis and look for the Axis Options pane to confirm the horizontal axis is set to show.
- Move the secondary horizontal axis to the bottom or top. Right-click the secondary horizontal axis and choose Format Axis. In the Axis Options pane, find the setting that controls where the axis crosses (labels such as "Axis crosses at" or "Crosses"). Set the secondary vertical axis to cross at the minimum value, so the secondary X axis sits at the bottom of the plot. If you prefer it at the top, choose the "Maximum axis value" option instead. Exact label wording varies slightly by Excel version and by Windows versus Mac.
- Format both axes to be readable. Right-click each X axis, choose Format Axis and set the Minimum, Maximum, Major unit and (if needed) Number format so the two scales are legible. Give each axis a title via Chart Elements > Axis Titles: one for the primary X axis, one for the secondary X axis. Use color to tie labels to series - for example, colour the secondary axis text to match Series B's line.
- Add legends and a chart title. Via Chart Elements, turn on Legend and Chart Title and rename each series so readers know which axis belongs to which line.
- Test with a known point. Pick one visible data point from each series and check that it sits at the correct height and horizontal position on its own axis. If a point is in the wrong place, the X range for that series is almost certainly pointing at the wrong column.
Common Mistakes
The most frequent problem is leaving the second series as a Line type. A line chart in Excel treats its X column as category labels, not numeric values, so the secondary axis will be evenly spaced regardless of the real X values. Converting that series to Scatter is what makes a true numeric second X axis possible. Another common slip is pointing the scatter series at the wrong X range - the chart technically works but the points are in the wrong place. A third is forgetting to tick the Secondary Axis box, which leaves both series squeezed onto one scale. Finally, many people set the secondary axis to cross at zero when their data starts well above zero, pushing the axis labels off the visible plot area; set the crossing point to the axis minimum instead.
Tips
Use Markers plus a connecting line for both series so the reader can see individual data points on each axis. Keep the number of gridlines modest: two sets of gridlines (one per axis) can look busy, so turn off gridlines for the secondary axis and rely on the axis labels. If your two X scales are similar in range, you probably do not need a second axis at all - a single axis with two line series is clearer. Label the axes with their units, and use matching line colours and axis text colours so it is obvious which scale goes with which series. If you need to leave the chart with someone else, add a short note in a cell beside it explaining that the top or right axis belongs to the second series.
Troubleshooting
The secondary X axis does not appear at all. Confirm the series really is on the secondary axis, and that the chart type is Scatter or Line with the secondary box ticked. Some combinations hide the axis until you enable Axes in Chart Elements.
The second series is plotted evenly spaced. That series is still a Line type. Switch it to Scatter in the Combo tab and re-point its X values.
The axis labels overlap or vanish. Increase the Major unit so fewer labels are drawn, reduce the font size, or rotate the labels via Format Axis > Size & Properties > Text direction.
Points are in the wrong place. Open Select Data and verify the exact cell ranges for each series; a shifted range by one row or column is the usual culprit.
Only one line is visible. One axis may have a scale far larger than the other, flattening the smaller series. Adjust Minimum and Maximum on each axis, or check that both series have data in the selected range.
If that did not work, rebuild the chart from scratch with a Scatter chart selected first (Insert > Scatter), then add the second series from Select Data and assign it to the secondary axis. Starting from scatter avoids the category-label behaviour of line charts entirely.
Frequently Asked Questions
Can I add a second X axis in Excel for the web?
Excel for the web supports basic combo charts but the full scatter-plus-secondary-axis combination and detailed axis formatting are limited. Use the desktop app for this workflow.
Do I need two Y axes too?
No. The method above gives you a secondary X axis automatically, and Excel also creates a secondary Y axis on the opposite side. You can hide the secondary Y axis if your Y units are the same for both series.
Why does my second series look like evenly spaced categories?
Because it is still a Line series. Line charts treat the X column as labels; switch the series to Scatter to use real numeric X values.
Can both series share one line colour scheme?
Yes, but do not - colour-code them so readers can match each line to its axis.
What if my X values are dates?
Scatter handles dates as numbers, so it works. Format the secondary X axis as a date via Format Axis > Number.
Will this work in Excel for Mac?
Yes, the Combo chart type and Format Axis options are present in recent Mac versions, though some labels are worded differently.