Calculating the total duration from a date & military time start and end

I have been looking at a lot of information on this site and this is the closest one I have found, however it does not calculate the minutes correctly. For example instead of 8hrs and 45 min it gives me 9hrs and -15min.

Formula:

=(([On-Site Date]@row - [Notification Date]@row) * 24) + VALUE(LEFT([Time of Crew arrival]@row, 2)) - VALUE(LEFT([Time of notification(military format, e.g. 14:00)]@row, 2)) + " hour(s) and " + (VALUE(RIGHT([Time of Crew arrival]@row, 2)) - VALUE(RIGHT([Time of notification(military format, e.g. 14:00)]@row, 2))) + " min."

Snap shot of columns used and above formula in my sheet:

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!