Search code examples
google-sheetstimeformattinggoogle-sheets-formuladuration

Formating (n)h (n)m (n)s into hh:mm:ss


I am trying to format a list of names with times into the format hh:ss:mm from (n)h (n)m (n)senter image description here

If anyone knows how to do it that'd be so kind


Solution

  • try:

    =FLATTEN(INDEX(QUERY(, "select  "&TEXTJOIN(",", 1, 
     SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(J2:J27, 
     "d", "*86400"), "h", "*3600"), "m", "*60"), "s", "*1"), " ", "+")))/86400, 2))