#1   Report Post  
Posted to microsoft.public.excel.misc
exsam21
 
Posts: n/a
Default Leading 0's


How do I keep a leading "0"? For example, I need to enter military time
and I want the cell to display 0753 when I enter 753. Thanks.


--
exsam21
------------------------------------------------------------------------
exsam21's Profile: http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=502581

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Leading 0's

format as 0000, FormatCellsCustom.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"exsam21" wrote in
message ...

How do I keep a leading "0"? For example, I need to enter military time
and I want the cell to display 0753 when I enter 753. Thanks.


--
exsam21
------------------------------------------------------------------------
exsam21's Profile:

http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=502581



  #3   Report Post  
Posted to microsoft.public.excel.misc
David Billigmeier
 
Posts: n/a
Default Leading 0's

<Format<Cells
Go to the "Number" tab
Click on "Custom"
Enter "0000" (without the quotes)

--
Regards,
Dave


"exsam21" wrote:


How do I keep a leading "0"? For example, I need to enter military time
and I want the cell to display 0753 when I enter 753. Thanks.


--
exsam21
------------------------------------------------------------------------
exsam21's Profile: http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=502581


  #4   Report Post  
Posted to microsoft.public.excel.misc
exsam21
 
Posts: n/a
Default Leading 0's


Thank you very much!


--
exsam21
------------------------------------------------------------------------
exsam21's Profile: http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=502581

  #5   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default Leading 0's

But just remember...........it will look like 0753 but is not a not a real time,
only the number 753.


Gord Dibben MS Excel MVP

On Wed, 18 Jan 2006 12:48:41 -0600, exsam21
wrote:


Thank you very much!




  #6   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default Leading 0's

So one might want to use Chip Pearson's
Times, Quick Entry (military time)
http://www.cpearson.com/excel/DateTimeEntry.htm

Or maybe not, I suppose that is the way they are actually to appear
although you could format as hhmm under custom format.

More information on working with dates and times, if you have
dates and times not just four digit numbers.
http://www.cpearson.com/excel/datetime.htm
http://www.mvps.org/dmcritchie/excel/datetime.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm


"Gord Dibben" <gorddibbATshawDOTca wrote ...
But just remember...........it will look like 0753 but is not a not a real time,
only the number 753.



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
Leading Zeros Karen Excel Discussion (Misc queries) 3 January 10th 06 09:50 PM
retain leading zeros when importing LeePotts Excel Discussion (Misc queries) 1 December 5th 05 07:16 PM
Remove leading space Karidre Excel Worksheet Functions 4 October 24th 05 03:39 PM
Concatenation with leading zeros Laura K Excel Worksheet Functions 6 August 27th 05 11:55 PM
Leading zeros Paul Excel Discussion (Misc queries) 4 June 12th 05 04:04 AM


All times are GMT +1. The time now is 09:40 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"