adding a colon to military time
On Thu, 6 Dec 2007 10:23:03 -0800, Suzanne
wrote:
I need to add a colon to military time. I need to change it from 1700 to
17:00. I want it to stay in military time. I don't want am or pm to show.
I can't figure out how to do this on the worksheet. Anyone know how to do
this?
1. Is the 1700 an Excel time formatted as hhmm, or is it merely the number
1700?
2. Do you want the result to be recognized by Excel as a Time, or just as a
number?
3. To change the format of 1700 so it "looks like" 17:00 (but the stored value
is still 1700) then select the cell(s) and
Format/Number/Custom Type: 00\:00
4. To change it to a value recognized as a Time by Excel, you will need a
formula (see below). Then Format/Number/Custom Type: hh:mm
Formula with 1700 in A1: =INT(A1/100)/24+MOD(A1,100)/1440
--ron
|