+ Reply to Thread
Results 1 to 3 of 3

How do you put in numeric order while ignoring letters?

  1. #1
    Registered User
    Join Date
    10-13-2011
    Location
    Miami, FL
    MS-Off Ver
    Excel 2007
    Posts
    1

    How do you put in numeric order while ignoring letters?

    How can I put all rows in numeric order by serial number while ignoring the letters in front of the serial numbers? For instance, if I want all rows in order according to the serial number column when the numbers look like:

    AA-1010, AA-1009, BC-9999, ZX-0236.

    I want Excel to ignore the letters and put them in numeric order, so that the previous list would actually look like:

    ZX-0236, BC-9999, AA-1009, AA-1010.

    Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,194

    Re: How do you put in numeric order while ignoring letters?

    Use Text to Columns with hyphen/minus sign as the delimiter. Ignore the first column and output the second (the number) to a "helper" column. Sort on the helper column and, if no longer required, delete the helper column.

    Done

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How do you put in numeric order while ignoring letters?

    Add a helper column that takes the last 4 chars only and then sort by that column.

    e.g formula

    =RIGHT(A2,4)

    copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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