+ Reply to Thread
Results 1 to 4 of 4

Preserve leading zeros

  1. #1
    Registered User
    Join Date
    10-18-2009
    Location
    BC, Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Preserve leading zeros

    I have a sheet that uses an ID number of 11 digits that has 3 leading zeros.

    I want to create a new ID for each entry on a new line that is identical to the first entry +1. That is easy to do but the three leading zeros disappear when I apply the formula.

    The original number had to be converted to text to display the leading zeros and the formula that I use =A1+1 will not work on the text formated number. Any suggestions or help would be greatly appreciated.

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

    re: Preserve leading zeros

    Welcome to the forum.

    =text(a1+1, "00000000000")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-18-2009
    Location
    BC, Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    SOLVED Re: Leading zeros help requested.

    Thanks for the welcome.

    And thank you very much for the assistance. Worked like a charm.
    Last edited by BCRose; 10-18-2009 at 03:07 PM. Reason: SOLVED

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Preserve leading zeros

    Or... keep them all (original and +1s) as numbers but apply custom number format 00000000000 (eleven zeros) to the cells. This also removes the little green markers...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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