简体   繁体   English

如何在Excel中平均持续时间?

[英]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: 将数据放在A1A2中 ,等等。在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.

相关问题 我如何根据某个数字在Excel中计算每周平均值 - How can I calculate a weekly average in Excel from a certain figure 如何使用“平均”公式限制Excel单元格中的小数位数? - How can I restrict the decimal count in an Excel cell with an “Average” formula? Excel VBA function 加权平均代码——我该如何改进? - Excel VBA function weighted average code -- how can I improve this? Excel 中的操作持续时间 - Operations time durations in Excel 如何根据列的值在 Excel 中找到条件平均值? - How can I find a condtional average in Excel based off a column's value? Excel - 如何获得其中一列中的值为 X 而另一列中的值为 Y 的单元格的平均值? - Excel - How can I get the average of cells where the value in one column is X and the value in another column is Y? 如何从下拉列表中计算单元格的平均值、最小值、最大值以及它在 Excel 中的变化 - How can I calculate the average, min, max, range for a cell from a dropdown and it changes in Excel 使用Excel 2013,如何获得每5秒平均每10分钟的一列的平均值? - With Excel 2013, How can I get the average of one column that is every 5 seconds averaged into every 10 minutes? 如何使用一个可以在 Excel 中拖动到末尾的公式来获取 B 列中 A 列的数字的平均值? - How can I get average of the numbers from Column A in Column B with one formula which I can drag through the end in Excel? 如何在Excel中平均文本 - How to Average text in Excel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM