+ Reply to Thread
Results 1 to 8 of 8

0 as first number (cannot be text and # lengths very)

  1. #1
    Registered User
    Join Date
    01-11-2011
    Location
    chicago, il
    MS-Off Ver
    Excel 2007
    Posts
    5

    0 as first number (cannot be text and # lengths very)

    2007 excell

    I have data of hundrit of serial numbers of equipment that some start as ZERO, some as other number, some as letter. I don't want top change it to text because I need to sort it by number. How can I show the 0 as 1st number in the serial numbers I need to (to rest I don't want to add zero). To me 0 has a meaning because equipment that is 01234 is a different equipment from equipment 1234 (two different pcs).

    Please help.

  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: 0 as first number (cannot be text and # lenghts very)

    Format the cells as 00000 (enough zeros to put the leading zero in cells that need it).

    If the length of the numbers that need leading zeros are not the same, you have no choice but to format the cells as text.
    Last edited by shg; 01-11-2011 at 05:43 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-10-2011
    Location
    Canada
    MS-Off Ver
    Excel 2019
    Posts
    18

    Re: 0 as first number (cannot be text and # lenghts very)

    Right click on a cell, give the cell the format '000000000000 in the personalized category. Use the number of digits you have in your codes as I use 12 digits upc's. So it's just an added coma, that's it. As long as your upc's have the same number of digits.

    The apostrophe will disappear.

    Reproduce the format (using the paintbrush) to your barcode column and that should do it.


    Good luck


    PS. You can space them - this is how we do it: '0 00000 00000 0
    Last edited by Eddie Lives On; 01-11-2011 at 05:55 PM. Reason: Added PS & apostrophe

  4. #4
    Registered User
    Join Date
    01-11-2011
    Location
    chicago, il
    MS-Off Ver
    Excel 2007
    Posts
    5

    Thumbs down Re: 0 as first number (cannot be text and # lenghts very)

    Quote Originally Posted by shg View Post
    Format the cells as 00000 (enough zeros to put the leading zero in cells that need it).

    If the length of the numbers that need leading zeros are not the same, you have no choice but to format the cells as text.
    --------------------------------------------------------------------------------------------------------------------------------

    Are there any disadventages to format all the cells in the column as TEXT?

  5. #5
    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: 0 as first number (cannot be text and # lenghts very)

    A serial number / part number with leading zeros is, by definition, text. With consistent downstream processing, there are no disadvantages.

  6. #6
    Registered User
    Join Date
    01-11-2011
    Location
    chicago, il
    MS-Off Ver
    Excel 2007
    Posts
    5

    Talking Re: 0 as first number (cannot be text and # lenghts very)

    Quote Originally Posted by shg View Post
    A serial number / part number with leading zeros is, by definition, text. With consistent downstream processing, there are no disadvantages.

    --------------------------------------------------------------------------------------------------

    When you say "With consistent downstream processing" do you mean as long as all the cells in that one calumn are formated the same, here as Text?

  7. #7
    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: 0 as first number (cannot be text and # lenghts very)

    Yes, exactly.

  8. #8
    Registered User
    Join Date
    12-27-2010
    Location
    Colombia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: 0 as first number (cannot be text and # lenghts very)

    Make the cell format to Text and for the sorting check this article:

    http://support.microsoft.com/kb/322067

+ 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