+ Reply to Thread
Results 1 to 4 of 4

How to get Average for time?

  1. #1
    Registered User
    Join Date
    02-04-2010
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    22

    How to get Average for time?

    Hello,

    I have these values in the spreadsheet attached (handling call times)

    00:09:37
    00:05:12
    00:04:28
    00:05:11
    00:09:59
    00:06:26
    00:10:56
    00:06:07
    00:06:39
    00:07:58
    00:06:40

    I'm trying to find the average handling time + the total handling time

    Tried to format the cells to Time but still getting these errors

    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-08-2020
    Location
    Lublin, Poland
    MS-Off Ver
    2003, 2007, 2010, 2019 (home); 2002, 2007, 2016, 365 (work)
    Posts
    69

    Re: How to get Average for time?

    Your problem is that you are trying to add texts and calculate an average of texts, not numbers.

    Quick and dirty solution. You can join formulas from separate cells into longer formulas place in single cells.
    avg for time 1.png

    avg for time 2.png
    Last edited by PKowalik; 06-09-2020 at 03:45 AM.
    Przemyslaw Kowalik, Lublin Univ. of Technology

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: How to get Average for time?

    PKowalik,

    That's an alright approach, but it's not really taking advantage of the built in excel date-time values.

    You could create a helper column in B1:
    Please Login or Register  to view this content.
    and pull that down, and that would deliver the end result of "count of seconds" just fine.
    (I would take this option if I was concerned I'd need to do other kinds of sanitization on the data input).

    Conversely,
    It would also be possible to select the whole column A,
    Then in Data Ribbon => Data Tools Panel => Text to Column
    Then just smack the "Next" button in the Wizard three times.

    That will tell excel to go and assess the values in column A and apply the same logic testing if they're numbers or times or what that it would apply if you were typing them in fresh.

    By doing that, the AVERAGE and SUM formulas will work as expected.

    Note that if there are more than 24 hours in a sum it will role the date over and silently be 1 day + time,
    so the cell should be custom formatted to "[h]:mm:ss" to force it to show total number of hours, even if it's more than 24.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  4. #4
    Registered User
    Join Date
    05-08-2020
    Location
    Lublin, Poland
    MS-Off Ver
    2003, 2007, 2010, 2019 (home); 2002, 2007, 2016, 365 (work)
    Posts
    69

    Re: How to get Average for time?

    @ben_hensel
    You are absolutely right. I just like maths and I keep forgetting how date/time data are handled internally in Excel .
    Anyway, I thought a moment and in my opinion even a helper column is not necessary.
    Array formulas
    =SUM(TIMEVALUE(A2:A12))
    =AVERAGE(TIMEVALUE(A2:A12))
    will do the job, too (with formatting as you described, of course).
    Last edited by PKowalik; 06-09-2020 at 04:13 AM.

+ 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] Weighted Average of Sequential Time Based Data Series Using Start/End Time Input
    By marcoyul in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2017, 12:10 PM
  2. Calculating average wait time across time intervals
    By rjng90 in forum Excel General
    Replies: 7
    Last Post: 04-16-2016, 02:07 AM
  3. Replies: 3
    Last Post: 06-12-2014, 09:29 AM
  4. Replies: 2
    Last Post: 06-11-2014, 11:39 AM
  5. Average values if the associated time of occurence falls within a certain time range
    By boarderbrent91 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-02-2014, 01:49 PM
  6. [SOLVED] average time based on clock time range
    By xrayexceller in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-23-2013, 06:40 PM
  7. Average Function-caclulate the average time spent
    By darryl in forum Excel General
    Replies: 1
    Last Post: 06-25-2010, 07:36 AM

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