Display zeros to the left of a number

S

Student

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
 
B

Bob Phillips

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)
 
S

Student

how do i do that?

Bob Phillips said:
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)
 
C

Charles Chickering

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

Jean-Yves

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top