To fix overlapping bars when you add a secondary axis to an Excel bar chart, you need to adjust the gap width and, in many cases, switch one series to a line chart. The overlap happens because Excel places the primary and secondary axis bars side by side instead of layering them. Here is the complete process, including how to prevent the problem and what to do when the chart still looks wrong.
What You'll Need
- Excel 2016 or later (the steps are the same for Microsoft 365, Excel 2021, and Excel 2019). The menus may look slightly different on a Mac, but the options are the same.
- A chart with two data series that have very different scales (for example, revenue in dollars and profit margin in percentages).
- The data already arranged in columns or rows, with the category labels in one column and the two series in adjacent columns.
Step-by-Step
- Create your initial chart. Select the data range that includes the category labels and both series. Go to the Insert tab and click the Bar Chart icon (it looks like a small bar chart). Choose the first option, Clustered Bar. You now have a bar chart with two series that share the same axis.
- Add the secondary axis to one series. Right-click on the bars that represent the series you want to put on a different scale (usually the smaller values, like percentages). Choose Format Data Series from the context menu. In the panel that opens on the right, look for Series Options (the icon looks like a bar chart). Select Secondary Axis. The chart will now show two axes: the primary on the left and the secondary on the right.
- Check the overlap. At this point, the bars from the two series will be grouped side by side, and they will likely overlap visually because the secondary axis bars are drawn on top of the primary axis bars. This is the overlap you are trying to fix.
- Change the secondary series to a line (recommended). The cleanest fix is to not use bars for the secondary series at all. Right-click on the secondary series bars (the ones that are now on the secondary axis) and choose Change Series Chart Type. In the dialog box, find the secondary series and change its chart type to Line. Click OK. The secondary series now appears as a line, which completely eliminates the bar overlap. This is the standard solution for combining two different scales in one chart.
- If you must keep both as bars, adjust the gap width. If you really need both series as bars (for example, to compare two sets of values side by side), you can reduce the overlap by making the bars thinner. Right-click on either series and choose Format Data Series. In the Series Options section, find Gap Width. Increase the gap width to something like 150% or 200%. This makes the bars narrower, which reduces the visual clutter but does not fully separate them. The bars will still be grouped, but the overlap will be less severe.
- Adjust the secondary axis scale if needed. Sometimes the secondary axis starts at zero or uses a different range, which can make the line or bars appear in an unexpected place. Right-click on the secondary axis numbers (the ones on the right side of the chart) and choose Format Axis. Set the minimum and maximum values to something that makes sense for your data. For example, if your secondary series is a percentage, set the minimum to 0 and the maximum to 1 (or 100, depending on how you entered the data).
- Clean up the chart. Add data labels, adjust colors, and make sure the legend clearly shows which series is on which axis. You can also add axis titles by clicking the plus sign next to the chart and checking Axis Titles.
Common Mistakes
- Not changing the secondary series to a line. This is the most common mistake. If you keep both as bars, they will always overlap to some degree, no matter how much you adjust the gap width. The line chart is the intended way to combine two scales.
- Using the wrong chart type for the primary series. The steps above assume you start with a clustered bar chart. If you start with a stacked bar chart, the secondary axis will behave differently, and the overlap fix may not work cleanly. Always start with a clustered bar chart.
- Forgetting to adjust the secondary axis scale. If the secondary axis has a very different range than the primary, the line or bars might be squished into a corner. Always check the axis bounds after adding the secondary axis.
- Putting the secondary axis on the wrong series. Make sure you select the series that actually needs the different scale. Usually that is the one with smaller values, but it could be either. If the chart looks wrong, try switching which series is on the secondary axis.
Tips
- Use a combo chart from the start. Instead of adding a secondary axis later, you can create a combo chart directly. Select your data, go to Insert > Combo Chart (or Recommended Charts > All Charts > Combo). Then assign one series to a line and the other to a bar, and check the Secondary Axis box for the line series. This saves a step and avoids the overlap entirely.
- Keep the secondary axis visible. Do not hide the secondary axis, because readers need to know the scale for the line series. If you hide it, the chart becomes misleading.
- Label the axes clearly. Add axis titles that say something like "Revenue (USD)" for the primary and "Profit Margin (%)" for the secondary. This prevents confusion.
- Consider a dual-axis line chart instead. If both series are time-based, a line chart with two lines is often clearer than a bar-line combo. The secondary axis works the same way.
Troubleshooting
The bars still overlap even after changing to a line. This usually means the line series is still using the same axis as the bars. Right-click on the line series, choose Format Data Series, and make sure Secondary Axis is selected. If it is already selected, try toggling it to Primary and back to Secondary to refresh the chart.
The line does not show up at all. Check that the secondary axis actually has a visible scale. If the minimum and maximum are set to the same value (e.g., both 0), the line will be invisible. Format the secondary axis and set sensible min/max values.
The bars are not aligned with the line. This happens when the category labels are not the same for both series. Make sure both series use the same category labels. If you have missing data, Excel may plot the line at a different position. Fill in any blank cells with 0 or use the Select Data dialog to ensure both series use the same categories.
The chart looks fine, but the secondary axis numbers are too large or too small. Right-click the secondary axis and choose Format Axis. Under Bounds, set the minimum and maximum to values that fit your data. For percentages, set the maximum to 1 if your data is in decimal form, or 100 if it is in whole numbers.
I accidentally deleted the secondary axis. Right-click on the series that should be on the secondary axis, choose Format Data Series, and select Secondary Axis again. The axis will reappear.
If none of these work, start over. Delete the chart and create a new one using the Combo Chart option from the start. This is the most reliable method.
Frequently Asked Questions
Why does Excel overlap the bars when I add a secondary axis?
Excel treats the primary and secondary axes as separate plot areas. When you have two bar series, it draws them side by side within the same category, but because the secondary axis has a different scale, the bars can visually overlap. Changing one series to a line is the standard fix.
Can I keep both series as bars and avoid overlap?
You can reduce overlap by increasing the gap width, but you cannot completely eliminate it. The bars will always be grouped, and the secondary axis bars will be drawn on top of the primary ones. If you need two bar series, consider using a stacked bar chart instead, but that will not work with a secondary axis.
What is the best chart type for two different scales?
A combo chart with one bar series and one line series is the most common and readable option. The bar series uses the primary axis, and the line series uses the secondary axis. This is what most financial and business dashboards use.
How do I change the secondary axis to start at zero?
Right-click on the secondary axis numbers, choose Format Axis, and under Bounds, set the Minimum to 0. If you want the axis to start at a different value, type that number in the box.
Can I use a secondary axis with a stacked bar chart?
Yes, but it is tricky. Excel does not allow a secondary axis on a stacked bar chart directly. You would need to create a combo chart and then change the primary series to stacked, but the secondary series will still be a line. It is usually better to avoid this combination.
Why is my line series not showing on the secondary axis?
Check the Format Data Series panel for the line series. Under Series Options, make sure Secondary Axis is selected. Also verify that the secondary axis has a visible scale by looking at the right side of the chart.