Creating zero's in front of number and after number

D

dyukon

I need to create zero's in front of number and after number. For
example if the value is 12500. I need to have it look like
000012500000. Please help!
 
N

Niek Otten

Format>Cells>Number tab,Custom. In the Type box, enter:

000000000"000"

Does the number of digits vary? Is it always 4 zeros in front and 3 at the
end? Can it be a text field?
Try a formula, like

="0000"&TEXT(A1,"0")&"00"
 
B

Bernard Liengme

With a custom format like 0000000000 you can add leading zeros but not
trailing ones
That needs a formula such as =TEXT(A1*1000,"0000000000000")
best wishes
 
C

CLR

If you are entering the data by hand, simply pre-format the cell(s) as TEXT,
or type a preceeding apostrophe before the data

Vaya con Dios,
Chuck, CABGx3
 

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