简体   繁体   English

计算日期时间excel

[英]Calculate Date times excel

What I am trying to do to calculated the difference between to datetimes: 我想要做的是计算到日期时间之间的差异:

2016-12-24 00:00 2016-12-24 00:00

and

2017-01-03 00:00 2017-01-03 00:00

I have tried several "DateIf's" variations etc but nothing seams to get me the right result 我尝试了几个“DateIf”的变种等,但没有任何接缝可以让我得到正确的结果

My last approach to this issue was =MIN(B2-A2) but the reuslt was a bit of 12:51:45 我对这个问题的最后一种解决方法是= MIN(B2-A2),但重新开始时间是12:51:45

My expected output would be the right amount of time in between these tow dates posted above for example 240:00 我的预期输出将是在上面公布的这些拖曳日期之间的适当时间,例如240:00

你应该把它写成你的公式

=TEXT(A2-A1,"[h]:mm:ss")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM