Hey!
So, I figured out how to calculate the Duration/Number or Hours and Minutes between two dates & times using the following Formula:
A1 = 6/27/2019 | A2 = 10:00
B1 = 6/29/2019 | B2 = 6:30
C1 = To get the Hours =INT(((A1+A2)-(B1+B2))*24) Which would Result to = 44 hours
C2 = To get the Minutes =INT(((A1+A2)-(B1+B2))*1440)-(INT(((A1+A2)-(B1+B2))*24)*60) Which would Result to = 30 Minutes
(First part is calculating the number of Minutes then it subtract Hours in order to get clean result)
Problem is, It's Not accurate!
Real Example:
While the Above showed a correct 44 Hours and 30 Minutes, Following Date & Time shows incorrect result with the same formula:
A1 = 6/25/2019 | A2 = 15:00
B1 = 6/27/2019 | B2 = 7:00
C1 = 39 Hours | C2 = 59 Minutes
Where it should be 40 Hours.
A1 = 6/23/2019 | A2 = 1:30
B1 = 6/23/2019 | B2 = 2:30
C1 = 0 Hours | C2 = 59 Minutes
Where it should be 1 Hour.
It's not consistent, sometimes it would give a correct result, others it would Minus a minute which creates a problem with long records.
End goal is to Sum the Number of hours and Minutes.
File Attached, Dates are in Column [D] - Times are in Column [E] - Hours Formula in [F] - Minutes in [G]
Help is greatly appreciated.
Or if there's any other accurate method, please do say it!
Bookmarks