Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 79
Default Rolling chart to show 13 months back from current month

I am using names andd offset to create a 13 month chart which rolls forward
automatically. however it only updates when a new month is added, i want it
to display the 13 months up to a particular month - held in a separate cell.

currently:

x-axis labels uses the name chtCts
=OFFSET('Data'!$A$3,COUNTA('Data'!$A$3:$A$27)-1,0,-MIN(chtLenn,COUNTA('Data'!$A$3:$A$27)-1),1)

data:
=OFFSET(chtCts,0,1)


table looks like this:
COLA COLB
Month Data
J 3
F 4
M 5
A 6
M .
J .
J .
A
S
O
N
D
J

So at the moment it displays jan to jan, when F is added to above table,
will show feb to feb etc. What i want is to enter a month in a cell, eg M,
and for the chart to display 13 months dependent on this, in this example M
to M. Have tried countif but for some reason there seems to be alimit to the
length of the formula xl2002 will accept as a name. Advice appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default Rolling chart to show 13 months back from current month

You need to change the offset formula, so instead of starting at the last
point and counting backwards, you instead count from the month you select
and count backward. In your date column, put a real date, like 1-Jan-09 for
last month (use a custom number format of MMMMM to show just the first
initial of the month name). Then use a match on a date which is in, say, C1:

=OFFSET(Data!$A$3,MATCH(Data!$C$1,Data!$A$3:$A$27)-1,0,-MIN(13,COUNTA(Data!$A$3:$A$27)-1),1)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"PBcorn" wrote in message
...
I am using names andd offset to create a 13 month chart which rolls forward
automatically. however it only updates when a new month is added, i want
it
to display the 13 months up to a particular month - held in a separate
cell.

currently:

x-axis labels uses the name chtCts
=OFFSET('Data'!$A$3,COUNTA('Data'!$A$3:$A$27)-1,0,-MIN(chtLenn,COUNTA('Data'!$A$3:$A$27)-1),1)

data:
=OFFSET(chtCts,0,1)


table looks like this:
COLA COLB
Month Data
J 3
F 4
M 5
A 6
M .
J .
J .
A
S
O
N
D
J

So at the moment it displays jan to jan, when F is added to above table,
will show feb to feb etc. What i want is to enter a month in a cell, eg M,
and for the chart to display 13 months dependent on this, in this example
M
to M. Have tried countif but for some reason there seems to be alimit to
the
length of the formula xl2002 will accept as a name. Advice appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 79
Default Rolling chart to show 13 months back from current month

Thanks Jon. This works fine.

Regards PB

"Jon Peltier" wrote:

You need to change the offset formula, so instead of starting at the last
point and counting backwards, you instead count from the month you select
and count backward. In your date column, put a real date, like 1-Jan-09 for
last month (use a custom number format of MMMMM to show just the first
initial of the month name). Then use a match on a date which is in, say, C1:

=OFFSET(Data!$A$3,MATCH(Data!$C$1,Data!$A$3:$A$27)-1,0,-MIN(13,COUNTA(Data!$A$3:$A$27)-1),1)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"PBcorn" wrote in message
...
I am using names andd offset to create a 13 month chart which rolls forward
automatically. however it only updates when a new month is added, i want
it
to display the 13 months up to a particular month - held in a separate
cell.

currently:

x-axis labels uses the name chtCts
=OFFSET('Data'!$A$3,COUNTA('Data'!$A$3:$A$27)-1,0,-MIN(chtLenn,COUNTA('Data'!$A$3:$A$27)-1),1)

data:
=OFFSET(chtCts,0,1)


table looks like this:
COLA COLB
Month Data
J 3
F 4
M 5
A 6
M .
J .
J .
A
S
O
N
D
J

So at the moment it displays jan to jan, when F is added to above table,
will show feb to feb etc. What i want is to enter a month in a cell, eg M,
and for the chart to display 13 months dependent on this, in this example
M
to M. Have tried countif but for some reason there seems to be alimit to
the
length of the formula xl2002 will accept as a name. Advice appreciated.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I show the current month in a date field? G-man[_2_] Excel Discussion (Misc queries) 5 May 27th 08 09:23 AM
In a range of months can I capture the most current month entry? Karlene Excel Discussion (Misc queries) 4 August 15th 07 05:55 PM
HOW TO SUBTRACT A YEAR+MONTH AND SHOW DIF IN MONTHS? noles fan Excel Worksheet Functions 2 October 1st 05 05:32 PM
3 month rolling chart Shanin Charts and Charting in Excel 4 September 2nd 05 06:40 PM
Graphing past months (totals) and current month (weekly total) in Davin Charts and Charting in Excel 1 July 27th 05 05:01 PM


All times are GMT +1. The time now is 02:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"