Bar chart help needed!

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi

The general idea is simple, but you must be prepared to do some work if you want to do this type of chart. Jon Peltier explains here how to:

Stacked Charts With Vertical Separation

The example is for vertical columns but if you study it you may be able to adapt the vertical columns example to your horizontal bars.
 
Upvote 0
Hi

The general idea is simple, but you must be prepared to do some work if you want to do this type of chart. Jon Peltier explains here how to:

Stacked Charts With Vertical Separation

The example is for vertical columns but if you study it you may be able to adapt the vertical columns example to your horizontal bars.

Im actually more curious about how to lay one bar chart on top of the other except the bar in the background is wider. I know how to make the bars overlap, but I'm not sure how to make the bars in the background be fatter than the bars in the foreground.
 
Upvote 0
Hi

To lay one series on top of the other send one of them to the secondary axis.
To make the bars of one of the series wider, select the series and play with the Gap Width value.
 
Upvote 0
Hi

To lay one series on top of the other send one of them to the secondary axis.
To make the bars of one of the series wider, select the series and play with the Gap Width value.

Okay - that definitely works, thank you for that! However, my follow-up question is how do I set the secondary axis to be exactly equal to the primary axis? I need to do this because on one axis I have my actuals (some of them are negative) and the other axis I have my budget (all positive). So, the bars are not lining up properly.
 
Upvote 0
If your offsets are correct, you just have to make sure that the minimum and maximum values in both primary and secondary axes are the same.
 
Upvote 0
If your offsets are correct, you just have to make sure that the minimum and maximum values in both primary and secondary axes are the same.

Is there a macro you can direct me towards that would automatically set my max and min values each time the macro is executed? I'm looking for a macro to do this because the report needs to be run daily and the numbers change daily. The goal is to avoid manually updating the primary/secondary axis.


I would want the macro to:


1. Look at the min value of both primary and secondary axis
2. Look at the max value of both the primary and secondary axis
3. Set the lowest min value and highest max value to be the same for both primary and secondary axis.


For reference purposes, this is a bar chart with the bars going left/right (not up/down).
 
Upvote 0
Is there a macro you can direct me towards that would automatically set my max and min values each time the macro is executed?

I'm sorry, I also don't remember seeing one that would do it.
I hope you'll be lucky and find one. If not you or someone else will have to write one.
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top