Fill In Zeros

  • Thread starter Thread starter Erika
  • Start date Start date
E

Erika

I have a spreadsheet with a column of account numbers, the
account numbers all look like this

53-1234
53-12345
53-123

How can I remove the - and insert enough zeros in the
place of the - so there are 8 characters in the account
field. In other words I would have

53001234
53012345
53000123
 
Try:

=SUBSTITUTE(A1,"-",REPT(0,9-LEN(A1)))

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

Back
Top