To create a graph with two X-axes (or more accurately, a secondary Y-axis to accommodate two different scales of data), you must use the "Combo Chart" feature or manually change the series axis settings. This allows you to plot two different data sets—such as monthly revenue in dollars and conversion rates in percentages—on the same chart without one line appearing flat because its values are significantly smaller than the other.
What You'll Need
- Microsoft Excel installed on a Windows or Mac computer.
- A dataset containing at least two different series of numerical data.
- A common category axis (such as dates, months, or product names) that applies to both data series.
Step-by-Step
- Organize Your Data: Ensure your data is arranged in a clean table. Place your shared X-axis labels (e.g., Jan, Feb, Mar) in the leftmost column. Place your first data series (the primary Y-axis data) in the second column and your second data series (the secondary Y-axis data) in the third column. Ensure there are no blank rows or columns within the data range.
- Insert Initial Chart: Highlight all the data, including the headers. Go to the Insert tab on the top ribbon. In the Charts group, select the Insert Column or Bar Chart icon and choose the first Clustered Column option. At this stage, if your two data series have wildly different scales, the smaller values will likely be invisible or look like a flat line at the bottom of the graph.
- Open the Change Chart Type Menu: Right-click anywhere on the chart area and select Change Chart Type... from the context menu. Alternatively, you can go to the Chart Design tab in the ribbon and click Change Chart Type.
- Select the Combo Option: In the dialog box that appears, look at the list of chart types on the left sidebar. Scroll to the bottom and select Combo. This is the specific tool designed for handling multiple axes.
- Assign the Secondary Axis: In the Choose the chart type and axis for your data series section at the bottom of the window, you will see a list of your data series. Next to the series that requires the different scale, check the box under the Secondary Axis column.
- Choose the Right Chart Type: While in the Combo menu, it is highly recommended to change the chart type for the secondary series. For example, if your primary axis is a Clustered Column, change the secondary series to a Line. This prevents the bars from overlapping and makes the graph much easier to read. Click OK.
- Label Your Axes: Now that you have two axes, you must label them so the viewer knows which side corresponds to which data. Click the chart to reveal the Chart Elements button (the green plus sign + on the top right of the chart in Windows). Check the box for Axis Titles.
- Edit the Titles: Click on the text boxes that appear on the left and right sides of the chart. Type the appropriate labels (e.g., "Revenue ($)" for the left axis and "Growth (%)" for the right axis).
- Format the Scales: If the axes do not start at zero or have awkward increments, right-click the axis numbers and select Format Axis.... In the Axis Options pane, you can manually set the Minimum and Maximum bounds to ensure the data is framed perfectly.
Common Mistakes
One of the most frequent errors is failing to change the chart type for the second series. If both series remain as "Clustered Columns," Excel will stack them or overlap them, making it nearly impossible to see the primary data. Always pair a Column chart with a Line chart when using a secondary axis.
Another common mistake is forgetting to label the secondary axis. Because the graph now has two different vertical scales, a viewer might assume the line graph is measured by the left axis, leading to a complete misinterpretation of the data. Always explicitly name both the primary and secondary Y-axes.
Users also often try to create a "second X-axis" (a horizontal axis at the top). While Excel allows for complex layouts, 99% of the time, what users actually need is a secondary Y-axis. Attempting to force a second horizontal axis usually requires complex data manipulation or third-party add-ins and often results in a chart that is confusing and non-standard.
Tips
To make your graph more professional, use contrasting colors for the two series. For example, use a muted blue for the columns and a vibrant orange for the line. This creates a visual link between the color of the data and the corresponding axis.
If you have more than two data series, you can still use the Combo chart. You can assign multiple series to the primary axis and one or two to the secondary axis. Just ensure that all series assigned to the same axis share a similar scale of magnitude.
Consider using a Line with Markers for your secondary axis. The markers make it easier to pinpoint the exact value on the secondary scale, especially when the line is fluctuating rapidly across the columns.
Troubleshooting
The secondary axis checkbox is missing: This usually happens if you have selected a chart type that does not support secondary axes, such as a Pie chart or a Treemap. Ensure you have selected a Column, Line, or Area chart before attempting to use the Combo settings.
The data still looks flat: If the line is still a flat line after enabling the secondary axis, check your data for errors. Ensure that the numbers are formatted as "Number" or "General" and not as "Text." If Excel sees the data as text, it cannot calculate a scale for the axis and will default to a zero-based flat line.
The axes are overlapping the labels: This occurs when your axis labels are too long. To fix this, right-click the axis, select Format Axis, and under Size & Properties, change the Text direction to "Rotate all text 270°" or "Stacked." This clears space and prevents the labels from crashing into the chart area.
The chart looks cluttered: If the gridlines from both axes are appearing, it can create a "mesh" effect that is distracting. Click on the gridlines and press the Delete key, or go to Chart Elements and uncheck Gridlines. A clean background makes the dual-axis relationship much clearer.
Frequently Asked Questions
Can I have two different X-axes (horizontal) in one Excel chart?
Excel does not natively support two independent horizontal X-axes in a single standard chart. The "2 X Axis" request is almost always solved by creating a secondary Y-axis (vertical), which allows two different data scales to share the same horizontal time or category axis.
Why does my line disappear when I add a secondary axis?
This typically happens if the secondary axis scale is set to an automatic range that is far away from your data points. Right-click the secondary axis, select Format Axis, and check the Minimum and Maximum bounds to ensure they encompass your data values.
Does this work in Excel for Web (Online)?
Yes, but the interface is slightly different. You can still use the Chart tab to change the chart type to a Combo chart and assign a secondary axis, though some of the advanced formatting options found in the desktop version may be limited.
How do I remove the secondary axis once I've added it?
Go back to Change Chart Type, select the Combo category, and uncheck the Secondary Axis box for the series in question. Click OK to return the data to the primary axis.
Can I use a secondary axis with a Scatter Plot?
Yes. Scatter plots are excellent for secondary axes because they plot coordinates. You can assign one set of X-Y coordinates to the primary axis and another set to the secondary axis, though this is more complex to set up than a standard Combo chart.