Converting static charts to dynamic charts

nikhil83

New Member
Joined
Apr 19, 2013
Messages
17
Hi,

My DB is in table format . I use this table as source data for 2 barcharts and 1 pie chart.Following are my table headers

Costs|exp heads|Month1|Month2|...|Month n|Spark lines|Average

When i add a month coloumn,Sparklines and Average coloumn should get updated automaticaly.Now this is not happening even if the data is in table format.I also want the graphs to be automaticaly updated. please help

<tbody>
</tbody>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
If you want a chart to update automatically as you add new data, the standard approach is to use named ranges for your X-label and each of your y-series. You'll want to identify a field that always has data.

For example create the named ranges:
MyXRange = OFFSET(Sheet!$C$2,0,0,COUNTA(Sheet!$C$2:$C$1000),1)
MyCostRange = OFFSET(Sheet!$A$2,0,0,COUNTA(Sheet!$C$2:$C$1000),1)

These named ranges resent Column C data and Column A data respectively, but limits the range from C2 through the count of entries in column C.

Then you can insert these ranges into your series formulas on your charts. For example instead of:
=SERIES(,Sheet1!$C$2:$C$14,Sheet1!$A$2:$A$14,1)

use:
=SERIES(,MyFile!MyXRange,MyCostRange!yrng,1)
 
Upvote 0
please explain in a way that is specific to my case.Since my data is already in table format,i think i don't need to name the range separately
 
Upvote 0

Forum statistics

Threads
1,216,326
Messages
6,130,057
Members
449,555
Latest member
maXam

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