PC Review


Reply
Thread Tools Rate Thread

3 month rolling totals

 
 
DTTODGG
Guest
Posts: n/a
 
      3rd Mar 2010
Hello,

I just typed this in and the message didn't take - I hope this is not
duplicated.

I have inherited a spreadsheet with 3 month rolling totals. Is there a way
to automate this?

Sample:
Widget(A1) Jan(B1) Feb(C1) Mar(D1) TOTAL(E1)
Where TOTAL = sum(b1:d1)

Next month, we add Apr(E1) moves TOTAL to (F1) and doesn't compute Jan(B1)
Where TOTAL = sum(c1:e1)

There are many rows with this type of data and so I would rather not
copy/paste/reformat the formula.

Thanks in advance!

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming
 
Reply With Quote
 
 
 
 
Paul C
Guest
Posts: n/a
 
      3rd Mar 2010
Try something like this
A B C D E
1 Jan Feb Mar Apr Tot
2 1 2 3 4 9

The formula for E2 is =SUM(OFFSET(E2,0,-3,1,3))

This defines a range 1 row and three columns wide that always starts 3
columns to the left of the cell with the formula, so when you add a column
(like May) the total formula still references the correct 3 cells.
--
If this helps, please remember to click yes.


"DTTODGG" wrote:

> Hello,
>
> I just typed this in and the message didn't take - I hope this is not
> duplicated.
>
> I have inherited a spreadsheet with 3 month rolling totals. Is there a way
> to automate this?
>
> Sample:
> Widget(A1) Jan(B1) Feb(C1) Mar(D1) TOTAL(E1)
> Where TOTAL = sum(b1:d1)
>
> Next month, we add Apr(E1) moves TOTAL to (F1) and doesn't compute Jan(B1)
> Where TOTAL = sum(c1:e1)
>
> There are many rows with this type of data and so I would rather not
> copy/paste/reformat the formula.
>
> Thanks in advance!
>
> ----------------
> This post is a suggestion for Microsoft, and Microsoft responds to the
> suggestions with the most votes. To vote for this suggestion, click the "I
> Agree" button in the message pane. If you do not see the button, follow this
> link to open the suggestion in the Microsoft Web-based Newsreader and then
> click "I Agree" in the message pane.
>
> http://www.microsoft.com/office/comm...el.programming

 
Reply With Quote
 
DTTODGG
Guest
Posts: n/a
 
      3rd Mar 2010
Thank you Paul ... simple and beautiful!

"Paul C" wrote:

> Try something like this
> A B C D E
> 1 Jan Feb Mar Apr Tot
> 2 1 2 3 4 9
>
> The formula for E2 is =SUM(OFFSET(E2,0,-3,1,3))
>
> This defines a range 1 row and three columns wide that always starts 3
> columns to the left of the cell with the formula, so when you add a column
> (like May) the total formula still references the correct 3 cells.
> --
> If this helps, please remember to click yes.
>
>
> "DTTODGG" wrote:
>
> > Hello,
> >
> > I just typed this in and the message didn't take - I hope this is not
> > duplicated.
> >
> > I have inherited a spreadsheet with 3 month rolling totals. Is there a way
> > to automate this?
> >
> > Sample:
> > Widget(A1) Jan(B1) Feb(C1) Mar(D1) TOTAL(E1)
> > Where TOTAL = sum(b1:d1)
> >
> > Next month, we add Apr(E1) moves TOTAL to (F1) and doesn't compute Jan(B1)
> > Where TOTAL = sum(c1:e1)
> >
> > There are many rows with this type of data and so I would rather not
> > copy/paste/reformat the formula.
> >
> > Thanks in advance!
> >
> > ----------------
> > This post is a suggestion for Microsoft, and Microsoft responds to the
> > suggestions with the most votes. To vote for this suggestion, click the "I
> > Agree" button in the message pane. If you do not see the button, follow this
> > link to open the suggestion in the Microsoft Web-based Newsreader and then
> > click "I Agree" in the message pane.
> >
> > http://www.microsoft.com/office/comm...el.programming

 
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
Rolling totals DTH99 Microsoft Excel Worksheet Functions 1 9th Oct 2009 10:37 AM
Rolling Totals for 6 month and 12 month Coach K Microsoft Access Queries 2 13th Jul 2009 05:26 PM
How do I set up 12-month rolling month cells in excel? =?Utf-8?B?amJo?= Microsoft Excel Misc 2 30th Nov 2005 08:12 PM
Perpetually summing totals for a rolling 6 month period mdmonzon Microsoft Excel Worksheet Functions 0 10th Aug 2004 06:35 PM
Re: Rolling 6 month totals Peo Sjoblom Microsoft Excel Worksheet Functions 1 3rd Jun 2004 06:56 PM


Features
 

Advertising
 

Newsgroups
 


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