+ Reply to Thread
Results 1 to 12 of 12

Average Hours Per Day - Running Total Average

Hybrid View

  1. #1
    Registered User
    Join Date
    09-16-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Average Hours Per Day - Running Total Average

    Hi all,

    I have a list of daily hours a machine has achieved by date, (the total hours of operation of that machine for each day of it's life). I want to find the average hours that machine is used in a day.
    So I need to calculate the differences between two consecutive cells (B2-B1, B3-B2...ect), then find the average of all those differences to give me an estimated hourly use of a machine per day.

    I’m trying very hard not to create any additional columns for “working” in my spreadsheet.

    My data is

    ROW COLUMN A COLUMN B
    DATE HOURS
    1 01 Oct 12 29,091
    2 02 Oct 12 29,111
    3 03 Oct 12 29,130
    4 04 Oct 12 29,150
    5 05 Oct 12 29,172
    6 06 Oct 12 29,172
    7 07 Oct 12 29,172
    8 08 Oct 12 29,172
    9 09 Oct 12 29,182
    10 10 Oct 12 29,192
    11 11 Oct 12 29,208
    12 12 Oct 12 29,208
    13 13 Oct 12 29,227
    14 14 Oct 12 29,248
    15 15 Oct 12 29,271
    16 16 Oct 12 29,294
    17 17 Oct 12 29,315
    18 18 Oct 12 29,330
    19 19 Oct 12 29,352
    20 20 Oct 12 29,365
    21 21 Oct 12 29,387
    22 22 Oct 12 29,408
    23 23 Oct 12 29,430
    24 24 Oct 12 29,448
    25 25 Oct 12 29,468
    26 26 Oct 12 29,486
    27 27 Oct 12 29,487
    28 28 Oct 12 29,503
    29 29 Oct 12 29,505
    30 30 Oct 12 29,506
    31 31 Oct 12 29,512


    Manually I have worked out that this machine works on average 14 hours a day, but in my manual workings I needed to make an extra column to create the difference in values between each day.

    Another thing, this list is being updated daily (new daily hours are being entered), so I need the formula to be able to pick up the new entries as they are entered.
    I don’t want much do I

    If you can help it would be much appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Average Hours Per Day - Running Total Average

    Hi ABAUS and welcome to the forum

    its a little hard to make out where 1 set of data enda and another starts, when you copy/paste like that

    perhaps it would be easier to help you if you uploaded a sample workbook, showing what data you are working with, a few examples of what your expected outcome would be, and how you would arrive at that (remove any confidential info if necessary).
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: Average Hours Per Day - Running Total Average

    Control+shift+enter, not just enter:

    =AVERAGE(B3:B32-B2:B31)

  4. #4
    Registered User
    Join Date
    09-16-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Average Hours Per Day - Running Total Average

    Hi, Sorry for the confusion

    Attached is my data for one machine and it's hours from 30/6/2009 though to the 6/12/2012.
    these figures are the hour reader (think a car odometer reading), these hours accumulate overtime the machine is turned on.

    How many hours on average per day did the machine work for?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-16-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Average Hours Per Day - Running Total Average

    how can I turn that formula {=AVERAGE(B3:B32-B2:B31} into an "open ended formula" (for want of a better phrase) so that any new entered data is captured.
    Each day the spreadsheet is updated with new hours for the machine.

  6. #6
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: Average Hours Per Day - Running Total Average

    Quote Originally Posted by ABAUS View Post
    how can I turn that formula {=AVERAGE(B3:B32-B2:B31} into an "open ended formula" (for want of a better phrase) so that any new entered data is captured.
    Each day the spreadsheet is updated with new hours for the machine.
    Control+shift+enter, not just enter:

    =AVERAGE(B3:INDEX(B:B,MATCH(9.99E+307,B:B))-B2:INDEX(B:B,MATCH(9.99E+307,B:B)-1))

    You could also enter in C1:

    =MATCH(9.99E+307,B:B)

    and invoke instead:

    =AVERAGE(B3:INDEX(B:B,C1)-B2:INDEX(B:B,C1-1))
    Last edited by Aladin Akyurek; 01-15-2013 at 03:36 AM.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Average Hours Per Day - Running Total Average

    Not sure if this is what you want, but give it a try and let me know?

    =AVERAGE($B$2:B3)-AVERAGE($B$1:B2)

    copied down

  8. #8
    Registered User
    Join Date
    09-16-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Average Hours Per Day - Running Total Average

    Hi,

    I've updated my spreadsheet.
    I've added a small table, this is the Report I'm trying to create, please try to ignore all the other cells except the yellow one but it might help you understand what I'm trying to do.
    So for a machine I am estimating the service intervals required for that machine. i.e. my machine needs a service every 250 hours, i can work out when the next service is due, roughly the date that that service is due on, what the hour meter will read when the service is due.

    In my yellow cell (K7), I want the formula to work out a)the newest entry-earliest entry, then average that
    As at 6/12/2012=(Earliest entry-first entry/count of nonblank cells) OR(B1257-B2/1256) = 14.3 hours (this machine operates for an average of 14.3 hours a day)


    HOWEVER on the next day 7/12/2012, a new entry will be added to row 1258, so I need my formula to add this in and adjust the average...... does that make any sense at all!!
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: Average Hours Per Day - Running Total Average

    Regarding the updated spreadsheet...

    K6:

    =MATCH(9.99E+307,B:B)

    K8:

    =(INDEX(B:B,K6)-B2)/COUNT(B2:INDEX(B:B,K6))
    Last edited by Aladin Akyurek; 01-15-2013 at 03:57 PM.

  10. #10
    Registered User
    Join Date
    03-06-2014
    Location
    Pongola, RSA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Average Hours Per Day - Running Total Average

    Hi everyone I have the exact problem but it does not solve what I am hoping to achieve.

    I know there is a lot of bright minds on this forum and I know you can solve my problem.

    I have attached a document so you guys can see what I am hoping to achieve.
    Attached Files Attached Files

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Average Hours Per Day - Running Total Average

    Hi sovero and welcome to the forum Hoe gaan dit daar in Pongola?

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  12. #12
    Registered User
    Join Date
    03-06-2014
    Location
    Pongola, RSA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Average Hours Per Day - Running Total Average

    Wow so you speak Afrikaans Dit gaan goed hier in Pongola dankie

    I have opened a new thread like you suggested and I just want to thank you for giving me advise as I am new to this forum.

    The new thread link can be found here

    http://www.excelforum.com/excel-form...ml#post3611949

    Kind Regards,
    Wessel

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1