Chart

Stop Excel From Overlapping the Columns When Moving a Data Series to the Second Axis

Don’t worry, Excel is not changing your chart to a Stacked Clustered Column Chart or Stacked Bar Chart when you move a data series to the secondary axis.  And here is how to fix it.

The Problem:

With this data set:

A B C
1 Tea Coffee
2 Jan 300 1000000
3 Feb 700 5000000
4 Mar 300 5000000

You created a 2-D Clustered Column Chartimage_thumb5

Then, because your data series is not the same scale, so, you decide to create 2 vertical axis’ so that the scales are distinct for the two data series.  Then you move the tall orange columns to the secondary axis.image_thumb6

But it looks like Excel made it a Stacked Colum Chart  How can I fix it?

This is the chart I really wanted:image_thumb11

 

The Breakdown

Excel is plotting your data on two different axis in the same space.  So they will overlap.  In order to not have them overlap, we need to add a pad space to push the tea column left and the coffee column right. (Thanks to Maruf for this graphic).image

1) Create Chart Data Series

2) Insert 2 Columns Between Tea and Coffee

3) Highlight Data Range and Create 2-D Clustered Column Chart

4) Switch the Rows/Columns in Your Chart

5) Move Pad 2 Data Series to the Secondary Axis

6) Move Coffee Data Series to the Secondary Axis

7) Delete Pad Tea and Pad Coffee Legend Entries

Step-by-Step

1) Create Chart Data Seriesimage

 

2) Insert 2 Columns Between Tea and Coffee

image

 

3) Highlight Data Range and Create 2-D Clustered Column Chart

Your chart will look like this:image

 

4) Switch the Rows/Columns in Your Chart

Click on your Chart and then go to the Design Ribbon and Press the Switch Row/Column button in the Data Group:

image

If you don’t know why you have to do this, check out this link:

Why Does Excel Switch Rows/Columns in My Chart?

Your chart will now look like this:image

5) Move Pad 2 Data Series to the Secondary Axis

Select the Pad Coffee data series in the chart.  If you can’t select it, check out this post:

How-to Select Data Series in an Excel Chart when they are Un-selectable?

or this Link:

The Quickest Way to Select an Data Series in an Excel Chart

Then Press Ctrl+1move that series to the Secondary Axisimage

Your chart won’t look any different since there is no data in the empty Pad Coffee Series.

 

6) Move Coffee Data Series to the Secondary Axis

Now repeat step 5 for the Coffee data series (column) and move it to the secondary axis.

Your chart will now look like this:image

 

7) Delete Pad Tea and Pad Coffee Legend Entries

We are almost done.  All we need to do now is remove the Pad Tea and Pad Coffee legend entries.

To delete the Legend entries, do the following:

a) Select the Chart

b) Select the Legend

c) Select the Legend Entry for Pad Tea

d) Press the delete key

e) Repeat A-D steps for Pad Coffee legend entry

 

Here is a cool post you may have missed about legend entries:

Tips and Tricks – Longer Legend Color Bars in Excel Charts

Here is what your final chart will look like:

Illustration from Stop Excel From Overlapping the Columns When Moving a Data Series to the Second Axis

 

Video Demonstration

Here is a detailed video tutorial showing you how to stop Excel from converting your converting your clustered column chart into a stacked column chart (even though we now know that it is just overlapping):
Watch the original video tutorial
Sample Excel Download File

Here you can download free the sample chart:

How-to-move-a-data-series-to-the-second-axis-and-not-overlap-the-columns.xlsx

 

Congrats to Peter, Don and Maruf who were successfully able to make the final chart.  Also, don’t forget to comeback as we will be showing you the Excel Super Bowl Dashboard Entries

 

Steve=True

Reader discussion

Comments preserved from the original page. New comments are closed.

Reader

August 5, 2014 At 4:19 am

!WOW! What a clever solution !!!
Thank you so much for sharing your knowledge.

Reader

October 8, 2014 At 11:12 am

I follow your solution. However, how do you solve this same problem with a Pivot chart without changing your source data (ie inserting blank columns in the data series)?

Reader

October 10, 2014 At 11:27 am

Hi Cooper,

I believe that the only way would be to add 2 additional columns to your pivot chart data for the gaps. Just the column headers and data is not needed. Thanks.

Steve=True

Reader

December 10, 2014 At 4:16 pm

Thanks for the help. It took a few reads and watches but I got there.
Much obliged.

Reader

January 14, 2015 At 6:05 am

Awesome – exactly what I was after. Thanks!

Reader

January 14, 2015 At 9:07 am

Thanks for the amazing comment Owen. Much appreciated. Glad to help. Steve=True

Reader

February 6, 2015 At 3:36 am

It works!
Thank you for sharing your knowledge.

Reader

February 6, 2015 At 7:24 am

You are quite welcome Antonio. So glad to help. Thanks for the great comment. Steve=True

Reader

June 10, 2015 At 5:26 pm

Thank you this was helpful!
However, what if I have three sets of data, such as this. The first two (%G & %S) I want on the primary y axis and the third (Average stems) I want on the secondary y axis. I can’t figure out where to put the pad columns?
Site % G % S Average stems
A 32.9 87.3 3.0
B 59.1 66.5 4.0

Reader

June 12, 2015 At 4:32 pm

Is there a way to keep the Site data all together? So %G, %S, and Average Stems are all together above Site A, for instance. This would be preferable. Thank you!

Reader

September 23, 2015 At 5:34 am

Brilliant! Have had this issue for years, never bothered to look it up until now. And your article gave me a solution immediately. Thanks a lot!

Reader

September 23, 2015 At 6:02 am

Thanks for the great comment. So glad to help! Steve=True

Reader

October 15, 2015 At 11:01 am

Great solution thank you, but a big fail to Excel for making what should be a very simple task so complicated.

Reader

October 15, 2015 At 11:35 am

Thanks Matt for the great comment. Much appreciated. Yeah, it would be nice if there was a check box that would do this. Thanks again. Steve=True

Reader

October 25, 2015 At 11:39 pm

Super clever solution. Thanks!

Reader

November 10, 2015 At 8:59 am

Thanks for the nice comment. Glad to help

Reader

January 25, 2016 At 11:46 pm

Great post. Very helpful. Thank you!

Reader

January 26, 2016 At 3:00 pm

You are welcome. Thanks for the kind words.

Reader

January 26, 2016 At 7:06 am

If you want no space between column, after following above solution and making a chart, just delete the empty columns from excel. Chart will not change.

Reader

February 5, 2016 At 4:32 pm

I fight to do it for hours until I saw your video. Thanks a lot!

Reader

February 11, 2016 At 8:38 am

You are very welcome. Thanks for the great comment.

Reader

February 21, 2016 At 1:45 pm

I tried this and it didn’t work for me. I have two years of monthly data, so 24 months. Now instead of plotting it by for example, tea and coffee it’s plotting it by month, which just created a mess.

Reader

February 25, 2016 At 4:35 pm

Hi Susan, not sure how your data is set up, but you may want to try and switch your rows/columns.

Reader

April 15, 2016 At 7:38 am

Thank you for this solution. Saved me some time and my sanity!

Reader

April 19, 2016 At 11:43 am

Thanks for the great comment. So glad to help. Steve=True

Reader

May 2, 2016 At 7:30 pm

Hi Steve, why does this happen in the first place? I’m having same problem but this has never occurred before. Thank you.

Reader

June 1, 2016 At 7:20 pm

Hi Shiv, it should be an option, but I think that it is the desired effect from Microsoft if your chart is a column and a line.

Reader

May 16, 2016 At 11:49 am

Thank you so much for this Excel hack! 🙂

Reader

June 1, 2016 At 7:18 pm

You are very welcome.

Reader

June 6, 2016 At 11:05 pm

Steve,
grateful for this workaround. I now have a question/challenge for you. Out from the final screenshot when you have tea values on the left axis and coffee value on the right, I now want to have more granularity, meaning I want an internal (so to speak)stacked column for tea and coffee where for example in January out of 300 for tea, 200 is green tea and 100 black tea, same thing for coffee on the right hand (for every month) coffee will be for example in February out of the 5MM, 3 MM is arabica coffee and 2MM is colombian coffee, you follow me?. I just want to show granularity for both products at the same time they are using two different axis.

Thanks in advance Alex

Reader

June 24, 2016 At 6:53 am

Thank you very much for this info! I was really struggling to get a solution for this problem 🙂

Reader

June 28, 2016 At 6:12 pm

So glad to help. Thanks for the great comment!

Reader

November 2, 2016 At 2:57 pm

This is great Steve, thank you!
But, I am wondering if you have three sets of data – two on one y-axis and one on the other. I am trying to add in “Pad” columns but am failing to get them to not overlap.
Say it’s decaf coffee and tea with low values and caffeinated coffee with high values – no stacking.
Any help would be greatly appreciated,

Reader

November 5, 2016 At 12:03 pm

Hi Whitney, thanks for the question.

Yes this can be done with other padding data series. Here is a video that explains more: https://youtu.be/wzfhUetUk2o

Reader

January 23, 2017 At 4:05 pm

this was great !!!
thanks so much

Reader

February 21, 2017 At 7:50 am

Thanks!

Reader

February 21, 2017 At 3:22 am

Brilliant solution

Reader

February 21, 2017 At 7:45 am

Thanks

Reader

July 6, 2017 At 5:59 am

Thanks it really helped me today..

Reader

July 9, 2017 At 11:37 am

So glad to help. Thanks for the nice comment!

Reader

August 21, 2017 At 8:09 am

Thanks for the tip! The issue i had is i have some negative values in my data, in this case my x axis does not seem correct, anyone has this before?

Reader

August 24, 2017 At 3:31 pm

I am not sure, can you post some basic data and what is on the primary and secondary axis?

Reader

November 15, 2017 At 4:16 am

thanks so much for the tip i tried for hours to solve this problem until i found your instructions!

however i have another problem, following your instructions in the end after moving tea for example to the secondary axis, excel switched the values of tea so they are opposite to the real value for months. for example in my chart march got the tea values of january and january got the tea values of march. in other words the X axis (lines) does not fit to the secondary vertical axis.
did you had this problem before?

Reader

November 18, 2017 At 11:24 am

Hi Shahaf, you should show all 4 axes in your chart (Primary and Secondary / Horizontal and Vertical) to see what is not lining up. You can force your axis min and max to specific values. Also, the issue may be that you have Reversed the order on the axis for one and not the other. Hope that helps!

Reader

March 15, 2018 At 10:21 am

Doesn’t work. As soon as I move the non-pad column to the secondary axis it overlaps again.

Reader

March 16, 2018 At 11:49 am

Hi P. What version of Excel are you using? Also, you may want to make sure your pad columns are in between the non-pad columns as the placement does affect the position in the chart.

Reader

March 23, 2018 At 9:58 am

Legendary hack solution. Thank you!

Can’t believe Microsoft still has this issue four years later – why would stacking columns be their default solution?

Reader

March 23, 2018 At 10:32 am

Thanks Tim. Not sure that it was considered as an option needed from Microsoft. For instance, if you moved your column to the secondary axis and made it a line chart type, then you would want them centered to show the line on the center of the columns not next to it. However, i agree that it should be an option.

Reader

July 11, 2018 At 9:00 am

This is a brilliant method, but will not work if you want to add a Data Table below the chart.

Reader

July 11, 2018 At 4:52 pm

Good article. Ridiculous that there still isn’t a box to check in Excel to handle this automatically (which itself should be automatically checked if the chart types are the same). Minor typo – your final picture is the same as the one before it, i.e. – it still shows the legend entries for Pad Tea and Pad Coffee.

Reader

July 11, 2018 At 9:29 pm

Thanks for the comment and note. I will have to take a look 🙂 and correct the picture.