Creating a scatter chart with two Y axes (also known as a dual-axis or secondary axis chart) allows you to plot two different data series that have vastly different scales or units of measurement on a single graph. For example, if you are tracking temperature in degrees and pressure in pascals over time, the pressure numbers will be so large that the temperature line would appear as a flat line at the bottom of the chart. By adding a secondary Y axis, you give each data set its own scale, making both trends visible and comparable.
What You'll Need
- Microsoft Excel (Desktop version recommended for full formatting options).
- A dataset containing one common X-axis variable (e.g., Time, Date, or Distance) and at least two different Y-axis variables.
- Data organized in columns, where the X-axis data is in the leftmost column.
Step-by-Step
- Organize Your Data: Ensure your data is in a clean table format. Place your independent variable (the X-axis) in the first column. Place your first dependent variable (Y1) in the second column and your second dependent variable (Y2) in the third column. This structure ensures Excel recognizes the X-axis correctly when you first insert the chart.
- Insert the Initial Scatter Chart: Highlight all three columns of data, including the headers. Go to the Insert tab on the top ribbon. In the Charts group, click the Insert Scatter (X, Y) or Bubble Chart icon. Select the Scatter with Straight Lines and Markers or Scatter with Smooth Lines and Markers option. At this stage, Excel will plot both Y series against the single X axis using one Y axis on the left. If your scales are very different, one series will likely look like a flat line.
- Select the Data Series for the Second Axis: You now need to tell Excel which data series should move to the right-hand side. Click directly on the data points or the line of the series that you want to move. If the series is a flat line and hard to click, 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.
- Format the Data Series: With the series selected, right-click on the data points and select Format Data Series... from the context menu. This will open the Format Data Series pane on the right side of your screen.
- Enable the Secondary Axis: In the Format Data Series pane, under the Series Options tab (represented by a small bar chart icon), look for the Plot Series On section. Select the radio button for Secondary Axis. You will immediately see a second vertical axis appear on the right side of the chart.
- Label Your Axes: Because you now have two different scales, the chart is confusing without labels. Click on the chart to reveal the Chart Elements button (the green plus sign + at the top right of the chart). Check the box for Axis Titles. This will add placeholder text to the X axis, the primary Y axis (left), and the secondary Y axis (right). Click each placeholder and type the appropriate unit of measurement (e.g., "Temperature (°C)" on the left and "Pressure (Pa)" on the right).
- Adjust Axis Scales (Optional): If the data points are too clustered, you can manually set the bounds. Right-click the primary Y axis (left) and select Format Axis.... Under Axis Options, you can change the Minimum and Maximum bounds to zoom in on the relevant data. Repeat this process for the secondary Y axis (right) to ensure both series are visually balanced.
- Add a Legend: To ensure the viewer knows which axis belongs to which line, go back to the Chart Elements (+) menu and check the Legend box. You can move the legend to the bottom or top of the chart for better visibility.
Common Mistakes
One of the most frequent errors is selecting a Line Chart instead of a Scatter Chart. In Excel, a Line Chart treats the X-axis as categorical labels (text), meaning it spaces the points equally regardless of the actual numerical value. A Scatter Chart treats the X-axis as a value scale. If your X-axis consists of irregular time intervals or specific numbers, a Line Chart will distort your data. Always choose Scatter.
Another common mistake is forgetting to label the secondary axis. When a viewer sees two vertical scales, they may not instinctively know which line corresponds to which side. Without clear axis titles, the chart is misleading. Always use the Axis Titles feature to explicitly name both the left and right scales.
Users also frequently struggle with "invisible" data. When the scale difference is extreme (e.g., one value is 0.1 and the other is 1,000,000), the smaller series is effectively a flat line on the zero mark. Many users assume the data didn't plot correctly and try to re-insert the chart multiple times. The solution is not to re-insert, but to move that specific series to the secondary axis as described in the steps above.
Tips
Color Coordination: To make your chart more intuitive, match the color of the axis text to the color of the corresponding data line. For example, if the temperature line is blue, right-click the left Y-axis, go to Font, and change the color to blue. If the pressure line is red, change the right Y-axis text to red. This creates a visual link that removes the need for the user to constantly check the legend.
Using Different Marker Styles: If you are printing the chart in black and white, colors won't help. In the Format Data Series pane, go to Fill & Line (the paint bucket icon), click Marker, and change the Marker Options. Use circles for the primary axis and squares or triangles for the secondary axis to maintain clarity.
Smoothing Lines: For scientific data that represents a continuous trend, you can make the lines look more professional. In the Fill & Line menu, check the Smoothed line box at the bottom. Use this sparingly, as it can sometimes imply data points that don't actually exist between your measured intervals.
Troubleshooting
If the Secondary Axis doesn't appear: Double-check that you have selected a Scatter chart and not a Column or Area chart. While secondary axes work for those, the interaction behaves differently. Also, ensure you have actually clicked on the data series itself before looking for the Format Data Series menu. If you click the chart background, the secondary axis option will not be available.
If the X-axis looks wrong: If your X-axis is showing numbers like 1, 2, 3, 4 instead of your actual dates or values, Excel has likely ignored your first column and treated it as a label. To fix this, right-click the chart, choose Select Data.... In the Legend Entries (Series) box, select your series and click Edit. Clear the Series X values box and then re-select the range of cells containing your X-axis data. Click OK.
If the lines are overlapping and confusing: Try changing the chart type for one of the series. Right-click the series on the secondary axis and select Change Series Chart Type.... In the Combo menu that appears, you can keep the primary series as a Scatter with Lines and change the secondary series to just Scatter (markers only). This prevents lines from crossing and creating a "web" effect that is hard to read.
Frequently Asked Questions
Can I have more than two Y axes in one Excel chart?
No, Excel natively supports only one primary Y axis (left) and one secondary Y axis (right). If you have three or more variables with different scales, you should create multiple separate charts or normalize your data (convert them to percentages or Z-scores) so they can share a single axis.
Why is my secondary axis scale different from my primary axis?
That is the purpose of the secondary axis. Excel automatically calculates the minimum and maximum values for each series independently. This allows a series with values from 0 to 1 to be plotted alongside a series with values from 0 to 1,000 without the smaller series disappearing.
How do I remove the secondary axis once I've added it?
Select the data series that is currently on the secondary axis. Open the Format Data Series pane, go to Series Options, and switch the selection from Secondary Axis back to Primary Axis. The right-hand axis will disappear automatically.
Does this work on Excel for Mac?
Yes, the process is nearly identical on Mac. The menu labels may vary slightly (e.g., the Chart Elements plus sign might be found under the Chart Design tab instead), but the logic of selecting the series and choosing Secondary Axis in the format pane remains the same.
Can I use a secondary axis with a 3D chart?
No, secondary axes are not supported in 3D chart types in Excel. To use a dual-axis setup, you must use 2D chart types such as Scatter, Line, or Column charts.