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
=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
=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
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.