Forum Discussion

astokes8's avatar
astokes8
Copper Contributor
Mar 23, 2022
Solved

Changing data to hours

I have data that has been entered in days and hours; i.e. 1d 16h.  Is there a way to use a formula to change this data to hours; i.e. 40h?
  • Starrysky1988's avatar
    Starrysky1988
    Mar 23, 2022

    astokes8astokes8

    It works.

    =(LEFT(A1,SEARCH("d",A1)-1)+TIMEVALUE(SUBSTITUTE(RIGHT(LOWER(A1),LEN(A1)-SEARCH(" ",A1)),"h",":0")))*24&"h"

     

     

Resources