如何将“'n'min'm'secs”转换为秒格式

时间:2015-11-08 14:16:53

标签: excel datetime formatting excel-formula

我收到了一张格式时间为1 min 30 secs的Excel表格。

如何将字符串和整数格式的字段转换为数字格式(如90)以执行平均值?

2 个答案:

答案 0 :(得分:1)

请尝试:

=LEFT(A1,FIND(" ",A1))*60+SUBSTITUTE(SUBSTITUTE(MID(A1,3,LEN(A1)),"min ","")," secs","")

答案 1 :(得分:0)

看看这个:

=TEXT("0:"&SUBSTITUTE(SUBSTITUTE(A1," min ",":")," sec",""),"[s]")