[英]How to calculate time in excel?
I have to compare the time elapsed between the time of the call and the arrival at the scene for a project. 我必须比较通话时间和项目到达现场之间经过的时间。 I have two columns with the format : 2013-09-01 10:51:00.000 I used this formula
我有两列的格式为:2013-09-01 10:51:00.000我用了这个公式
=INT(H2-F2)&" days, "&INT(((H2-F2)-INT(H2-F2))*24)&" hours, "&INT((((H2-F2)*24)-INT((H2-F2)*24))*60)&" min"
But i get an error. 但是我得到一个错误。
Your formula works for me (assuming H2 >= F2) but to simplify, you can get same result with this version 您的公式对我有用(假设H2> = F2),但为简化起见,使用此版本可以获得相同的结果
=INT(H2-F2)&" days, "&TEXT(H2-F2,"h"" hours, ""m"" min""")
If your formula or this one doesn't work, I suggest that you might have invalid time values, check that you don't have extra spaces or characters 如果您的公式或该公式不起作用,建议您使用无效的时间值,请检查是否没有多余的空格或字符
see screenshot 看截图
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.