+ Reply to Thread
Results 1 to 9 of 9

sort list/range of number with special characters

  1. #1
    Registered User
    Join Date
    06-16-2012
    Location
    europe
    MS-Off Ver
    Excel 93/03
    Posts
    11

    sort list/range of number with special characters

    dear excelforum,

    there is a list/range of data

    as ...

    100/2012
    2/2012
    3/2012
    99/2012
    22/2012
    33/2012

    when i am trying to sort ascending the list as per column a , it shows the following

    100/2012
    2/2012
    22/2012
    3/2012
    33/2012
    99/2012

    _______

    the sorting way i am requesting, should be as follows...

    2/2012
    3/2012
    22/2012
    33/2012
    99/2012
    100/2012


    thank you.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: sort list/range of number with special characters

    Use the below in a helper column

    =Left(A1,find("/",A1-1)) then sort (ascending) the entire range of data by this column
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    06-16-2012
    Location
    europe
    MS-Off Ver
    Excel 93/03
    Posts
    11

    Re: sort list/range of number with special characters

    dear excel forum,

    to ace_xl
    it does not work, the error is #value!
    the cell/range is formatted as text, does that matter
    also, will the above formula work if the data includes /2012, /2013, /20122, /20133

    to cutter
    forum moderator
    i did try to delete the repeated thread, i clicked delete thread, but the system did not seem to
    accept that
    as you can see there were repeated twice!

    thank you

  4. #4
    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: sort list/range of number with special characters

    Post a workbook with an example.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    06-16-2012
    Location
    europe
    MS-Off Ver
    Excel 93/03
    Posts
    11

    Re: sort list/range of number with special characters

    column a

    100/2012
    2/2012
    22/2012
    3/2012
    33/2012
    99/2012
    100/20122
    2/201222
    22/2013
    3/201333
    99/2011
    Attached Files Attached Files

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: sort list/range of number with special characters

    Here is the formula for the helper column in the attached worksheet

    =LEFT(B3,FIND("/",B3)-1)*1
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-16-2012
    Location
    europe
    MS-Off Ver
    Excel 93/03
    Posts
    11

    Re: sort list/range of number with special characters

    dear ace_xl

    i have attached a new file
    i clarify my query, sorry if not clear previously

    after sorting
    either by excel or vba

    the data shoud be like...
    2/2012
    2/2012
    2/2012
    3/2012
    22/2012
    33/2012
    99/2012
    100/2012
    22/2013
    100/20122
    2/201222
    3/201333
    Attached Files Attached Files

  8. #8
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: sort list/range of number with special characters

    Well in that case...

    Fisrt Sort part b by 'smallest to largest'
    Add level
    Then, Sort part a by 'smallest to largest'
    See attached
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-16-2012
    Location
    europe
    MS-Off Ver
    Excel 93/03
    Posts
    11

    Re: sort list/range of number with special characters

    dear ace_xl,

    thank you
    but
    i require the following..
    not to create 2 extra colums
    as the space is limited

    is there a way (eg.command button) via vba code

+ 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