Search code examples
excelexcel-2013

How can I average durations in excel?


I have timespans that originated in SQL that look like:

--Almost 2 seconds pass each time
00:00:01.9277759
00:00:01.7708749

I formatted the column with a custom number format: [hh]:mm:ss.0

I tried to average the data: =AVERAGE(A1:A2) or =(A1+A2)/2

Result: #DIV/0! or #VALUE! (respectively)

How can I average durations in excel?


Solution

  • With your data in A1 and A2 , etc. In B1 enter:

    =--RIGHT(A1,9)
    

    and copy down

    Then:

    =AVERAGE(B1:B2) will display 1.8493254