简体   繁体   中英

Calculate Date times excel

What I am trying to do to calculated the difference between to datetimes:

2016-12-24 00:00

and

2017-01-03 00:00

I have tried several "DateIf's" variations etc but nothing seams to get me the right result

My last approach to this issue was =MIN(B2-A2) but the reuslt was a bit of 12:51:45

My expected output would be the right amount of time in between these tow dates posted above for example 240:00

你应该把它写成你的公式

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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