It is the so called 4 digit military time that you already have and that
I am trying to get you away from.
Second part that is the problem that you have with your 4 digits they
are not recognized by Excel as time. If you want to understand how
time is indicated in Excel you will have to do some reading. What
we've already replied or what we've supplied as references, or even
the Excel help file.
column represent 4 digit military "time"
column B is the time derived form formula
MILT TIME TIME Formula used for column B and for Column C
0958 9:58 0.41528 =(TRUNC(A2/100)+RIGHT(A2,2)/60)/24
0959 9:59 0.41597 =(TRUNC(A3/100)+RIGHT(A3,2)/60)/24
0960 10:00 0.41667 =(TRUNC(A4/100)+RIGHT(A4,2)/60)/24
0961 10:01 0.41736 =(TRUNC(A5/100)+RIGHT(A5,2)/60)/24
0962 10:02 0.41806 =(TRUNC(A6/100)+RIGHT(A6,2)/60)/24
0963 10:03 0.41875 =(TRUNC(A7/100)+RIGHT(A7,2)/60)/24
0964 10:04 0.41944 =(TRUNC(A8/100)+RIGHT(A8,2)/60)/24
1158 11:58 0.49861 =(TRUNC(A10/100)+RIGHT(A10,2)/60)/24
1159 11:59 0.49931 =(TRUNC(A11/100)+RIGHT(A11,2)/60)/24
1160 12:00 0.50000 =(TRUNC(A12/100)+RIGHT(A12,2)/60)/24
1161 12:01 0.50069 =(TRUNC(A13/100)+RIGHT(A13,2)/60)/24
2358 23:58 0.99861 =(TRUNC(A15/100)+RIGHT(A15,2)/60)/24
2359 23:59 0.99931 =(TRUNC(A16/100)+RIGHT(A16,2)/60)/24
2360 0:00 1.00000 =(TRUNC(A17/100)+RIGHT(A17,2)/60)/24
2361 0:01 1.00069 =(TRUNC(A18/100)+RIGHT(A18,2)/60)/24
2362 0:02 1.00139 =(TRUNC(A19/100)+RIGHT(A19,2)/60)/24
Bobby said:
Thanks Dave
I'll play with this.
I already tried military time, have the same problem, but I'll read
up on it again. The problem with that was once you get to say 0958
then 0959 the next is 0960 0961 0962 and so on till 0999 Right?
Bobby
Hi Bobby,
=(TRUNC(A1/100)+RIGHT(A1,2)/60)/24
format as h:mm or as hh:mm or as [h]:mm
But it would be a lot better to have converted the number
to a time when entered.
A date is the number of days past Dec 31, 1899
Time is a fraction of a day 9AM is .25 or 1/4 th of a day.
Read about converting so called 4 digit military time to Excel Time
Date and Time Entry
http://www.cpearson.con/excel/DateTimeEntry.htm
Read more about date and time at
http://www.cpearson.con/excel/datetime.htm
http://www.mvps.org/dmcritchie/excel/datetime.htm