Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default number ZERO in a cell

hi,

I have a cell that i want a user to enter a number into.
BUT... u know how if you enter '0123' it will change it
to '123' ... how can i KEEP the '0' at the beginning of
the number
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default number ZERO in a cell


If you want the cell value to always be 4 digits with a leading zero
just format the cell the be four digits:

Format
Number
Custom
Type: 000

--
sdblac
-----------------------------------------------------------------------
sdblack's Profile: http://www.excelforum.com/member.php...fo&userid=1469
View this thread: http://www.excelforum.com/showthread.php?threadid=26318

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default number ZERO in a cell

enter it as

'0123
(it is now text)

or format the cell as text before entry

or

if you want a number and it will always be 4 digits, format the cell with a
custom number format of 0000

--
Regards,
Tom Ogilvy


wrote in message
...
hi,

I have a cell that i want a user to enter a number into.
BUT... u know how if you enter '0123' it will change it
to '123' ... how can i KEEP the '0' at the beginning of
the number



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
Copying the number of a custom formatted number cell fbvideo Excel Discussion (Misc queries) 2 January 25th 07 11:00 PM
Random cell/number and dont repeat selected cell/number Hector PR Excel Discussion (Misc queries) 0 October 16th 06 05:02 PM
formatting cell number based on previous cell number Pasquini Excel Discussion (Misc queries) 3 June 20th 06 06:36 AM
Count number of times a specific number is displayed in a cell ran subs Excel Worksheet Functions 1 June 27th 05 05:01 PM
command to return the row number or cell number in excel? desmondleow[_5_] Excel Programming 1 December 11th 03 10:51 AM


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