Averaging time durations in Excel is straightforward if your data is formatted correctly; use the AVERAGE function on a properly formatted time column, or convert times to decimal minutes/hours using the HOUR, MINUTE, and SECOND functions combined with division before averaging. Excel stores time as fractions of a day, so simply summing and dividing by the count without formatting adjustments often results in a decimal rather than a readable time, or an error if hours exceed 24.
What You'll Need
- A computer with Microsoft Excel installed (Excel for Windows, Mac, or the web version).
- A dataset containing time values in a single column.
- A cell to display the result.
Step-by-Step
- Check your data format. First, ensure that the cells containing your time data are formatted as "Time". If they are formatted as General or Text, the formula will not work correctly. Click on the column header of your time data to select the entire column, right-click, choose Format Cells, and select Time from the category list. Choose a format that displays hours, minutes, and seconds if your data includes hours over 24 (e.g., "1:30:55 PM"). If you only have minutes and seconds, select a format that shows them (e.g., "mm:ss").
- Enter the AVERAGE function. Click on an empty cell where you want the average duration to appear. Type
=AVERAGE(into the cell. Do not type the quotation marks. - Select your time data. Click and drag to highlight all the cells in your column that contain the time durations. The cell reference for the first cell will appear in the formula, followed by a colon and the reference for the last cell (e.g.,
=AVERAGE(A2:A10). Close the parenthesis by typing)and press Enter. - Check the result. Excel will display the result. If your data contains durations longer than 24 hours, the result will be displayed as a date (e.g., 1/01/1900). This is because Excel calculates time as a fraction of a single day. To fix this, right-click the result cell, choose Format Cells, and select Custom. In the "Type" box, enter
[h]:mm:ss. This tells Excel to display the total hours even if they exceed 24. - Alternative method for mixed formats. If your time data is stored as text (e.g., "1:30" or "90 minutes"), you cannot use the standard AVERAGE function directly. You must convert the text to a time serial number first. Use the TIMEVALUE function for each entry. For example, if your text is in cell A2, type
=TIMEVALUE(A2)and drag this down. Once all cells are converted to time values, you can proceed with the standard AVERAGE function on this new column. - Handling minutes-only data. If your data only contains minutes (e.g., 45, 60, 120) but you need the average in a time format (e.g., 1:00), you must convert the minutes to hours first. Use the formula
=AVERAGE(A2:A10)/1440. The number 1440 is the number of minutes in a day (24 hours × 60 minutes). Dividing by 1440 converts the raw minute count into the time fraction that Excel understands.
Common Mistakes
A primary mistake users make is forgetting to close the parenthesis in the AVERAGE function, which results in a #NAME? error. Another common issue is attempting to average a mix of text and numeric time values. If Excel cannot interpret the cell as time, it will return a #VALUE! error. Ensure that all cells are formatted as Time or converted from text before applying the function.
Users often also misinterpret the result of the AVERAGE function when dealing with durations. If the average of a set of times is, for example, 2.5, Excel displays this as 2:30 PM. This represents 2:30 AM the next day. To understand the true average duration, you must format the cell as [h]:mm:ss to see the total hours elapsed.
Tips
When working with long durations that span multiple days, always use the custom format code [h]:mm:ss. The square brackets around the h are crucial; they instruct Excel to display the hours as a running total rather than a time of day.
For data that includes seconds, ensure your time format includes seconds (e.g., hh:mm:ss) before averaging. If you only use hh:mm, the seconds will be ignored in the calculation, leading to an inaccurate average.
If you need to average durations that are stored as decimal hours (e.g., 1.5 for 1 hour 30 minutes), you can use the AVERAGE function directly on these numbers. However, you must format the result cell as Time to see it as a duration. If the result is 12:00, it means 12 hours.
Troubleshooting
If the result of your AVERAGE function is a date (e.g., 1/01/1900), it means your data contains a value greater than 24 hours. The standard time format resets after 24 hours. To see the total hours, right-click the cell, select Format Cells, go to the Custom tab, and enter [h]:mm:ss.
If you see a #VALUE! error, check if your time data is stored as text. Text values cannot be averaged. You can verify this by looking at the number format of the cells; text cells do not have a number format applied. Convert the text to actual time values using the TIMEVALUE function as described in Step 5.
If the result is significantly lower than expected, your data might be formatted as minutes instead of hours. For example, if you have durations of 60, 120, and 180 minutes, the average is 120. If you average these without converting to hours, Excel treats 60 as 1:00 AM, the average is 12:00 AM, and the result formatted as time shows 12:00 AM (midnight). To fix this, divide the raw average by 1440 or convert each cell to hours using the HOUR/3600 method.
If your data is very large (thousands of rows) and Excel is slow to calculate, check if you have calculated formulas in that column that are not necessary. Removing unnecessary intermediate calculations can speed up the workbook significantly.
Frequently Asked Questions
How do I average times that are over 24 hours?
Use the AVERAGE function normally, but format the result cell using the Custom format code [h]:mm:ss. The brackets around the h ensure that the total hours are displayed correctly, rather than wrapping around to a date.
Why does my average show 12:00 AM?
This happens when the raw average is a number greater than 1 (representing more than 24 hours) but the cell is formatted as a standard time. Excel treats this as a time of day. For example, an average of 36 hours is 1.5 days, which Excel displays as 1:00 AM. Change the format to [h]:mm:ss to see the full duration.
Can I average times that are stored as text?
No, the AVERAGE function requires numeric values. You must convert your text entries to time serial numbers first. Use the TIMEVALUE function on each text cell, or use the Text to Columns feature with the Time data type selected to convert them in bulk.
What is the formula for averaging seconds?
Excel does not have a specific SECONDS function for averaging. You should convert seconds to hours by dividing by 3600, or convert them to minutes by dividing by 60. For example, to average seconds in column A: =AVERAGE(A2:A10)/3600. Then format the result as Time.
How do I exclude empty cells from the average?
The standard AVERAGE function ignores empty cells automatically. If you see #DIV/0! errors, it means every cell in the range is empty. If you see a result significantly lower than expected, it may be because you have included cells with text values or zeros that you intended to exclude.
Is there a shortcut key for the AVERAGE function?
Yes, select the cell where you want the result, press Alt + = on Windows, or Cmd + Shift + T on Mac. Excel will automatically detect the range of numbers immediately above the selected cell and insert the AVERAGE function.