+ Reply to Thread
Results 1 to 4 of 4

I require sorting formula in excel sheet with complex sorting.

  1. #1
    Registered User
    Join Date
    08-28-2014
    Location
    Ahmedabad
    MS-Off Ver
    Office 7
    Posts
    15

    I require sorting formula in excel sheet with complex sorting.

    Hi,

    I have an excel sheet where I require to sort the data with country and level. The sorting should be done in following order.
    I have attached the excel sheet for your reference.

    Country Level
    US Complete
    UK Complete
    CAN Complete
    AU Complete
    US Advisory
    UK Advisory
    CAN Advisory
    AU Advisory
    US Exchange
    UK Exchange
    CAN Exchange
    AU Exchange
    Not Available

    Thanks in advance for your help.

    KaminaBook2.xlsx

  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: I require sorting formula in excel sheet with complex sorting.

    You can to do it by edit custom list
    see the attached file
    Attached Files Attached Files
    Samba

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

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: I require sorting formula in excel sheet with complex sorting.

    with VLookup to determine the status

    sort small to great
    country Z to A
    number small to great

    You expect a differant result in Not Available, but I think that will be a mistake.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: I require sorting formula in excel sheet with complex sorting.

    This works
    Copy columns A B and C to Sheet2

    in
    Sheet2!D1
    =LOOKUP(C1,{"Advisory","Complete","Exchange","Not Available"},{2,1,3,4})&LOOKUP(LEFT(B1,FIND(" ",B1)),{"Australia","Canada","UK","US"},{4,3,2,1})
    and copy down

    Sort by column D
    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.

+ 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. Replies: 17
    Last Post: 03-12-2015, 06:55 PM
  2. Facing problem regarding excel sheet when putting sorting formula
    By intouch01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2014, 06:24 AM
  3. complex alphanumeric sorting- excel 2010
    By jess-jane in forum Excel General
    Replies: 1
    Last Post: 04-02-2014, 11:56 PM
  4. Replies: 0
    Last Post: 02-24-2014, 11:27 AM
  5. Linking cells that require sorting, between worksheets
    By crafty carper in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-06-2013, 12:43 PM
  6. Replies: 0
    Last Post: 04-22-2011, 09:28 AM
  7. does sorting based on a large filter list require a macro?
    By nimbenja in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2007, 06:36 PM

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