Manipulate an excel column

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I add leading zeroes to data within an excel column. I'm trying to
convert data into total of 5 numerics by adding leading zeroes into the
string.
 
Two ways:

If you want only to DISPLAY 5 digit values, use a custom format: 00000

If you really need 5 digit values, AND WORKING ON A COPY OF YOUR DATA,
insert a column temporarily, adjacent to your data. So, if your data is in
col A, insert a new col B. In the new cells use the formula:

=text(A1,"00000")

Copy it to all the pertinent cells
Select all these formulas & copy them
Select the original cells and use Edit>Paste Special>Values
Delete the temporary column
 

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