Is there a function that will let me convert a values such as 800 to a hh:mm format? Thanks.
C CPK Jul 8, 2005 #1 Is there a function that will let me convert a values such as 800 to a hh:mm format? Thanks.
D Domenic Jul 8, 2005 #2 Try... =TIME(LEFT(TEXT(A1,"0000"),2),RIGHT(TEXT(A1,"0000"),2),0) or =SUM(MID(TEXT(A1,"0000"),{1,3},2)/{24,1440}) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Format cell as 'Time'. Hope this helps!
Try... =TIME(LEFT(TEXT(A1,"0000"),2),RIGHT(TEXT(A1,"0000"),2),0) or =SUM(MID(TEXT(A1,"0000"),{1,3},2)/{24,1440}) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Format cell as 'Time'. Hope this helps!
K KL Jul 8, 2005 #3 ....this seems to be a slightly shorter way: =TIMEVALUE(TEXT(A2,"00\:00")) or =TIMEVALUE(TEXT(A1,"00"":""00")) Regards, KL
....this seems to be a slightly shorter way: =TIMEVALUE(TEXT(A2,"00\:00")) or =TIMEVALUE(TEXT(A1,"00"":""00")) Regards, KL
F Flintstone Jul 8, 2005 #6 This formula will return the time value of a three digit or four digi number in military time format without having to enter ( : ) betwee the numbers. Will also accommodate for entering time by pressing, ( Ctrl + Shift + ). =IF(LEN(A1)=3,TIME(LEFT(A1,1),RIGHT(A1,2),0),IF(LEN(A1)=4,TIME(LEFT(A1,2),RIGHT(A1,2),0),A1)
This formula will return the time value of a three digit or four digi number in military time format without having to enter ( : ) betwee the numbers. Will also accommodate for entering time by pressing, ( Ctrl + Shift + ). =IF(LEN(A1)=3,TIME(LEFT(A1,1),RIGHT(A1,2),0),IF(LEN(A1)=4,TIME(LEFT(A1,2),RIGHT(A1,2),0),A1)