Forum Discussion

KWalsh07's avatar
KWalsh07
Copper Contributor
Apr 19, 2021
Solved

Convert Time Text to Hours

Hi There,   I've got about 2700 rows of data. One of the columns was reported in time (ex. 1 hour 6 minutes). I'm looking for a way to convert this General text into Hours (ie. 1.10 hours in the ex...
  • HansVogelaar's avatar
    HansVogelaar
    Apr 19, 2021

    KWalsh07 

    Try this version:

     

    =24*TIMEVALUE(IF(ISNUMBER(FIND("hour",D2)),SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(D2,"s","")," hour ",":")," minute",":00"),"0:"&SUBSTITUTE(SUBSTITUTE(D2,"s","")," minute",":00")))

Resources