+ Reply to Thread
Results 1 to 11 of 11

Display running average of hours/minutes

  1. #1
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Display running average of hours/minutes

    Hello, I have a formula here that does not seem to be working very well for showing an average time for the previous day. I am simply adding a start time in column A and finish time in column B. As this data is added during the course of a day, I want to display a running average as this happens to see if jobs are getting completed slower or faster. This is the formula i am using for the average, it seems to work ok for the current day, but the previous day is off like 30-45 minutes.

    Code for TODAY:
    Please Login or Register  to view this content.
    Code for Previous Day:
    Please Login or Register  to view this content.
    I am using this for to cover the first 100 rows for now, but maybe there is even a better formula to display a running average. Any help is greatly appreciated.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Display running average of hours/minutes

    ">=" TODAY()-1, spans yesterday and today; therefore:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Display running average of hours/minutes

    protonLeah... thanks for the help. The formula now gives me #DIV/0! error in the cell. Not sure what is happening there.

  4. #4
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Display running average of hours/minutes

    I wanted to make sure I am as specific as possible as to what I am doing.... Based on the formula, Column D2:D100 is the Date&Time the job was finished. Column E2:E100 is the time it took to finish formatted h:mm.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Display running average of hours/minutes

    You should upload a workbook. That error indicates that there were none for the previous day.

  6. #6
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Display running average of hours/minutes

    Thanks for any help with the file attached... I am completely stuck on this and cannot figure out why the previous day will not return the correct results. Today seems to average just fine.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Display running average of hours/minutes

    Someone? Please help....

  8. #8
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Display running average of hours/minutes

    Can someone figure this out? I feel I am asking the impossible. Any help would be greatly appreciated.

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Display running average of hours/minutes

    What are you calculating in column E?

  10. #10
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Display running average of hours/minutes

    ProtonLeah... I am calculating the average time of the job from start to finish between the hours of 7am to 4pm.

  11. #11
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Display running average of hours/minutes

    Since Today() returns an integer and your dates include times (decimals), for previous day, try:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by protonLeah; 09-12-2014 at 02:14 AM.

  12. #12
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Display running average of hours/minutes

    ProtonLeah... I can't thank you enough, this works great. I appreciate your time and help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Average Hours Per Day - Running Total Average
    By ABAUS in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-06-2014, 03:42 PM
  2. [SOLVED] Display HOURS in one cell and MINUTES in another
    By chris1965 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-23-2013, 10:25 AM
  3. Display total hours/minutes on chart
    By AARONRYE in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-12-2011, 07:55 AM
  4. Producing a bar chart to display hours and minutes
    By BUSJEDWA in forum Excel General
    Replies: 3
    Last Post: 02-16-2007, 10:00 AM
  5. [SOLVED] Hours and minutes display as date in formula box
    By Dave in forum Excel General
    Replies: 13
    Last Post: 07-28-2006, 02:55 PM

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