+ Reply to Thread
Results 1 to 4 of 4

Sorting via specifics

  1. #1
    Registered User
    Join Date
    12-04-2014
    Location
    Victoria, Australia
    MS-Off Ver
    2007
    Posts
    2

    Sorting via specifics

    Hi everyone,

    My excel skills aren’t the greatest, so any help would be appreciated.
    I’m trying to see if there is a way to sort the data I have by 2 conditions, firstly alphabetically, and then by a specific character within the cell, in a specific order. The cells contain an inconsistent character length, but all have the same suffix, so could this potentially be done using the “RIGHT()” function?

    The column contains a text line such as: southbank_3006,400iol-z19R,-----H
    I want to sort alphabetically via location (which is southbank in this example), which will use the first character, but then via a specific order for the 11th character from the right: z
    The desired order will be _ O I Z Y X W A B, as these are the only characters used.
    So if I have multiple entries they would appear in this order:
    southbank_3006,400iol-_19R,-----H
    southbank_3006,400iol-o19R,------
    southbank_3006,400iol-y19R,-----H
    southbank_3006,400iol-x19R,-----H
    southbank_3006,400iol-a19R,------
    southbank_3006,400iol-b19R,-----H
    stkilda_3182,200llr-_16R,-H----
    stkilda_3182,400iol-w19R,-H----

    Is this possible, or have I hit a dead end?

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sorting via specifics

    I think you can do it by inserting a supporting column
    Pls attach sample file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Sorting via specifics

    create a custom list:
    1. Click "Office" Button
    2. Excel Options
    3. Edit Custon Lists...
    4. Type in your custom list characters separated by commas.
    5. O.k.
    ---------------------------
    A. If necessary, insert two columns to the right of the column with the list
    B. In the first column enter:
    Please Login or Register  to view this content.
    and copy down
    C. In the second, enter
    Please Login or Register  to view this content.
    and copy down
    D. select the data in the two columns, Copy
    E. With the two columns still selected, Paste Special, Values
    F. Select the darta in all three columns,
    G. Sort, Custom Sort, enter the the column with the location, select Sort Order: A-Z
    H. Add a new level, select the column with your special sort characters, in the Sort Order dropdown, select "custom list". In the custom lists dialog box, double click your list and o.k., o.k.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    12-04-2014
    Location
    Victoria, Australia
    MS-Off Ver
    2007
    Posts
    2

    Re: Sorting via specifics

    Thanks heaps protonLeah. This worked. I had to modify the strings a little, but I got the end result.

+ 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. New Member - Looking for Specifics and to Learn
    By inlaymanterms in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-06-2013, 09:26 PM
  2. [SOLVED] Help! with specifics in a data series
    By EvoLancer in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-23-2013, 07:09 AM
  3. Separate dates/times by specifics
    By Buzzby in forum Excel General
    Replies: 5
    Last Post: 11-16-2009, 07:22 AM
  4. [SOLVED] Cells.Find Specifics
    By mpeplow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-06-2007, 01:02 PM
  5. How do I lookup data and result specifics?
    By Mark Rooker in forum Excel General
    Replies: 2
    Last Post: 05-15-2006, 07:15 AM

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