Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default How to keep 0 for military time

When I enter 0630 it displays 630. How do I keep the 0?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How to keep 0 for military time

Precede the 0630 with an apostrophe but the text will not be a time.

OR enter time as 06:30

Excel is very structured when it comes to entering dates and times.

You cannot just enter 060906 and get a valid date.

You cannot enter 0630 and return a valid time

See Chip Pearson's site for working with dates and times.

http://www.cpearson.com/excel/datetime.htm#SerialDates

Also see the code involved for entering times without the colon(s)

http://www.cpearson.com/excel/DateTimeEntry.htm


Gord Dibben MS Excel MVP


On Mon, 4 Sep 2006 20:33:01 -0700, Tory wrote:

When I enter 0630 it displays 630. How do I keep the 0?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default How to keep 0 for military time

Or you can make a custom format = 0000.
When you type 0630 or 630 it will show 0630.
But the value in the cell will be 630

Best regards

pp

Gord Dibben skrev:

Precede the 0630 with an apostrophe but the text will not be a time.

OR enter time as 06:30

Excel is very structured when it comes to entering dates and times.

You cannot just enter 060906 and get a valid date.

You cannot enter 0630 and return a valid time

See Chip Pearson's site for working with dates and times.

http://www.cpearson.com/excel/datetime.htm#SerialDates

Also see the code involved for entering times without the colon(s)

http://www.cpearson.com/excel/DateTimeEntry.htm


Gord Dibben MS Excel MVP


On Mon, 4 Sep 2006 20:33:01 -0700, Tory wrote:

When I enter 0630 it displays 630. How do I keep the 0?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
synchronizing timestamp feature with time on video software. 999 Excel Discussion (Misc queries) 4 July 30th 06 10:49 PM
formula to determine time range overlap? William DeLeo Excel Discussion (Misc queries) 0 June 6th 06 08:26 PM
Hot key for time? Dave in Des Moines Excel Worksheet Functions 2 March 24th 06 04:15 PM
time sheet drop down lists Steve Excel Discussion (Misc queries) 12 March 18th 06 10:30 PM
time differences in a column 68magnolia71 Excel Worksheet Functions 3 May 9th 05 09:46 PM


All times are GMT +1. The time now is 11:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"