+ Reply to Thread
Results 1 to 6 of 6

Force Leading Zeroes to Persist without ' marks...?

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    Florida US
    MS-Off Ver
    Excel 2007
    Posts
    96

    Force Leading Zeroes to Persist without ' marks...?

    HI,
    How do force leading zeroes to persist without putting in ' marks? I am trying to create a list that all four digits will persist in values when the number is 0641...etc.
    Thanks,
    Synthia

    (I can't use ' marks because they cause a probably when transferring to ACCESS...)

  2. #2
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Force Leading Zeroes to Persist without ' marks...?

    format cell with format custom number type : 0000

  3. #3
    Registered User
    Join Date
    04-19-2010
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Force Leading Zeroes to Persist without ' marks...?

    What context are you trying to do this in? Formulas? VBA?

    You will need the cell to be set as text though Excel makes it very hard to stick. You can try using
    Please Login or Register  to view this content.
    Where E1 is the cell your data comes from.
    Excel\Access, VBA, C#, C++, SQL, Java

  4. #4
    Registered User
    Join Date
    01-28-2012
    Location
    Belarus
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Force Leading Zeroes to Persist without ' marks...?

    Hi Synthia,

    As far as I understand, you should change the cells' format to "Text". Select your column, press Ctr+1, and select "Text" from the "caterory" list on the "Number" tab.
    After that whenever you enter your number with leading zeros, Excel won't "eat" zeros.

  5. #5
    Registered User
    Join Date
    07-05-2012
    Location
    Florida US
    MS-Off Ver
    Excel 2007
    Posts
    96

    Re: Force Leading Zeroes to Persist without ' marks...?

    Thank you!

  6. #6
    Registered User
    Join Date
    07-05-2012
    Location
    Florida US
    MS-Off Ver
    Excel 2007
    Posts
    96

    Re: Force Leading Zeroes to Persist without ' marks...?

    Thank you!!!

+ 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