9 replies
by mslizny
by d. brinson
You could try to enter it as 1045 in General format, and then convert the general format to time format to do your summation.
=CONCATENATE(IF(LEN(A1)=4,LEFT(A1,2),LEFT(A1,1)),":",RIGHT(A1,2))
will take a general text screen in A1
and convert it to a text string
1045 = 10:45
945 = 9:45
0945 = 09:45
You can then use the value function to convert that to a decimal value which is how Excel thinks of time.
value(A2)
Hope it helps.
by dklippert
You can further refine the formula by combining them:
=VALUE(CONCATENATE(IF(LEN(A1)=4,LEFT(A1,2),LEFT(A1,1)),":",RIGHT(A1,2)))
You will then need to format the cell as Time.
by andy1957
This discussion is closed to new replies.
Trending Software posts
Sort by Trending