如何在Excel中计算分钟和秒的平均值 [英] How Calculate Average Of Minutes and Seconds In Excel

查看:2026
本文介绍了如何在Excel中计算分钟和秒的平均值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的B列中的原始数据分别换行: 5.04,3.57,0.58,10.01 的左边 .是分钟,也就是的权利.是秒. 我需要计算数据的平均值.我该怎么办?

My raw data in column B each on a new line looks like this:- 5.04,3.57,0.58,10.01 Left of . is minutes and right of . is seconds. I need to calculate the average of my data . How do I go about this?

推荐答案

您需要转换为真实时间;一种选择是使用TIME并解析原始数据:

在新列中,使用:

=TIME(,LEFT(B1,FIND(".",B1)),MID(B1,FIND(".",B1)+1,999))

另一种选择是使用TIMEVALUE:

=TIMEVALUE("00:"&SUBSTITUTE(B1,".",":"))

编辑:

使用TEXT强制原始时间在解析时保留尾随零:

Use TEXT to force the raw times to retain a trailing zero when parsing:

=TIMEVALUE("00:"&SUBSTITUTE(TEXT(B5,"00.00"),".",":"))

另一种选择,实际上可能是最好的选择,只是一点数学运算:

Another option, probably the best one actually, is just a bit of math:

=TIME(,TRUNC(B1),(B1-TRUNC(B1))*100)

这篇关于如何在Excel中计算分钟和秒的平均值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆