+ Reply to Thread
Results 1 to 5 of 5

How do I sort end portion of value numberically

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    Maryland
    MS-Off Ver
    Excel 2007
    Posts
    3

    How do I sort end portion of value numberically

    Hi, I have a list of data from C1 to C552 that contains the same initial text 'FSAR_SOF-' which is then followed by some values in the format similar to '2.3-018'. How do I sort numerically in regards to the first number, then second and so on. For example, I if I have a list of the numbers

    FSAR_SOF-2.3-018
    FSAR_SOF-2.1-013
    FSAR_SOF-2.3-019
    FSAR_SOF-3.5-214

    I would want it to sort into

    FSAR_SOF-2.1-013
    FSAR_SOF-2.3-018
    FSAR_SOF-2.3-019
    FSAR_SOF-3.5-214

    Also, if possible, the back portion of the data can extend to values such as '3.5.1-231' and may have multiple parts such as '3.5-222 (a)' and '3.5-222 (b)'. Is it possible to sort by first criteria and then alphabetically by the values that follow on certain entries?

  2. #2
    Registered User
    Join Date
    12-24-2004
    Location
    Sofia, Bulgaria
    MS-Off Ver
    MS Office 2010
    Posts
    31

    Re: How do I sort end portion of value numberically

    Extracting certain symbols from cell in column D could be a solution. For example, =MID(C1;10;3) will return 2.3. Then, you can sort D column.

  3. #3
    Registered User
    Join Date
    06-25-2012
    Location
    Maryland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How do I sort end portion of value numberically

    Hi Dminkov, how do I apply the =MID formula to all of the values in column C? is there a way to automatically match the cells of C1 to D1 and C2 to D2 and so on?

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

    Re: How do I sort end portion of value numberically

    Slightly amending Dminkov's formula ..

    So in Cell D1 =MID(C1,10,7)
    In Cell D2 =MID(C2,10,7)
    and so on..
    copy this and drag down (paste) till cell D552

    then sort on Column D
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    06-25-2012
    Location
    Maryland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How do I sort end portion of value numberically

    Hi, so I have gotten the =MID formula applied to Column D and it does show the correct values that I need, however, how am I supposed to sort it numberically after instead of alphabetically? I want it to sort by smaller to greater values. Thanks.

+ 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