Forum Discussion

mrbill47's avatar
mrbill47
Copper Contributor
Aug 21, 2019
Solved

How to convert 12:59:49 AM (HH:MM:SS AM) to 59:49 (MM:SS)

I'm trying to sort race results, over a number of years, by time. Some of the events had times over an hour, and the time format is 12:59.49 AM for time under one hour and 1:12:12 AM over one hour. ...
  • Kodipady's avatar
    Aug 21, 2019

    mrbill47 

    You can check this formula in available in column E and F(RK.Solution1 and 2).  

    =IF(LEN(C3)=5,TIME(0,LEFT(C3,2),RIGHT(C3,2)),C3)  - converts 5 char in to MI:SS 

    =IF(LEN(C3)>5,TIME(MINUTE(C3),SECOND(C3),0),"") - converts MI:SS format to HH:MI 

     

    You might want check for more examples input.  

    Hope it helps!!

Resources