Automatically Updating Chart When Series Data is in Noncontiguous Cells

Eshleman

New Member
Joined
Mar 11, 2016
Messages
3
I have one graph for labor (A19), one graph for benefits (A20), one graph for supplies (A21), etc., all the way through Total (A29). Each graph is a line graph with markers and is on the same tab as the data.

My x-axis is fiscal years. My y-axis is unit cost. The x-axis is always C18, E18, G18 and currently goes through S18. My y-axis for labor is in cells C19, E19, G19…S19. My y-axis for benefits is in cells C20, E20, G20…S20. My y-axis for supplies is in cells C21, E21, G21…S21, etc.

My x-axis and y-axis series data are in noncontiguous cells because the unit cost is calculated with dollars (and cost drivers) that are also reported on the tab.

The data looks like this:

Cost Driver
20,000
24,000
28,000
FY10
FY10
FY11
FY11
FY12
FY12
Labor
$200,000
$10.00
$325,000
$13.54
$290,000
$10.36
Benefits
$100,000
$5.00
$145,000
$6.04
$158,000
$5.64
Supplies
$115,000
$5.75
$138,000
$5.75
$156,000
$5.57
Other Service
$22,000
$1.10
$20,000
$0.83
$19,000
$0.68
Travel
$100
$0.01
$0
$0.00
$0
$0.00
Utilities
$400,000
$20.00
$300,000
$12.50
$400,000
$14.29
Maintenance
$150,000
$7.50
$175,000
$7.29
$140,000
$5.00
Other
$2,000
$0.10
$1,000
$0.04
$1,000
$0.04
Depreciation
$50,000
$2.50
$40,000
$1.67
$65,000
$2.32
Plant Period
$20,000
$1.00
$70,000
$2.92
$30,000
$1.07
Total
$1,059,100
$52.96
$1,214,000
$50.58
$1,259,000
$44.96

<tbody>
</tbody>



What I am trying to do is automatically update each graph once the data is populated for the fiscal year that appears in the rightmost column (at the time of writing, fiscal year 2017 plan appears in column S).

In addition, I have one tab for every department (all derived from information consistent with what I describe above). Therefore, each department has its own set of graphs. My second goal is to update similar tabs with dynamic graphs using a macro or some similar device so that I don’t have to modify each data series on every department tab individually (I’m thinking that I would run it for only the active tab). I have to be careful here, though, because not all tabs are department tabs. Some tabs are summary tabs. While these summary tabs also contain graphs, they are created differently than the department graphs and do not pose the same type of challenges.

Any advice on how to update these department graphs in a productive manner would be greatly appreciated.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,214,994
Messages
6,122,633
Members
449,092
Latest member
bsb1122

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