There's gotta be a better way (horizontal line on bar chart...)

medexcel

New Member
Joined
May 19, 2008
Messages
34
I have a bar chart showing monthly activity, which let's say is generally somewhere between 40% and 120%. The target is 90%. I have created a column barchart, with an activity series (Y1) and a dummy series (Y2) where every month the value for Y2 is 90%. Then I have put the 90% onto a second y axis as a line graph so that I have a flat horizontal line across the graph left to right and can see which months the activity exceeds the target. I've adjusted both the y-axis scales to start and finish at the same value.

The problem will come if one month in the future the activity goes a lot higher say 200%. The y1 axis automatically compensates and the scale changes. But I need a way to force the scale for y2 to automatically adjust too - at the moment it just stays the same and makes it look like the red horizontal target line has dropped to something like 50% for every month.

I came across this:
http://peltiertech.com/Excel/Charts/AlignXon2Ys.html

which I suppose might help, but I'm creating a dashboard with loads of graphs and want them to update automatically so I really don't want to have to use macros if at all possible. Is there any other way of achieving what I need, ie forcing y1 and y2 scales to be the same? Many thanks.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Maybe create a another series on the secondary y axis with the same value, and plot it with no marker and no line.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,277
Members
452,902
Latest member
Knuddeluff

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