how to create leading zeros on variable length numbers

G

Guest

I have a column of variable length numbers/text (6-12 characters). I need to
place leading zeros in each of the cells to create a standard length of 15
characters. What's the easiest way to do this?
 
G

Guest

sleect cells or column then pull-down:

Format > Cells... > Number > Custom > and enter 000000000000000
in place of general
 
F

FxM

MVPitts said:
I have a column of variable length numbers/text (6-12 characters). I need to
place leading zeros in each of the cells to create a standard length of 15
characters. What's the easiest way to do this?

Hi MVPitts,

Try :
=right(REPT("0",15) & "text" , 15)

@+
FxM
 

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