[英]How can I average durations in excel?
I have timespans that originated in SQL that look like: 我有源自SQL的时间跨度,如下所示:
--Almost 2 seconds pass each time -每次经过近2秒
00:00:01.9277759
00:00:01.7708749
I formatted the column with a custom number format: [hh]:mm:ss.0
我使用自定义数字格式设置了该列的格式:
[hh]:mm:ss.0
I tried to average the data: =AVERAGE(A1:A2)
or =(A1+A2)/2
我试图对数据
=AVERAGE(A1:A2)
: =AVERAGE(A1:A2)
或=(A1+A2)/2
Result: #DIV/0!
结果:
#DIV/0!
or #VALUE!
或
#VALUE!
(respectively) (分别)
How can I average durations in excel? 如何在Excel中平均持续时间?
With your data in A1 and A2 , etc. In B1 enter: 将数据放在A1和A2中 ,等等。在B1中输入:
=--RIGHT(A1,9)
and copy down 然后抄下来
Then: 然后:
=AVERAGE(B1:B2) will display 1.8493254 = AVERAGE(B1:B2)将显示1.8493254
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.