Share via

#DIV/0! when calculating average

Anonymous
2017-04-27T15:20:24+00:00

Hi all! 

I'm trying to calculate the average for a range of cells for operations reporting - The range of cells are formatted as a time value and I'm trying to find the average TRT, (turnaround time), of that range of cells. If I autosum, I get #DIV/O! errors, the same if I pivot the information. If I use formulas I'm either returned a #DIV/O! or #VALUE! errors. I presume it's the empty cell that's causing the issue but cannot find a solution to this... 

TRT - Hour TRT - AVG
#VALUE!
01:02 #VALUE!
00:08 #VALUE!
00:04 #VALUE!
00:05 #VALUE!
00:06 #VALUE!
00:05 #VALUE!
01:13 #VALUE!
00:19 #VALUE!
00:05 #VALUE!
00:30 #VALUE!
00:04 #VALUE!
00:12 #VALUE!
01:26 #VALUE!
00:18 #VALUE!
00:48 #VALUE!
00:11 #VALUE!

Formulas used in second column = 

=AVERAGE(VALUE(TEXT("00"&[TRT - Hour],"hh:mm:ss")))

=AVERAGEIF([TRT - Hour],">0")

=AVERAGE([TRT - Hour])

etc. 

Any help would be greatly appreciated at this point!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Ashish Mathur 101.9K Reputation points Volunteer Moderator
    2017-04-27T23:40:14+00:00

    Hi,

    Your Time values are left aligned prompting me to believe that they are text entries.  Use the ISNUMBER() function to check for whether they are numbers or not.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2017-04-27T16:38:20+00:00

    If you are using tables, then you need the table name:

    =AVERAGE(Table1[TRT - Hour])

    Why are you using a column of formulas if you want an average?

    Was this answer helpful?

    0 comments No comments