Last entreis in graphs

shafiq_eng

New Member
Joined
Oct 6, 2004
Messages
36
Dear Frieds

I create monthly graphs for plant production for the last six months each time. Is it possible to have the last six months graph when I enter data for seventh eights or so on data without changing source data in graphs.



shafiq
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi

It is possible. There are various ways.

One is to have the graph connected to a fixed range, and then populate that fixed range with the last 6 months of data dynamically.

Another is to have the graph based on a named range, and have that range name change dynamically.


Tony
 
Upvote 0
Hi

For the first one:

1) Assume that the source data is in the range C1:N2 with the headings in row 1 and the data in row 2. Fill cells C2 to H2 with data.

2) In A2 enter the formula
=COUNTA(C2:N2)

3) In C6 enter the formula
=OFFSET($B$1,0,$A$2+(COLUMN()-8))
and copy across to H6

4) In C7 enter the formula
=OFFSET($B$2,0,$A$2+(COLUMN()-8))
and copy across to H7

5) The graph data is in the range C6 to H7

6) Put new data in the source range (I2) and the graph range data will auto update.


Tony


headings are in the range
 
Upvote 0

Forum statistics

Threads
1,203,744
Messages
6,057,118
Members
444,906
Latest member
NanaExcel

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