Search code examples
timegoogle-sheetsgoogle-sheets-formulaarray-formulasduration

Is there a formula for converting a decimal value for number of minutes, to a duration-formatted value?


I have a cell that sums up a decimal count of minutes - for example "105", as in 105 minutes (decimal value).

All I wish to do is convert this decimal value to a duration-formatted value which includes hours, minutes, and seconds.

So the result I am looking for is a cell which has the following value: "01:45:00" and is formatted as HH:MM:SS.

If the value "105" is in cell A1, is there a formula to "convert" this value into the "01:45:00" value, formatted as HH:MM:SS?


Solution

  • try like this:

    =TEXT(A1/1440, "hh:mm:ss")
    

    0


    =ARRAYFORMULA(IF(A1:A<>"", TEXT(A1:A/1440, "hh:mm:ss"), ))
    

    0


    however true duration would be:

    =ARRAYFORMULA(IF(A1:A<>"", TEXT(A1:A/1440, "[hh]:mm:ss"), ))
    

    0