+ Reply to Thread
Results 1 to 13 of 13

Rank multiple criteria, not repeating

  1. #1
    Registered User
    Join Date
    02-17-2011
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    69

    Rank multiple criteria, not repeating

    Dear All,

    ​I have a rank formula that allows me to extract top 10 data, but if the data is less than 10, the rank repeats its self.

    =INDEX(C6:C1048576,MATCH(LARGE(D6:D1048576,ROW(A1:A10)),D6:D1048576,0),1)

    I have been trying to upload the excel sheet, I always get an error. hope the picture will help

    i have attached the excel sheet for reference, hope someone can help improve my current formula. thank you.

    Francis






    francis
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by AliGW; 07-16-2023 at 11:54 PM. Reason: SOLVED tag applied - no need to edit the thread title!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,557

    Re: Rank multiple criteria, not repeating

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Rank multiple criteria, not repeating

    Are you still using Excel 2016?
    If you want to check your current version, please click in Excel on your account name (top) and click office user info

  4. #4
    Registered User
    Join Date
    02-17-2011
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    69

    Re: Rank multiple criteria, not repeating

    I am using Microsoft Office Professional 2021

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,557

    Re: Rank multiple criteria, not repeating

    Please update your forum profile NOW and provide a sample workbook as requested.

  6. #6
    Registered User
    Join Date
    02-17-2011
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    69

    Re: Rank multiple criteria, not repeating

    The file was too large, now I realize. Please see attached sheet. Thank you
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,557

    Re: Rank multiple criteria, not repeating

    Clear G3 to K13 entirely, then try this in K3:

    =LET(r,SEQUENCE(10,,1,1),f,FILTER(B6:E14,D6:D14>=(LARGE(D6:D14,MIN(10,COUNT(D6:D14)))),""),s,SORTBY(f,INDEX(f,,3),-1),IFNA(HSTACK(r,s),""))
    Attached Files Attached Files
    Last edited by AliGW; 07-11-2023 at 01:54 AM.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,557

    Re: Rank multiple criteria, not repeating

    Actually, SEQUENCE won't work for you, so clear only H3 to K13 and try this in H3:

    =LET(f,FILTER(B6:E14000,(D6:D14000>=(LARGE(D6:D14000,MIN(10,COUNT(D6:D14000)))))*(D6:D14000<>""),""),s,SORTBY(f,INDEX(f,,3),-1),IFNA(s,""))

    Change ranges to suit.
    Attached Files Attached Files
    Last edited by AliGW; 07-11-2023 at 01:56 AM.

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Rank multiple criteria, not repeating

    According Microsoft SEQUENCE should be available in Excel 2021 and HSTACK should not be available in Excel 2021.

    Users Excel 2021, please empty all cells in H4:K13 and try in H4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,557

    Re: Rank multiple criteria, not repeating

    Yes, you are correct, however there is no HSTACK in my amended formula.

  11. #11
    Registered User
    Join Date
    02-17-2011
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    69

    Re: Rank multiple criteria, not repeating

    Quote Originally Posted by HansDouwe View Post
    According Microsoft SEQUENCE should be available in Excel 2021 and HSTACK should not be available in Excel 2021.

    Users Excel 2021, please empty all cells in H4:K13 and try in H4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    You are a savior, thank you it works really well. Appreciate your help

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,557

    Re: Rank multiple criteria, not repeating

    Thanks for the rep.

  13. #13
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Rank multiple criteria, not repeating

    You are Welcome!
    Thanks for your feedback, Glad to have helped. .

    If you haven't already, please consider adding reputation to all helpers you think they deserve.
    In that case please click * Add Reputation left below their answers.
    Last edited by HansDouwe; 07-17-2023 at 02:07 AM.

+ 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. Rank With Multiple Criteria Without Duplicates
    By appletree943 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2021, 08:28 PM
  2. Rank an item by multiple criteria
    By daoxx026 in forum Excel General
    Replies: 5
    Last Post: 02-16-2021, 05:33 PM
  3. [SOLVED] Count Rank with Multiple Criteria
    By journey0717 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2020, 04:52 AM
  4. [SOLVED] Rank Formula multiple criteria
    By excelxzzx in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-04-2020, 12:33 PM
  5. Rank and MAX dependent on multiple criteria
    By clairebear4_4 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2017, 06:30 PM
  6. Rank with Multiple Criteria
    By abbeyrd237 in forum Excel General
    Replies: 4
    Last Post: 06-21-2016, 12:52 AM
  7. rank according to multiple criteria
    By melvil in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-11-2014, 08:21 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