Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default Rolling running total by date

I am creating a flying log book on my computer. What I am trying to do is to
keep a total flying hours for the previous rolling 28 calender days. Column
'A' is the date and column 'M' is the hours flown. Days that I dont fly, have
no entry but must be included in the calculations.
Any help would be appreciated. Thank you
--
AOU
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Rolling running total by date

Starting in cell B28, this formula will drag down for subsequent days
and sum the desired range on a rolling basis:
=SUM(OFFSET(A28,-27,0,1,1):A28)

  #3   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default Rolling running total by date

Thanks Dave. Before I try this, will it also sum days that are not entered.
ie If one entry is, say the 1st jan 07 then the next entry 5th jan 07, will
it include 2nd through to 4th as part of the 28 day total as zero figures?
--
AOU


"Dave O" wrote:

Starting in cell B28, this formula will drag down for subsequent days
and sum the desired range on a rolling basis:
=SUM(OFFSET(A28,-27,0,1,1):A28)


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Rolling running total by date

That formula assumes a continuous run of dates, such May 1 to May 31.
It considers days that do not have an entry of flight hours and
includes those zero or null values in the calculation. To test, set
up a series of 28 days all with one hour entered: your total should be
28. Delete some of the ones at random to signify non-flying days, and
your total will reduce accordingly.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Rolling running total by date

That formula assumes a continuous run of dates, such May 1 to May 31.
It considers days that do not have an entry of flight hours and
includes those zero or null values in the calculation. To test, set
up a series of 28 days all with one hour entered: your total should be
28. Delete some of the ones at random to signify non-flying days, and
your total will reduce accordingly.




  #6   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default Rolling running total by date

Sorry Dave,
It comes back 'Too few arguments' it high lights :A28 at the end of the
formula.

--
AOU


"Dave O" wrote:

That formula assumes a continuous run of dates, such May 1 to May 31.
It considers days that do not have an entry of flight hours and
includes those zero or null values in the calculation. To test, set
up a series of 28 days all with one hour entered: your total should be
28. Delete some of the ones at random to signify non-flying days, and
your total will reduce accordingly.



  #7   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default Rolling running total by date

Dave,
Iv worked it out by using the following formula
=SUMPRODUCT(($A$6:$A$2003=F20546)*($A$6:$A$2003<E 20543)*($M$6:$M$2003))
And searching the sum of the hours between two dates.
Thanks for your help, it got me onto the right path.
--
AOU


"AOU" wrote:

I am creating a flying log book on my computer. What I am trying to do is to
keep a total flying hours for the previous rolling 28 calender days. Column
'A' is the date and column 'M' is the hours flown. Days that I dont fly, have
no entry but must be included in the calculations.
Any help would be appreciated. Thank you
--
AOU

  #8   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default Rolling running total by date

I do have another question? sorry!!!
Iv linked a textbox with a cell which has a value in 'hh:mm'. I am not able
to format the textbox to display the same value as the cell (ie 'hh:mm'). Can
you help?
--
AOU


"AOU" wrote:

Dave,
Iv worked it out by using the following formula
=SUMPRODUCT(($A$6:$A$2003=F20546)*($A$6:$A$2003<E 20543)*($M$6:$M$2003))
And searching the sum of the hours between two dates.
Thanks for your help, it got me onto the right path.
--
AOU


"AOU" wrote:

I am creating a flying log book on my computer. What I am trying to do is to
keep a total flying hours for the previous rolling 28 calender days. Column
'A' is the date and column 'M' is the hours flown. Days that I dont fly, have
no entry but must be included in the calculations.
Any help would be appreciated. Thank you
--
AOU

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
sum of rolling (set number cells above the total)l Ohmer4j Excel Discussion (Misc queries) 4 March 30th 07 09:48 PM
running total and average of that total after 3 events belvy123 Excel Discussion (Misc queries) 0 March 28th 07 02:57 AM
running total and average of that total after 3 events Toppers Excel Discussion (Misc queries) 1 March 28th 07 02:19 AM
12 month Rolling Total Need Help Excel Worksheet Functions 0 September 22nd 06 03:19 PM
running total by date (not sorted by date though...) rainxking Excel Worksheet Functions 4 May 16th 06 02:01 AM


All times are GMT +1. The time now is 01:09 AM.

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"