Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

elapsed time in hours:minutes like (125:13)

Hi

I need to show time in the format h:mm where h however can be more than 24.

My calculation is sum(Endtime - Starttime)

I tried to format with time(sum(Endtime - Starttime), 'h:mm') but this shows me the hours as modula of 24. Also using 'hhhh:mm' results in leading zeros only with the truncated hours.

Any shortcut instead of a rather long formula to calculate and concat subresults?

Jürg

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Jürg,

interval() and interval#() should work for you:

interval('125:33', 'hhh:mm')
is now a valid timestamp you can add to any other date, for example
today() + interval('125:33', 'hhh:mm')
Something like
=interval(Num(today()-9) - Num(today()) , 'hhh:mm')
should work.

Hope this shed some light!

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hello Jürg,

interval() and interval#() should work for you:

interval('125:33', 'hhh:mm')
is now a valid timestamp you can add to any other date, for example
today() + interval('125:33', 'hhh:mm')
Something like
=interval(Num(today()-9) - Num(today()) , 'hhh:mm')
should work.

Hope this shed some light!

Not applicable
Author

Miguel

thanks a lot, does exactly what I was looking for

Jürg