+ Reply to Thread
Results 1 to 3 of 3

Sort with leading zero as a number; not text

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    2

    Lightbulb Sort with leading zero as a number; not text

    I'm stuck.
    I cannot get this data to sort how I need it.

    It looks something like this:
    113
    1110
    09114
    10100
    119
    121
    1210
    1211

    But I need it to sort like this:

    09114
    113
    119
    121
    1110
    1210
    1211
    10100

    Possible? I can either get the leading zero first but then 1110 sorts before 121 (text sort). Or I can get those numbers straight but the leading zero is dropped making 09114 into 9114 and sorts it at the end (value sort). This is a SMALL portion of the data I need to sort and I have already pulled out the number from the letters so I'm CLOSE but no cigar.....

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Sort with leading zero as a number; not text

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross posted at Excel Key here.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    05-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Sort with leading zero as a number; not text

    Thanks for teaching me the rules.
    Wish I could thank you for actually addressing my problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Convert number with leading zeros to text using VBA
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2013, 05:02 PM
  2. [SOLVED] Mysterious Spacing Turn Number Into Text With Leading Zero
    By jackgan in forum Excel General
    Replies: 5
    Last Post: 07-31-2013, 10:35 AM
  3. Getting the text value of a number with a leading zero
    By Dr.John in forum Excel General
    Replies: 2
    Last Post: 08-20-2010, 09:23 AM
  4. Converting text to number, dropping leading zero
    By MichelleW in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2009, 04:31 PM
  5. [SOLVED] leading zeros when uploading a number from text file
    By mc01234 in forum Excel General
    Replies: 1
    Last Post: 05-18-2006, 03:55 PM

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