30 Advanced Excel Tips for 2026

Excel Champs / Excel Formulas List / How to Calculate the Average of the Time Values in Excel (Formula)
By Puneet Gogia (Microsoft MVP)

How to Calculate the Average of the Time Values in Excel (Formula)

30+ Advanced Excel Tips for 2026

No spam. Only Excel Stuff. God Promise. 😊

To average a range of times, use =AVERAGE(A1:A3) and make sure the result cell is formatted as time — Excel normally applies that itself. Times are stored as fractions of a day underneath, so averaging them works like averaging any other number.

Two things go wrong. If the result comes back as #DIV/0!, the times are stored as text rather than real times: they’ll be left-aligned in the cell, and the fix is =AVERAGE(TIMEVALUE(A1:A3)) entered with Ctrl+Shift+Enter on Excel 2019 or earlier, or converted properly with Data → Text to Columns → Finish.

And if you’re averaging durations rather than clock times — say task lengths that add up past 24 hours — format the result cell as [h]:mm with square brackets, or anything over a day gets truncated and you’ll see 3:15 where you should see 27:15.

For an average that ignores blanks or zeros, =AVERAGEIF(A1:A10,">0") works the same way here as with any number.

How to Average Time in Excel

In this tutorial, we will learn to calculate the average of the time values you have in a range of cells.

Formula to Average Time

In the following example, you have three-time values in column A in the range A1:A3. Now, you need to calculate the average of these time values.

calculate-average-of-time-values

For this, you need to use the AVERAGE function.

  1. Enter the average function in a cell by using the equal sign.
  2. Then enter the AVERAGE function and start parentheses.
  3. Refer to the range where you have the time.
  4. In the end, enter the closing parentheses and hit enter to get the result.
average-to-find-time-value-average
=AVERAGE(A1:A3)
[thrive_leads id=’112075′]

In the cell where you want to calculate the average of the time, you need to make sure to have the time format on that cell. Even if you don’t change the format, Excel is smart enough to change this format for you when you enter the formula in it.

Understand Time in Excel

In Excel, when you enter time in a cell, Excel formats it automatically. There are two ways to format a time value: a 12-hour format and a 24-hour format. When you are averaging time and have a 12-hour format, you need to be a little cautious.

understand-time-in-excel

Above we have two different times one is 6:30 AM and the second is 6:30 PM. That’s why the average is different with both formulas.

Why I’m Getting #DIV/0! Error While Averaging Time

If your time values are stored as a text value in the cell, you might face #DIV/0! error. Below we have a list of time values that are saved as text and on averaging we are getting an error.

#div-error-while-averaging-time

To solve this problem, you can use the following formula.

formula-to-ignore-#div-error

You need to enter this formula as an array formula by using Ctrl + Shift + Enter.

Get the Excel File

Puneet Gogia

Written by

Puneet Gogia

Microsoft MVP — Excel · Founder, Excel Champs

Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.

3M+ readers helped
1,000+ tutorials written
Since 2015 teaching Excel

Leave a Comment