+ Reply to Thread
Results 1 to 5 of 5

a to z filter problem

  1. #1
    Registered User
    Join Date
    05-27-2011
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question a to z filter problem

    hey guys...as my name says I am a complete novice but need to sort some data urgently

    I have a problem I hope someone here can help me with...I have a single column of data about 1500 rows long that I need to sort from a - z...

    the problem is that the letters of the data that I need to sort alphabeticaly...are preceeded by a group of numbers which in some rows their are 5 numbers before the letters & in other rows their are 6 numbers... this is throwing off the results of the a-z sort...

    My question is their anyway I can use excel to just sort the letters & ignore the numbers?

    any help would be greatly appreciated


    regards

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: a to z filter problem

    new2exel,

    Welcome to the forum.

    Your request can be accomplished with the use of a helper column that would extract the text and then sorting the helper column. If you could upload a small sample version of the data so we can see what it looks like (is there a space between the numbers and letters, etc) we can better help you.

    ~tigeravatar

  3. #3
    Registered User
    Join Date
    05-27-2011
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: a to z filter problem

    thanks for the welcome & your prompt reply...regarding uploading a sample of the data, i'm unsure how I would do that as the info is a little sensitive but I can tell you that the numbers & letters are seperated by a / (forward slash) & a . (period) if that is of any help at all?

    e.g

    12345/abc.def.ghi
    123456/abc.def.ghi


    Regards

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: a to z filter problem

    Hello,

    Assuming your data starts at A1 to down including header. So

    B2, copy down

    =SUBSTITUTE(IF(ISNUMBER(FIND("/",A2)),REPLACE(A2,1,FIND("/",A2),""),A2),".","")

    Then sort by Col B
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: a to z filter problem

    in b
    =TRIM(RIGHT(SUBSTITUTE(A1,"/",REPT(" ",20)),20))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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