Trying to make a duration

Hi, Iโ€™m to calculate a duration based on two things that are not durations. I have one column that is a number of โ€œmiles remainingโ€ and another that is โ€œmy average moving speedโ€. So Iโ€™m dividing the first by the latter to see how many hours I need to travel. But I get a result that is a number and I need to convert it to a duration of hours for the other columns to calculate. Any advice?

0 4 521
4 REPLIES 4

A Duration value can be made by generating a text string of the form โ€œhhh:mm:ssโ€.

Okay, thanks! Iโ€™m working on ways to make that work out. Itโ€™s difficult because itโ€™s going to involve rounding and quite a bit of concatenating. Maybe this is a feature request for something like DurationHour(), DurationMinute(), DurationSecond(), that would take a number as an input parameter and spit out a duration of hours, minutes, or seconds based on that? So likeโ€ฆ
DurationHour(55.5) would come out 055:30:00.

I think that would be a good idea.

Here ya go! 3X_d_5_d51363a862e7ab883241c312ac5d7f271579cdd3.gif

Top Labels in this Space