PC Review


Reply
Thread Tools Rate Thread

Dynamic chart that displays a range starting today

 
 
=?Utf-8?B?amltZnJvZw==?=
Guest
Posts: n/a
 
      23rd Mar 2006
I am trying to make a chart that updates automatically and only displays the
last 30 days of information starting at the current date. The data sheet for
the chart is updated automatically, so there are future dates in the column.
I hav tried the OFFSET and COUNTA route, but that fuction grabs data from the
bottom of the data. I want the chart to start at the current date and go
back 30 days.
Can Anyone Help Me?
 
Reply With Quote
 
 
 
 
Kelly O'Day
Guest
Posts: n/a
 
      23rd Mar 2006
Jim:

Apparently your date column has future dates. This prevents you from using a
simple offset function going back 30 days from last entry in column.

I personally don't like to have future dates in my books. Is there any way
you can change this? If not, here's a workaround I use.

I set up a simple sheet with dates in Col A and values in Col B.

I placed current date in Cell D2.
I calculated end row as : G2 = Match(D2,A:A,)
I calculated start row as: G1 = G2 - 30


Once I know the current Row, I defined my DT range with an Offset refers to:

= Offset(Sheet1!$A$2,Sheet1!$G$1-1,0,Sheet1$G$2-Sheet1!$G$1).

I then set my Values refers to

= Offset(Dt,0,1)

I made my chart, then substituted the Dt and values range names for the cell
references.

The trick is dynamic range name based on start and end rows.

....Kelly

(E-Mail Removed)



"jimfrog" <(E-Mail Removed)> wrote in message
news42A5572-D994-48AA-B068-(E-Mail Removed)...
>I am trying to make a chart that updates automatically and only displays
>the
> last 30 days of information starting at the current date. The data sheet
> for
> the chart is updated automatically, so there are future dates in the
> column.
> I hav tried the OFFSET and COUNTA route, but that fuction grabs data from
> the
> bottom of the data. I want the chart to start at the current date and go
> back 30 days.
> Can Anyone Help Me?



 
Reply With Quote
 
=?Utf-8?B?amltZnJvZw==?=
Guest
Posts: n/a
 
      23rd Mar 2006
I found another way of doing it.
Instead of calculating start and end rows, I used:
=RANK(TODAY(),A2:A294,1)-29 and a length of 30 days as inputs into the OFFSET
function to get me what I wanted.

"Kelly O'Day" wrote:

> Jim:
>
> Apparently your date column has future dates. This prevents you from using a
> simple offset function going back 30 days from last entry in column.
>
> I personally don't like to have future dates in my books. Is there any way
> you can change this? If not, here's a workaround I use.
>
> I set up a simple sheet with dates in Col A and values in Col B.
>
> I placed current date in Cell D2.
> I calculated end row as : G2 = Match(D2,A:A,)
> I calculated start row as: G1 = G2 - 30
>
>
> Once I know the current Row, I defined my DT range with an Offset refers to:
>
> = Offset(Sheet1!$A$2,Sheet1!$G$1-1,0,Sheet1$G$2-Sheet1!$G$1).
>
> I then set my Values refers to
>
> = Offset(Dt,0,1)
>
> I made my chart, then substituted the Dt and values range names for the cell
> references.
>
> The trick is dynamic range name based on start and end rows.
>
> ....Kelly
>
> (E-Mail Removed)
>
>
>
> "jimfrog" <(E-Mail Removed)> wrote in message
> news42A5572-D994-48AA-B068-(E-Mail Removed)...
> >I am trying to make a chart that updates automatically and only displays
> >the
> > last 30 days of information starting at the current date. The data sheet
> > for
> > the chart is updated automatically, so there are future dates in the
> > column.
> > I hav tried the OFFSET and COUNTA route, but that fuction grabs data from
> > the
> > bottom of the data. I want the chart to start at the current date and go
> > back 30 days.
> > Can Anyone Help Me?

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the starting and ending cell of a dynamic named range Arlen Microsoft Excel Misc 2 8th Aug 2008 01:53 PM
Chart empty with new data in the dynamic range chart. Feejo Microsoft Excel Misc 16 3rd Jan 2008 10:03 PM
Sum a range of cells starting from an offset date list from TODAY() jeff.taylor@virgin.net Microsoft Excel Worksheet Functions 3 5th Nov 2006 12:19 PM
Define a dynamic range from a specific starting point in a list gwh_lbh@swbell.net Microsoft Excel Discussion 3 19th Aug 2005 01:29 PM
Dynamic Chart Range and Chart Update ExcelMonkey Microsoft Excel Programming 1 6th Jul 2004 08:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 PM.