+ Reply to Thread
Results 1 to 6 of 6

Formatting cells so that they're not numbers

Hybrid View

mthompson93 Formatting cells so that... 05-28-2010, 11:23 AM
shg Re: Formatting cells so that... 05-28-2010, 11:26 AM
Marcol Re: Formatting cells so that... 05-28-2010, 11:40 AM
mthompson93 Re: Formatting cells so that... 05-28-2010, 11:40 AM
mthompson93 Re: Formatting cells so that... 05-28-2010, 11:41 AM
Marcol Re: Formatting cells so that... 05-28-2010, 11:43 AM
  1. #1
    Registered User
    Join Date
    05-28-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    22

    Formatting cells so that they're not numbers

    I want zeros at the beginning of what are currently formatted as numbers. Right now, it automatically deletes any zeroes I try to add before the numbers. How can I make this work?

    Also, assuming the first task is accomplished, is it then possible to take every number/code, and add enough zeroes to the front of them in order to make the full code 12-digits?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Formatting cells so that they're not numbers

    Format the cells as Text beforehand, then enter all the zeros you want.

    In the alternative, you can custom-format the cells as 000000000000, but the underlying value will just be the number.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formatting cells so that they're not numbers

    Try in a spare column

    Assuming your data is in Column A

    =REPT("0",12-LEN(A1))&A1
    Fill down

    Then Copy and PasteSpecial > values to your desired location.

    Cheers

  4. #4
    Registered User
    Join Date
    05-28-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Formatting cells so that they're not numbers

    formatting the cells as text was very helpful, thank you

    is there a way to automatically take a column and ask Excel to add sufficient zeroes to the beginning of each cell's content so that the total # of digits is 12? there are over 4000 cells in my database so it would take a really long time to add the zeroes manually

  5. #5
    Registered User
    Join Date
    05-28-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Formatting cells so that they're not numbers

    oh nice, thanks!

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formatting cells so that they're not numbers

    We are always happy to have helped.

    If you need any further information, please feel free to ask further

    However

    If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1