adding a zero in front of number

G

Guest

how do you add a zero in front of other numbers, I am using item numbers and
most start with zero, just shows whole numbers when I enter. example 095421
when I enter shows 95421. help.
 
A

Arvi Laanemets

Hi

When the number must remain numeric data, then format the cell as Custom
"00000" (the number of 0's determines to which length is the entry padded).

When you want the number to be converted to string, then use the formula (in
my example the original number resides in cell A1)
=TEXT(A1,"00000")
(again, the number of 0's in format string determines the length of padding)


Arvi Laanemets
 
S

SUNIL S GAWDE \(INDIA\)

-----Original Message-----
how do you add a zero in front of other numbers, I am using item numbers and
most start with zero, just shows whole numbers when I enter. example 095421
when I enter shows 95421. help.
.

You will have to custom format the cells in question
as "00" or "000" or "0000" etc depending on number of
leading Zeros you wish to put. The 1 will show as 01 or
001 or 0001 etc resp.
Select the cells in question. Go to Format-Cells-Number-
Custom. Then type 00 or 000 or 0000 etc in the Type: box
to the right side.
Hope this helps you. You can reach me at
(e-mail address removed) for more assistance.
 
F

Fredrik Wahlgren

Pinky said:
how do you add a zero in front of other numbers, I am using item numbers and
most start with zero, just shows whole numbers when I enter. example 095421
when I enter shows 95421. help.

Enter the number as '095421 with a leading apostrophe.

/Fredrik
 

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