在Excel中将字符串转换为时间长度 [英] Convert String To Time Duration In Excel
本文介绍了在Excel中将字符串转换为时间长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以知道在Excel中将1 h 49 m 57 s转换为1:49:57的方式。
$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $¬can can can can can can can can can can can can can can使用此公式将字母替换为冒号,然后将文本转换为值:
= VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A5,h,:),m ,:),s,))
插入公式后,将单元格的数字格式设置为time。
May I know the way to convert "1 h 49 m 57 s" to 1:49:57 in Excel. Thanks in advance
解决方案
You can use this formula to replace letters to colons then convert text to value:
=VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A5," h ",":")," m ",":")," s",""))
After inserting the formula set the cell's number format to "time".
这篇关于在Excel中将字符串转换为时间长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文