+ Reply to Thread
Results 1 to 3 of 3

Conditional Sorting

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    24

    Conditional Sorting

    I am relatively new to excel and I am trying to group a column according to certain conditions. Below is a sample column, and I want to separate them by first the letters, and second by the numbers. So here is a example column:


    3203-EM
    3203-LC
    3205-EM
    3205-HO
    3205-LC
    3206-EM Deck
    3206-HO Deck
    3206-LC Deck
    3207-EM
    3207-LC


    And I would like for it to look like:

    3203-EM
    3205-EM
    3206-EM Deck
    3207-EM
    3203-LC
    3205-LC
    3206-LC Deck
    3207-LC
    3205-HO
    3206-HO Deck



    I tried the sort feature, but that did not seem to work. Any suggestions or formulas that might do the trick?


    Thanks

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Sorting

    Use a helper column

    =RIGHT(A1,LEN(A1)-2)&LEFT(A1,4)

    and sort on that.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Sorting

    What are you sorting on? The result that you show, isn't in numeric order nor is it in alphabetic order according to the letter codes.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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