+ Reply to Thread
Results 1 to 7 of 7

Rank Cells Alphabetically, Multiple Criteria and Seperate Segments

  1. #1
    Registered User
    Join Date
    10-21-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    6

    Rank Cells Alphabetically, Multiple Criteria and Seperate Segments

    I have a set of data which I need to attach a fairly complex rank to. I have the headings: Sales Person, Company and Status. Firstly I need to separate the ranking by the different statuses, then rank first by Sales Person then Company. All are text values so will need to be ranked in alphabetical order.

    For Example:

    Sales Person Company Status Rank
    David AAA Authorised 1
    Fiona BBB Authorised 4
    Bianca GGG Authorised 3
    Fiona CCC Un-Authorised 2
    David FFF Authorised 2
    Fiona DDD Un-Authorised 3
    Fiona III Authorised 5
    Bianca HHH Un-Authorised 1
    Fiona EEE Un-Authorised 4

    Does anyone have experience with this sort of thing? I would really appreciate any assistance at all.

    Thanks in advance.

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Rank Cells Alphabetically, Multiple Criteria and Seperate Segments

    Do you try sorting?
    Select all > Sort & Filter > Custom Sort
    Sort by
    1. Status; Values = A to Z >>Add Level
    2. Rank; Values = Smallest to Largest >>Add Level
    1. Sales Person; Values = A to Z >>Add Level
    1. Company; Values = A to Z
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    Registered User
    Join Date
    10-21-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Rank Cells Alphabetically, Multiple Criteria and Seperate Segments

    Hi wenqq3,

    Sorting won't really work for what I'm trying to do here. I really need a rank functions so I can transfer the data onto another tab.

    I'm after something which can place the rows in order from A-Z, first by Sales Person, then by Company.



    I just realised I mixed up my example it should be as follows:

    Sales Person Company Status Rank
    David AAA Authorised 2
    Fiona BBB Authorised 4
    Bianca CCC Authorised 1
    Fiona DDD Un-Authorised 2
    David EEE Authorised 3
    Fiona FFF Un-Authorised 3
    Fiona GGG Authorised 5
    Bianca HHH Un-Authorised 1
    Fiona III Un-Authorised 4


    So looking at it in order it would look like:

    Sales Person Company Status Rank
    Bianca CCC Authorised 1
    David AAA Authorised 2
    David EEE Authorised 3
    Fiona BBB Authorised 4
    Fiona GGG Authorised 5
    Bianca HHH Un-Authorised 1
    Fiona DDD Un-Authorised 2
    Fiona FFF Un-Authorised 3
    Fiona III Un-Authorised 4

    Thanks

  4. #4
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Rank Cells Alphabetically, Multiple Criteria and Seperate Segments

    Very obviously that your data can sort by "Custom Sort".
    Perhaps that is some misunderstanding, can you upload a sample workbook(a little complex ,no simple like post #3).
    Thanks.

    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

  5. #5
    Registered User
    Join Date
    10-21-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Rank Cells Alphabetically, Multiple Criteria and Seperate Segments

    Example Template.xlsx

    Hi Wenqq3

    Yes I'm sorry for the misunderstanding, I've attached a slightly more complex example of what I am after.

    I would like to have a data input sheet where I can put all information, then have the spreadsheet automatically break this information out onto one of three separate worksheets in alphabetical order, based on the status.

    The best way I could think of was to rank them, but if you have another suggestion I am very open to suggestions.

    Thanks,
    Will

  6. #6
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Rank Cells Alphabetically, Multiple Criteria and Seperate Segments

    I still can sort using custom sort, or VBA as below(but doing the same things as custom sort.

    Please Login or Register  to view this content.
    Modified your formula in other three worksheets "Authorised - Not Proceeding", "Authorised - Proceeding", "Un-Authorised"
    OR after run the VBA code/custom sort, you can simple copy and paste the data to other worksheets too.(manual work)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-21-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Rank Cells Alphabetically, Multiple Criteria and Seperate Segments

    Example Template.xlsx

    Hi Wenqq3,

    Thanks so much for your suggestion, it was 99% there but I still had a few unique requirements which meant I couldn't sort.

    Anyway I figured out a formula which suits my needs.

    If I type the following into cell D2, I get what I need.

    SUMPRODUCT(--($C$2:$C$24=C2),--($B$2:$B$24<B2))+SUMPRODUCT(--($C$2:$C$24=C2),--($B$2:$B$24=B2),--($A$2:$A$24<A2))+1

    Thanks again for all your help.

+ 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: 6
    Last Post: 01-26-2014, 07:49 PM
  2. Split cell contents, paste segments into seperate cells in diff. Workbook
    By youngtusk87 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2012, 04:40 PM
  3. Breaking ties with rank alphabetically
    By ktms in forum Excel General
    Replies: 7
    Last Post: 11-03-2011, 07:06 PM
  4. RANK numerically and then alphabetically
    By liam-the-1-n-only in forum Excel General
    Replies: 7
    Last Post: 05-12-2010, 10:30 AM
  5. Formula to rank cells alphabetically
    By Dave Shaw in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2006, 09:10 AM

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