Add missing zero's to customer number

J

Johnnyb

I am working on a sheet with customer name & customer number. Th
customer numbers should all be 6 digits yet some of then have 5, 4 an
3 digits.
Is there a formula to look at each customer number and add leadin
zero's to the number to make up 6 digits.

e.g if I have a 3 digit number 123 to make up 6 digits it would b
000123.

Any help would be much appreciated,
Regards,
Johnny
 
J

Jason Morin

One way:

=REPT("0",6-LEN(A1))&A1

Another:

=TEXT(A1,"000000")

HTH
Jason
Atlanta, GA
 

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