+ Reply to Thread
Results 1 to 5 of 5

Hourly AVG formula confusion

  1. #1
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Myrtle Beach, South Carolina
    MS-Off Ver
    =IF(Win 7,"Excel 2010","Mac Excel 2011")
    Posts
    104

    Hourly AVG formula confusion

    I made a sheet to track employees hourly production of widget wiring. I came across an instance that has me stumped. If an employee misses the morning hours my formula doesn't compute the hourly average accurately. I could use a hand. Thanks

    ps The Orange box is the morning average from 7:30-12:50. the purple one is the afternoon average 1:15-5:15.

    Hourly wiring graph helper.xls

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Hourly AVG formula confusion

    Are you trying to exclude the zeroes? Try AVERAGEIF, i.e.

    =AVERAGEIF(E2:E6,">0")
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Myrtle Beach, South Carolina
    MS-Off Ver
    =IF(Win 7,"Excel 2010","Mac Excel 2011")
    Posts
    104

    Re: Hourly AVG formula confusion

    thanks Daddylonglegs, I will use that formula, but my formula in the E column isn't correct. My formula is ("total units made" / 1) for the first hour, ("total units made" / 2) for the second hour... etc. If an employee is 3 hours late and starts at 10:30 then their hourly average would not be correct.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hourly AVG formula confusion

    How can you tell that they missed hours? If HOUR is 0? In your example, there is only one HOUR that is not 0. Is it when TOTAL is blank? I'll assume that but what does it look like if they miss afternoon hours?

    What is the AVG column supposed to indicate? It looks to me like a running average, and so the figure in the orange box should be the same as the AVG in the same row.

    If so I have attached a possible solution. The column AVG shows the running average for the entire day. The orange box shows the average for the morning, and the purple box shows the average for the afternoon.

    jakeisbill=Hourly wiring graph helper.xls
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Myrtle Beach, South Carolina
    MS-Off Ver
    =IF(Win 7,"Excel 2010","Mac Excel 2011")
    Posts
    104

    Re: Hourly AVG formula confusion

    Thanks 6String I could have explained it better, but your formula does exactly what I needed. SOLVED by 6StringJazzer

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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