Rolling 12 month total

M

MH

Hi,
I have searched to message boards and can't quite find what i'm looking for.
I'm trying to keep a 12 month running tally (When I enter the information
for a new month, the oldest month drops out keeping only 12 months of
information)

I currently have a worksheet with 2 matrixes of information.

A5-A16 holds the months of 2008 (Jan, Feb,...) and E5-E16 holds the monthly
totals.
A22-A33 hold the months of 2009 and E22-E33 holds the montly totals.

In a cell (F39 on my worksheet) I'd like to keep the 12 month rolling total
such that when I enter the data for June, the total in F39 will update for
the period of Jun09-Jul08.

Thanks for any help.
 
S

Shane Devenshire

Hi,

If the data were contiguous one would use something like

=SUM(OFFSET(C1,COUNT(C:C)-1,,-12))

in your case try

=SUM(E22:E33,OFFSET($E$5,COUNT(E22:E33),,12-COUNT(E22:E33)))
 
L

Lars-Åke Aspelin

Hi,
I have searched to message boards and can't quite find what i'm looking for.
I'm trying to keep a 12 month running tally (When I enter the information
for a new month, the oldest month drops out keeping only 12 months of
information)

I currently have a worksheet with 2 matrixes of information.

A5-A16 holds the months of 2008 (Jan, Feb,...) and E5-E16 holds the monthly
totals.
A22-A33 hold the months of 2009 and E22-E33 holds the montly totals.

In a cell (F39 on my worksheet) I'd like to keep the 12 month rolling total
such that when I enter the data for June, the total in F39 will update for
the period of Jun09-Jul08.

Thanks for any help.


Assuming that the cells E17-E21 are blanks, try the following formula:

=SUMPRODUCT((E5:E33)*(ROW(E5:E33)>=LARGE(ROW(E5:E33)*((E5:E33)<>""),12)))

Hope this helps / Lars-Åke
 
L

Lars-Åke Aspelin

Hi,

If the data were contiguous one would use something like

=SUM(OFFSET(C1,COUNT(C:C)-1,,-12))

in your case try

=SUM(E22:E33,OFFSET($E$5,COUNT(E22:E33),,12-COUNT(E22:E33)))


This formula does unfortunately not work when December data comes.
When there is data in all of E22-E33 there is a #REF! error generated.

Lars-Åke
 
L

Lars-Åke Aspelin

Assuming that the cells E17-E21 are blanks, try the following formula:

=SUMPRODUCT((E5:E33)*(ROW(E5:E33)>=LARGE(ROW(E5:E33)*((E5:E33)<>""),12)))

Hope this helps / Lars-Åke


If you want to allow any data in E17-E21 try this modified formula:

=SUM(E22:E33)+IF(COUNT(E22:E33)<12,SUMPRODUCT((E5:E16)*(ROW(E5:E16)>=LARGE(ROW(E5:E16),12-COUNT(E22:E33)))))

Hope this helps / Lars-Åke
 
T

T. Valko

E5-E16 holds the monthly totals.
E22-E33 holds the montly totals.

So what's in the cells between those 2 ranges? What's in E17:E21? Are there
any numeric values in those cells?
 
R

RagDyeR

This will work *only* if E17 to E21 are populated with TEXT, or they're
empty:

=SUM(INDEX(E5:E33,LARGE(INDEX(ROW(1:29)*(ISNUMBER(E5:E33)),),12)):E33)
--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================


Hi,
I have searched to message boards and can't quite find what i'm looking for.
I'm trying to keep a 12 month running tally (When I enter the information
for a new month, the oldest month drops out keeping only 12 months of
information)

I currently have a worksheet with 2 matrixes of information.

A5-A16 holds the months of 2008 (Jan, Feb,...) and E5-E16 holds the monthly
totals.
A22-A33 hold the months of 2009 and E22-E33 holds the montly totals.

In a cell (F39 on my worksheet) I'd like to keep the 12 month rolling total
such that when I enter the data for June, the total in F39 will update for
the period of Jun09-Jul08.

Thanks for any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top