Dynamic Stacked Column Chart?

peelster

New Member
Joined
Mar 1, 2011
Messages
5
So I don't forget: Excel2007.

I've trolled through a dozen on-line examples of creating dynamic charts and have my arms around the situation where there is one Series that could grow or change over time (using dynamic range names via the offset function, plugged into a single series on the graph) -- something like one might find with a Clustered Column chart with just one series in the cluster.

I am trying to create two variables in my chart -- first I want the the X-Axis to expand over time as more weeks pass and more data is gathered. But in addition, I would like to include or exclude an extra series depending on a user selection from a combo box. I have been able to create a dynamic range that grows or contracts depending on the combo box answer, but can't use it to my advantage in the related chart.

Currently, my Stacked Column chart has 5 Series's in it -- I would like to include or exclude a 6th from the source data, depending on the combo box selection. I can't find a tutorial or example of how to do it (everything gives a "simple" example -- I need something less "simple").

Column A includes 5 statuses (call them Status1 through Status5). Row 1 includes a series of dates. Data is currently populated for the first 4 dates. I'd like my chart to have each date on the X axis, with the Stacked Column for the amounts in Status1 through Status5 or Status1 through Status6, depending on the above-mentioned combo box selection.

Confused? Me too. First time poster, so tell me what other info would be helpful to solve this. Explicitly looking to avoid VBA.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Why are you explicitly looking to avoid VBA? What if that is the only way to achieve what you want?
 
Upvote 0
You can avoid VBA if you have the additional series plotted all the time, but have its source data either 0 or the values you want based on the selection from the combobox. However, if you have a Legend on the chart, the 6th series will always appear (even if only as a coloured blob).
 
Upvote 0
@rorya - thanks - I've got that blob now, but it is at least working.

@GlennUK - two reasons really - 1) I've very little recent experience with VBA; 2) don't you have to save it in a code-enabled format & doesn't that prompt a "caution" note when others open it? I'm an auditor working with auditors -- makes people really nervous. If I don't get that warning message, I'm all for giving it a whirl -- just have to overcome item 1.
 
Upvote 0

Forum statistics

Threads
1,224,547
Messages
6,179,436
Members
452,915
Latest member
hannnahheileen

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