In the new Google sheets there\'s a way of formatting a number as a duration. Format -> Number -> Duration.
1
is formatted as 24:00:00
The answer from Hot Licks and spex worked for me in Google sheets - enclosing the h
in []
, as in TEXT(A2,"[h]:mm:ss")
, allows a duration larger than 24 hours. Without the []
, 28 hours shows up as 4, with the [h]
, 28 hours shows as 28.
There is no need to use formulas for that, you can define your own custom formats.
Just go to Format -> Number -> More formats -> More date and time formats. It will open a window with several date and time formats to choose from. You can define your own as well, using the upper text area:
:
[h]:mm
and click Apply.In Excel it's "Custom" then [hh]:mm
.
(I'm not quite sure how I figured this out, but it's in a spreadsheet I've been using for a year or so.)