Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Rolling year calculations

Can someone help please
I colate the amount of sick days someone has off each month, what i would
like to be able to do is put in a calculation or something that will tell me
how many over the previous 12 months and then each new month it adds the
current month and drops of the oldest month to create a new total 12 month
rolling figure
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Rolling year calculations

Hi,

It would be a great deal easier if the data layout was available but here's
something you could adapt maybe:-

A B
Jan-06 3
Feb-06 5
Mar-06 6
Apr-06 7
May-06 4
Jun-06 5
Jul-06 5
Aug-06 4
Sep-06 12
Oct-06 12
Nov-06 3
Dec-06 4
Jan-07 5
Feb-07 6
Mar-07 78
Apr-07 7
May-07 6
Jun-07 5
Jul-07 4

Which are the months which you will add to and the days absence. Somewhere
else enter the formula:-

=SUMIF(A1:A100,"<"&TODAY(),B1:B100)-(SUMIF(A1:A100,"<"&TODAY()-365,B1:B100))

For today the formula would add the current July and the previous 11 months
and if anyone has a record this bad then dismissal is an option:)

Mike



"louiscourtney" wrote:

Can someone help please
I colate the amount of sick days someone has off each month, what i would
like to be able to do is put in a calculation or something that will tell me
how many over the previous 12 months and then each new month it adds the
current month and drops of the oldest month to create a new total 12 month
rolling figure

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Rolling year calculations

Mike that looks perfect, the only problem i have
I have each year on a differant tab what part of the sum should i change to
pick up the other tab?

Thanks for your help so far
Shane

"Mike H" wrote:

Hi,

It would be a great deal easier if the data layout was available but here's
something you could adapt maybe:-

A B
Jan-06 3
Feb-06 5
Mar-06 6
Apr-06 7
May-06 4
Jun-06 5
Jul-06 5
Aug-06 4
Sep-06 12
Oct-06 12
Nov-06 3
Dec-06 4
Jan-07 5
Feb-07 6
Mar-07 78
Apr-07 7
May-07 6
Jun-07 5
Jul-07 4

Which are the months which you will add to and the days absence. Somewhere
else enter the formula:-

=SUMIF(A1:A100,"<"&TODAY(),B1:B100)-(SUMIF(A1:A100,"<"&TODAY()-365,B1:B100))

For today the formula would add the current July and the previous 11 months
and if anyone has a record this bad then dismissal is an option:)

Mike



"louiscourtney" wrote:

Can someone help please
I colate the amount of sick days someone has off each month, what i would
like to be able to do is put in a calculation or something that will tell me
how many over the previous 12 months and then each new month it adds the
current month and drops of the oldest month to create a new total 12 month
rolling figure

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Rolling year calculations

How are your tabs named ? (And I assume data is Jan to Dec on each)

"louiscourtney" wrote:

Mike that looks perfect, the only problem i have
I have each year on a differant tab what part of the sum should i change to
pick up the other tab?

Thanks for your help so far
Shane

"Mike H" wrote:

Hi,

It would be a great deal easier if the data layout was available but here's
something you could adapt maybe:-

A B
Jan-06 3
Feb-06 5
Mar-06 6
Apr-06 7
May-06 4
Jun-06 5
Jul-06 5
Aug-06 4
Sep-06 12
Oct-06 12
Nov-06 3
Dec-06 4
Jan-07 5
Feb-07 6
Mar-07 78
Apr-07 7
May-07 6
Jun-07 5
Jul-07 4

Which are the months which you will add to and the days absence. Somewhere
else enter the formula:-

=SUMIF(A1:A100,"<"&TODAY(),B1:B100)-(SUMIF(A1:A100,"<"&TODAY()-365,B1:B100))

For today the formula would add the current July and the previous 11 months
and if anyone has a record this bad then dismissal is an option:)

Mike



"louiscourtney" wrote:

Can someone help please
I colate the amount of sick days someone has off each month, what i would
like to be able to do is put in a calculation or something that will tell me
how many over the previous 12 months and then each new month it adds the
current month and drops of the oldest month to create a new total 12 month
rolling figure

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Rolling year calculations

Try:

=SUMPRODUCT(SUMIF(INDIRECT("'"&$H$1:$H$2&"'!A1:A10 0"),"<="
&TODAY(),INDIRECT("'"&$H$1:$H$2&"'!B1:B100"))-SUMIF(INDIRECT("'"&$H$1:$H$2&"'!A1:A100"),"<=" &TODAY()-365,INDIRECT("'"&$H$1:$H$2&"'!B1:B100")))

Put Mike's 06 data on Sheet1 anf 07 on Sheet2. Put "Sheet1" in H1 (no
quotes) and "Sheet2" in H2.

(It then needs adapting for your sheet names)

HTH

"Toppers" wrote:

How are your tabs named ? (And I assume data is Jan to Dec on each)

"louiscourtney" wrote:

Mike that looks perfect, the only problem i have
I have each year on a differant tab what part of the sum should i change to
pick up the other tab?

Thanks for your help so far
Shane

"Mike H" wrote:

Hi,

It would be a great deal easier if the data layout was available but here's
something you could adapt maybe:-

A B
Jan-06 3
Feb-06 5
Mar-06 6
Apr-06 7
May-06 4
Jun-06 5
Jul-06 5
Aug-06 4
Sep-06 12
Oct-06 12
Nov-06 3
Dec-06 4
Jan-07 5
Feb-07 6
Mar-07 78
Apr-07 7
May-07 6
Jun-07 5
Jul-07 4

Which are the months which you will add to and the days absence. Somewhere
else enter the formula:-

=SUMIF(A1:A100,"<"&TODAY(),B1:B100)-(SUMIF(A1:A100,"<"&TODAY()-365,B1:B100))

For today the formula would add the current July and the previous 11 months
and if anyone has a record this bad then dismissal is an option:)

Mike



"louiscourtney" wrote:

Can someone help please
I colate the amount of sick days someone has off each month, what i would
like to be able to do is put in a calculation or something that will tell me
how many over the previous 12 months and then each new month it adds the
current month and drops of the oldest month to create a new total 12 month
rolling figure



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Rolling year calculations

Thanks Toppers
I should have made myself clearer from the start
I will try to explain

One tab named history with names down one side in column A and then the
months going across the top Jan, Feb,mar,Apr,May etc etc with a totals column
at the end
Then there is the current year tab with the same names down one side and the
months across the top.
What i need to know is the calculation that links both sheets giving me a
riolling 12 month figure

Thanks to anyone that can solve this for me

"Toppers" wrote:

Try:

=SUMPRODUCT(SUMIF(INDIRECT("'"&$H$1:$H$2&"'!A1:A10 0"),"<="
&TODAY(),INDIRECT("'"&$H$1:$H$2&"'!B1:B100"))-SUMIF(INDIRECT("'"&$H$1:$H$2&"'!A1:A100"),"<=" &TODAY()-365,INDIRECT("'"&$H$1:$H$2&"'!B1:B100")))

Put Mike's 06 data on Sheet1 anf 07 on Sheet2. Put "Sheet1" in H1 (no
quotes) and "Sheet2" in H2.

(It then needs adapting for your sheet names)

HTH

"Toppers" wrote:

How are your tabs named ? (And I assume data is Jan to Dec on each)

"louiscourtney" wrote:

Mike that looks perfect, the only problem i have
I have each year on a differant tab what part of the sum should i change to
pick up the other tab?

Thanks for your help so far
Shane

"Mike H" wrote:

Hi,

It would be a great deal easier if the data layout was available but here's
something you could adapt maybe:-

A B
Jan-06 3
Feb-06 5
Mar-06 6
Apr-06 7
May-06 4
Jun-06 5
Jul-06 5
Aug-06 4
Sep-06 12
Oct-06 12
Nov-06 3
Dec-06 4
Jan-07 5
Feb-07 6
Mar-07 78
Apr-07 7
May-07 6
Jun-07 5
Jul-07 4

Which are the months which you will add to and the days absence. Somewhere
else enter the formula:-

=SUMIF(A1:A100,"<"&TODAY(),B1:B100)-(SUMIF(A1:A100,"<"&TODAY()-365,B1:B100))

For today the formula would add the current July and the previous 11 months
and if anyone has a record this bad then dismissal is an option:)

Mike



"louiscourtney" wrote:

Can someone help please
I colate the amount of sick days someone has off each month, what i would
like to be able to do is put in a calculation or something that will tell me
how many over the previous 12 months and then each new month it adds the
current month and drops of the oldest month to create a new total 12 month
rolling figure

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
Rolling Year Tim Halpin (BV) Excel Discussion (Misc queries) 2 March 5th 07 12:07 PM
Rolling 12 week calculations Throwme A Frigginbone Excel Worksheet Functions 2 January 9th 07 09:37 AM
Rolling year Marilyn Excel Discussion (Misc queries) 2 June 18th 06 03:11 AM
Rolling Year in Excel JJC Excel Discussion (Misc queries) 0 June 8th 05 11:21 PM
rolling year in excel JJC Excel Worksheet Functions 1 June 8th 05 12:36 AM


All times are GMT +1. The time now is 08:47 AM.

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

About Us

"It's about Microsoft Excel"