Forum Discussion
KelHill
Nov 10, 2023Copper Contributor
Calculating & averaging durations
I am subracting start times (date/time) from end times (date/time) to obtain duration. 1) Any thoughts as to why the rows I've highlighted in red in the attached sample are returning incorrect va...
SergeiBaklan
Nov 10, 2023Diamond Contributor
For such sample
you may calculate duration as
=B1-A1
and average result.
To present values in more human friendly format it could be
=INT(C1) & " days " & INT(MOD(C1,1)*24) & " hours " & INT(MOD(MOD(C1,1)*24,1)*60) & " min"- KelHillNov 14, 2023Copper ContributorThanks for the suggestion about format. The mystery I most need help with is why those durations that I have highlighted in red are incorrect.
- SergeiBaklanNov 15, 2023Diamond Contributor
Without knowing the formula you used it's hard to answer "why". Hope suggested formula gives correct result, didn't test on all combinations.
- KelHillNov 15, 2023Copper ContributorHi Sergei Baklan
I have shown the formula I used at the bottom of column F in my screencap.