+ Reply to Thread
Results 1 to 5 of 5

Calculating average time

  1. #1
    Registered User
    Join Date
    09-02-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Calculating average time

    Hi All.

    I need a formula that would calculate average time of input of a product into the system.

    When you take a look at the attachment, in the first column you will find employee name, second column contains the name of a product and the third column contains the time of input.
    Now, I'd like to answer the question: how long, on average, does it take for an employee to prepare a product?

    Note: I added colors to make it easier to understand how excel NEEDS TO CALCULATE it.

    For the employee Tom we would need to:

    1) Subtract the time in column C30 (20:20:07) from the time in column C23 (18:03:03), which would give us 02:17:04; It therefore took Tom 2 hrs, 52 min, and 2 sec to prepare the product_DDD.
    2) To prepare product_CCC, it took Tom 00:52:05 (C23-C11),
    3) To prepare product_BBB, it took Tom 02:50:58 (C11-C4),
    4) To get an average, we would need to add the times: 02:17:04 + 00:52:05 + 02:50:58 and divide them by 3.

    Q: How long, on average, does it take for an employee to prepare a product?
    A: For Tom it's: 02:00:02

    In this case, data needs to be calculated for Tom only. Later, I'd like to know the answer, how long it took Agnes to prepare the product.

    Of course, each time I download the report, data (the highest time) is in a different row (all formulas in column D was input manually), so I need a universal formula to calculate the average time.

    Hope what I wrote is clear.
    Any help greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Calculating average time

    Could this be the answer you are looking for? It should work... the only issue is that it accounts for the 1 minute worktime of the first 3 rows. If you delete that cell (or don't include it in the AVERAGEIF calculation, it returns the correct result. <--- Has been corrected in the formula in my next post, and in the updated spreadsheet attached to that post.

    - Vince
    Attached Files Attached Files
    Last edited by Moo the Dog; 10-14-2012 at 11:37 PM.

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Calculating average time

    If you put this formula in cell D2 and fill down, it will skip that top part and return the correct value you are looking for.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Updated spreadsheet attached.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-02-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Calculating average time

    Brilliant!!! Thank you for your hard work. Excellent formulas.
    Unfortunately, I use Excel 2003 at work and formulas such as: COUNTIFS and AVERAGEIF do not work. Is there any workaround?

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Calculating average time

    Sure, change the formula in cell D2 to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and fill down. Should do the trick for the calculating...


    As far as the averaging, change the formula in D39 to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and hit Ctrl+Shift+Enter (It is an array formula)


    and change the formula in D40 to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    again pressing Ctrl+Shift+Enter for the array formula to work.

    - Vince
    Attached Files Attached Files
    Last edited by Moo the Dog; 10-15-2012 at 01:26 PM. Reason: Added Updated Excel2003 Spreadsheet

+ 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