+ Reply to Thread
Results 1 to 3 of 3

formatted cell with leading zeros

  1. #1
    Registered User
    Join Date
    06-09-2009
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2003
    Posts
    91

    formatted cell with leading zeros

    I have a whole number in cell C2, but i am formatted it in Cell C3 to always have leading zeros combined with the number in Cell C2, where the result will be 8 digits long.

    example, my number in cell C2 = 572 but i need it formatted to be 00000572, but if the number was 19 it needs to be formatted to be 00000019 and so on.
    Last edited by ssdsibes; 07-08-2009 at 08:10 PM.

  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: formatted cell with leading zeros

    You can do it with custom formatting (format as 00000000), or enter the numbers (including leading zeros) starting with an apostrophe (e.g, '00000019), or format the cells as Text beforehand and enter the leading zeros.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-09-2009
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2003
    Posts
    91

    Re: formatted cell with leading zeros

    Custom formatting worked, thank you! I'm learning so much.

+ 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