Creating a line graph with two Y axes (also known as a secondary axis) allows you to plot two different data series on a single chart even when they use completely different scales or units of measurement. For example, if you are tracking monthly revenue in thousands of dollars alongside a conversion rate percentage, a single Y axis would flatten the percentage line to a nearly invisible horizontal stroke at the bottom of the chart. By adding a secondary axis, you provide a second vertical scale on the right side of the graph, ensuring both data trends are clearly visible and comparable.
What You'll Need
- Microsoft Excel installed on your PC or Mac.
- A dataset organized in a table format with one column for your X-axis (usually time or categories) and at least two columns for your Y-axis values.
- Data that differs significantly in scale (e.g., one set ranging from 0-10 and another from 1,000-10,000).
Step-by-Step
- Organize Your Data: Ensure your data is in a clean table. Place your independent variable (the X-axis, such as dates, months, or years) in the leftmost column. Place your two dependent variables (the Y-axis data) in the columns to the right. Ensure there are no blank rows or columns within the data range to prevent gaps in your lines.
- Insert the Initial Chart: Highlight the entire data range, including the headers. Go to the Insert tab on the top ribbon. In the Charts group, click on the Insert Line or Area Chart icon and select the first 2-D Line option. Excel will generate a chart with both data series plotted against the primary Y axis on the left.
- Identify the Flattened Line: At this stage, if your data scales are vastly different, one of your lines will likely appear as a flat line near the bottom of the chart. This happens because Excel is forcing a high-value scale (e.g., 10,000) onto a low-value data point (e.g., 0.05).
- Select the Data Series: Right-click directly on the line that appears flat or is difficult to read. If the line is too flat to click easily, go to the Chart Format tab, click the dropdown menu in the Current Selection group (top left), and select the specific series name from the list.
- Open Format Data Series: After right-clicking the line, select Format Data Series... from the context menu. This will open a formatting pane on the right side of your screen.
- Enable the Secondary Axis: In the Format Data Series pane, look for the Series Options tab (represented by a small bar chart icon). Under the Plot Series On section, change the selection from Primary Axis to Secondary Axis. You will immediately see a second vertical axis appear on the right side of the chart, and the flat line will jump up to occupy the full vertical space.
- Label Your Axes: Because you now have two different scales, it is critical to label them so the viewer knows which line corresponds to which axis. Click the chart to reveal the Chart Elements button (the green plus sign + in the top right corner of the chart). Check the box for Axis Titles.
- Edit Title Text: Click on the newly appeared text boxes for the Primary Vertical Axis (left) and Secondary Vertical Axis (right). Type in the appropriate units, such as "Revenue (USD)" for the left and "Conversion Rate (%)" for the right.
- Customize Line Styles: To make the graph more readable, differentiate the lines further. Right-click a line, select Format Data Series, go to the Fill & Line (paint bucket) icon, and change the color or dash type of one of the lines.
Common Mistakes
One of the most frequent errors is failing to label the axes. When a graph has two Y axes, it is inherently more complex than a standard chart. If the labels are missing, the reader may mistakenly assume both lines are measured by the left axis, leading to a complete misinterpretation of the data. Always explicitly state the units for both the left and right sides.
Another common mistake is using a secondary axis when it isn't actually necessary. If your two data series are in the same unit (e.g., both are dollar amounts) and are within a similar range (e.g., one is 500 and the other is 700), using a secondary axis can be misleading. It can make a small difference look like a massive gap or vice versa. Only use a secondary axis when the units are different or the scales are so disparate that one line becomes invisible.
Users also often forget to check their data types. If your numbers are formatted as text, Excel may not plot them correctly, or it may treat the Y-axis as a categorical axis rather than a value axis. Ensure all your numerical data is formatted as Number, Currency, or Percentage before creating the chart.
Tips
To improve professional clarity, match the color of your axis text to the color of the corresponding line. For example, if your Revenue line is blue and your Conversion Rate line is orange, change the font color of the left Y-axis to blue and the right Y-axis to orange. This creates an immediate visual link for the viewer without them having to hunt for a legend.
If your lines overlap too much and create a "tangle," consider changing the chart type for one of the series. Instead of two lines, you can use a Combo Chart. Right-click the chart and select Change Chart Type.... Go to the Combo category at the bottom of the list. Here, you can set one series as a Clustered Column and the other as a Line, while still keeping the secondary axis checked for the line. This often makes the relationship between the two data sets much easier to digest.
For cleaner visuals, consider removing the gridlines if they become too cluttered with two different scales. You can do this by clicking the + button and unchecking Gridlines. This forces the viewer to rely on the trend of the lines rather than the exact intersection of grid points, which can be confusing when two different scales are overlapping.
Troubleshooting
The secondary axis isn't appearing: Ensure you have selected the specific data series (the line itself) and not the entire chart area. If you click the background, the Format Data Series options for the secondary axis will not appear. Use the Chart Format dropdown menu to select the series if you cannot click the line.
The lines are still overlapping or look wrong: Check the bounds of your axes. Right-click the Y-axis (left or right) and select Format Axis.... Under Axis Options, you can manually set the Minimum and Maximum bounds. Sometimes Excel's "Auto" setting chooses a range that makes the data look less dynamic than it actually is. Manually tightening these bounds can make the trends more apparent.
Data is missing from the chart: Verify that your data range was correctly selected during the initial Insert phase. If you added data to your table after creating the chart, the chart will not update automatically unless you are using an official Excel Table (Ctrl+T). To fix this, right-click the chart, choose Select Data..., and re-highlight the correct range of cells.
Frequently Asked Questions
Can I have three Y axes in one Excel chart?
No, Excel officially supports only a primary and a secondary Y axis. If you have three different scales, the best approach is to create two separate charts or normalize your data (convert all values to a percentage of their own maximum) so they can share a single axis.
Why does my line disappear when I add a secondary axis?
This usually happens if the new axis scale is set incorrectly or if the data series was accidentally deleted. Check the Select Data menu to ensure the series is still active and check the Format Axis settings to ensure the minimum and maximum values encompass your data points.
Does this work in Excel for Web?
Yes, the functionality exists in Excel for the Web, though the menu layout may differ slightly. You can still access the Format pane by right-clicking a data series and selecting the formatting options to enable the secondary axis.
How do I remove the secondary axis?
Select the data series associated with the secondary axis, open the Format Data Series pane, and under Plot Series On, switch the selection back to Primary Axis. The right-hand axis will disappear automatically.
Can I use a secondary axis with a Scatter Plot?
Yes, the process is identical for Scatter Plots. Right-click the data points of the series you wish to move and select Format Data Series, then choose Secondary Axis. This is particularly useful for scientific data with different units of measure.