To make a bar graph with two y-axes in Excel, you first create a standard bar chart with one data series, then add the second series and change it to a line chart on a secondary axis. This lets you compare two data sets with very different scales—like revenue and profit margin, or temperature and rainfall—on the same chart. The steps below work for Excel 2016 and later, including Microsoft 365. Menu labels can differ slightly by version, but the core process is the same.

What You'll Need

  • Excel (desktop version; the steps differ slightly in Excel for the web)
  • Your data arranged in columns: one column for categories (e.g., months, product names), and at least two columns of numeric values.

Step-by-Step

  1. Prepare your data. Put your categories in the first column (for example, A1:A12 for months). Put the first numeric series in the second column (B1:B12) and the second numeric series in the third column (C1:C12). Include headers in row 1—Excel uses them for the legend and axis labels.
  2. Select the data. Click and drag to select all cells from A1 to C12 (or your range). If your data has blank rows or columns, select only the contiguous block.
  3. Insert a clustered bar chart. Go to the Insert tab on the ribbon. In the Charts group, click the Bar Chart icon (it looks like a small bar chart). Choose the first option, Clustered Bar. Excel will create a bar chart with both series as bars.
  4. Open the Select Data Source dialog. Click on the chart to select it. Then go to the Chart Design tab (or right-click the chart and choose Select Data). In the dialog, you’ll see the legend entries (series) on the left. You need to add the second series if it’s not already there—usually it is, but if not, click Add and select the range for the second series.
  5. Change the second series to a line. Right-click on one of the bars that represents the second series (the one you want on the secondary axis). From the context menu, choose Change Series Chart Type. In the dialog, find the second series and change its chart type from Clustered Bar to Line. Click OK. Now you have a bar chart with a line overlay, but both still use the same y-axis.
  6. Move the line to a secondary axis. Right-click on the line (the second series) and choose Format Data Series. In the pane that opens, look for Series Options (the paint bucket icon). Under Plot Series On, select Secondary Axis. Excel will add a second y-axis on the right side of the chart, and the line will scale to that axis.
  7. Adjust the axes. Right-click on either axis and choose Format Axis to set minimum/maximum values, number formats, or units. For example, if the secondary axis values are percentages, you can set the number format to percentage.
  8. Customize the chart. Add a chart title by clicking the chart and typing in the title box. Add axis titles by clicking the + button next to the chart (or the Chart Elements button) and checking Axis Titles. You can also change colors, fonts, and gridlines from the Chart Design and Format tabs.
  9. Save your work. Press Ctrl+S (or Cmd+S on Mac) to save the file.

Common Mistakes

  • Selecting the wrong data range. If you include extra blank rows, the chart may show empty categories. Double-check your selection before inserting the chart.
  • Forgetting to change the second series to a line. If you skip step 5, you’ll have two sets of bars, and the secondary axis won’t be available for a bar series (Excel only allows a secondary axis for certain chart types like line, column, and area).
  • Choosing the wrong chart type. A stacked bar chart won’t work the same way. Use Clustered Bar.
  • Misinterpreting the axes. Make sure the primary axis (left) corresponds to the bars and the secondary axis (right) to the line. If you accidentally swap them, your data will be misleading.
  • Not formatting the secondary axis. If the secondary axis has a different scale, the line might appear flat or overly steep. Adjust the minimum and maximum values to make the line readable.

Tips

  • Use a line for the secondary series. A bar-on-bar chart with two axes is confusing; a line is easier to read.
  • Label the axes clearly. Add axis titles like “Revenue ($)” and “Profit Margin (%)” so readers know which axis is which.
  • Color-code the series. Make the bars one color and the line another, and add a legend to match.
  • Consider a combo chart. Excel’s Combo Chart (Insert > Combo Chart) can do this in one step: choose Clustered Column for the first series and Line for the second, then check Secondary Axis for the line. This is often faster than the manual method.
  • Keep the secondary axis scale reasonable. If the line’s values are much smaller than the bars, the line will hug the bottom. Set the secondary axis minimum to 0 or a value close to your data’s minimum.

Troubleshooting

I don’t see the “Secondary Axis” option. This option only appears when the selected series is a line, column, or area chart. If you’re trying to move a bar series, change it to a line first (step 5). Also, make sure you right-click on the series itself, not the chart area.

The line is not showing up. Check that the second series is actually in the chart. Go to Select Data and confirm both series are listed. If the line is there but invisible, it might be behind the bars—change the series order or make the bars semi-transparent.

The secondary axis disappears. This happens if you change the chart type of the secondary series back to bar. Re-select the series and set it to line on the secondary axis again.

The axes are swapped. If the bars are on the right and the line on the left, right-click the series and check which axis it’s plotted on. You can switch by selecting the other axis in the Format Data Series pane.

The chart looks distorted. Right-click each axis and set the minimum and maximum values manually. For example, if the primary axis starts at 1000 and the secondary at 0, the line will be compressed. Adjust the secondary axis to a range that makes the line visible.

Frequently Asked Questions

Can I have two bar series on two y-axes?

Excel does not allow a bar series on a secondary axis. You can only place line, column, and area series on a secondary axis. If you need two bars, consider using a clustered bar chart with a single axis, or use a line for one series.

How do I add a third y-axis?

Excel only supports two y-axes (primary and secondary). For a third, you’d need to create a separate chart or use a different tool.

Why is my secondary axis not showing the right numbers?

Check the series’ data range. If you selected the wrong cells, the axis will reflect that. Also, verify the axis minimum/maximum settings—Excel may auto-scale in a way that hides the range you expect.

Does this work in Excel for the web?

Excel for the web has limited chart customization. You can insert a combo chart, but you may not be able to format the secondary axis as freely. For full control, use the desktop version.

How do I make the bars and line share the same axis?

If you want them on the same axis, simply skip step 6 (do not select Secondary Axis). But if the scales are very different, the smaller series will be hard to read.

Can I change the chart type after adding the secondary axis?

Yes. Right-click the series, choose Change Series Chart Type, and pick a new type. The secondary axis setting will remain if the new type supports it.