简体   繁体   中英

calculate the difference between two dates and time on excel

I want to calculate the difference between two dates and time and the result should be on "hh:mm:ss"

   |           E          |           F         |    G     |
===+======================+=====================+==========+
3  | 01/01/2013  13:34:50 | 31/01/2013  7:34:05 | 17:59:15 |

I tried this =TEXT(F3-E3;"hh:mm:ss") but it only count the difference from times, not date. I also tried to add dd like this: =TEXT(F3-E3;"dd hh:mm:ss") It works, but that's not the result I'm looking for.

我认为这就是你想要的:

=TEXT(F3-E3;"[h]:mm:ss")

我认为分号应该用逗号代替:

=TEXT(E5-D5,"[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