#1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default Dynamic chart

I need to be able to create a rolling 30 day chart. I have looked at some of
the postings online and found them to be very helpful.
I need to make a slight modification to do look at days rather than months.
I am utilizing NAMES. here is my chtCar
code:=IF(Sheet1!$A$2:$A$75=(TODAY()),OFFSET(Sheet1 !$A$1,COUNTA(Sheet1!$A:$A)-1,0,-MIN(chtlen,COUNTA(Sheet1!$A:$A)-1),1))
I think I am close however I get FALSE in my results.

I need help! any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,344
Default Dynamic chart

Hi,

You might try something like this, where your dates are in A1:A500 and your
data is in B1:B500. This formula returns an array of the 30 dates starting
on todays date (note A1 is a date).

=OFFSET(A1,MATCH(TODAY()-1,A1:A500,0),0,30)
=OFFSET(A1,MATCH(TODAY()-1,A1:A159,0),1,30)

The second formula return an array of the 30 date's data.

If this helps please click the Yes button.
--
Thanks,
Shane Devenshire


"BK13" wrote:

I need to be able to create a rolling 30 day chart. I have looked at some of
the postings online and found them to be very helpful.
I need to make a slight modification to do look at days rather than months.
I am utilizing NAMES. here is my chtCar
code:=IF(Sheet1!$A$2:$A$75=(TODAY()),OFFSET(Sheet1 !$A$1,COUNTA(Sheet1!$A:$A)-1,0,-MIN(chtlen,COUNTA(Sheet1!$A:$A)-1),1))
I think I am close however I get FALSE in my results.

I need help! any suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default Dynamic chart

Shane,

Thank you very much that did the trick- I just had to change the "30" to
"-30" to give me today and the previous 30 days.
Now off to my next task!
Thanks again!

"ShaneDevenshire" wrote:

Hi,

You might try something like this, where your dates are in A1:A500 and your
data is in B1:B500. This formula returns an array of the 30 dates starting
on todays date (note A1 is a date).

=OFFSET(A1,MATCH(TODAY()-1,A1:A500,0),0,30)
=OFFSET(A1,MATCH(TODAY()-1,A1:A159,0),1,30)

The second formula return an array of the 30 date's data.

If this helps please click the Yes button.
--
Thanks,
Shane Devenshire


"BK13" wrote:

I need to be able to create a rolling 30 day chart. I have looked at some of
the postings online and found them to be very helpful.
I need to make a slight modification to do look at days rather than months.
I am utilizing NAMES. here is my chtCar
code:=IF(Sheet1!$A$2:$A$75=(TODAY()),OFFSET(Sheet1 !$A$1,COUNTA(Sheet1!$A:$A)-1,0,-MIN(chtlen,COUNTA(Sheet1!$A:$A)-1),1))
I think I am close however I get FALSE in my results.

I need help! any suggestions?

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
Dynamic Chart Help brumanchu Excel Discussion (Misc queries) 3 October 9th 08 08:09 PM
Dynamic chart pasted to a new workbook in report can't be dynamic Piotr (Peter)[_2_] Charts and Charting in Excel 2 August 6th 08 05:15 AM
Chart empty with new data in the dynamic range chart. Feejo Excel Discussion (Misc queries) 16 January 3rd 08 10:03 PM
Dynamic chart Joe Excel Discussion (Misc queries) 1 September 26th 06 02:02 PM
dynamic end on chart Donna YaWanna Charts and Charting in Excel 1 June 17th 05 04:50 PM


All times are GMT +1. The time now is 02:49 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"