Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Display zeros to the left of a number

Good Morning,

how can i display the zeros to the left of a number? by the way i want the
format of the field to be a number because i have a macro that validates the
value entered in the field is a number.

thank you very much
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Display zeros to the left of a number

Use a format of 000000 or however many digits you want displayed.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Student" wrote in message
...
Good Morning,

how can i display the zeros to the left of a number? by the way i want the
format of the field to be a number because i have a macro that validates

the
value entered in the field is a number.

thank you very much



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Display zeros to the left of a number

how do i do that?

"Bob Phillips" wrote:

Use a format of 000000 or however many digits you want displayed.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Student" wrote in message
...
Good Morning,

how can i display the zeros to the left of a number? by the way i want the
format of the field to be a number because i have a macro that validates

the
value entered in the field is a number.

thank you very much




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default Display zeros to the left of a number

Right-click the cells in question, then choose "Format Cells" then click
"Custom" and type 000000 (as many zero's as you need)

--
Charles Chickering

"A good example is twice the value of good advice."


"Student" wrote:

how do i do that?

"Bob Phillips" wrote:

Use a format of 000000 or however many digits you want displayed.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Student" wrote in message
...
Good Morning,

how can i display the zeros to the left of a number? by the way i want the
format of the field to be a number because i have a macro that validates

the
value entered in the field is a number.

thank you very much




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 253
Default Display zeros to the left of a number

Hi,
via menu : Format/Cells ( or CTLR + 1 key combination)
Select the Number Tab
In Category , select Custom
In Type, type the number of zero required
eg : 00 = for 1 shows 01
000 for 22 shows 022
Regards
JY
"Student" wrote in message
...
how do i do that?

"Bob Phillips" wrote:

Use a format of 000000 or however many digits you want displayed.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Student" wrote in message
...
Good Morning,

how can i display the zeros to the left of a number? by the way i want
the
format of the field to be a number because i have a macro that
validates

the
value entered in the field is a number.

thank you very much






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
Zeros Display On Chart Ed O'Brien Excel Discussion (Misc queries) 0 August 5th 09 10:26 AM
how to get left side zeros to show i.e. 00045 tcole Excel Discussion (Misc queries) 1 May 2nd 09 12:40 PM
If number in cell does not equal 6 digits, add zeros to the left kza40381 Excel Discussion (Misc queries) 2 July 9th 08 05:13 PM
Essbase: Text zeros to number zeros santhu Excel Discussion (Misc queries) 1 March 23rd 07 01:01 PM
Number format than does not display zeros after the deciaml point Nic Excel Discussion (Misc queries) 0 November 20th 06 02:16 PM


All times are GMT +1. The time now is 07:15 AM.

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"