+ Reply to Thread
Results 1 to 6 of 6

Dynamic Array Rank-If

  1. #1
    Registered User
    Join Date
    01-19-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365
    Posts
    5

    Question Dynamic Array Rank-If

    Summary: I am trying to create a "Rank If" calculation but with dynamic spillable arrays only.

    I have tried using the filter function nested in rank along with the ByRows function.

    Before I try anything too complex, it seems like there should be a relatively simple and clever solution that is just out of grasp. Spreadsheet sample has been uploaded and the following picture is for ease of reference:

    Screenshot 2022-10-13 192814.png

    To begin, Assume all of the following are spillable:
    column F has some text identifiers like Name,
    column G has some numerical value (>=0)

    the desired output: Each Score is ranked for each Name. Joe's highest score would have a value of 1, second highest score a value of 2, and so on...
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Dynamic Array Rank-If

    You could generate the whole 3 column table like this:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    01-19-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Dynamic Array Rank-If

    Thank you WBD.
    However, to note anyone downloading the spreadsheet. The table was just inserted to easily create the spillable columns containing the data to demonstrate. There is no source table in the original problem.

    But let me play around with your solution and see if I can implement the concept.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,763

    Re: Dynamic Array Rank-If

    So where are the names and scores coming from, then? You need to give a fuller picture if you want a different solution.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,775

    Re: Dynamic Array Rank-If

    Somewhat long winded, but how about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-19-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Dynamic Array Rank-If

    Yes, it worked like a charm. - Solved.

    I simply replaced the table reference with a spillable column range:

    =LET(t,$F$17#:$G$17#,MAKEARRAY(ROWS(t),3,LAMBDA(r,c,IF(c<3,INDEX(t,r,c),SUMPRODUCT((INDEX(t,,1)=INDEX(t,r,1))*(INDEX(t,,2)>=INDEX(t,r,2)))))))

    For anyone searching, notable functions used: MakeArray

    WBD - thank you for lending your intellect to this problem!

+ 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. [SOLVED] COUNT Dynamic Array based on Date to return Dynamic Array Spill Range
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-06-2022, 01:14 PM
  2. [SOLVED] Conditional RANK using dynamic array function
    By Marbleking in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2021, 05:20 PM
  3. Conditional MIN and RANK using dynamic array formulas
    By Marbleking in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-11-2021, 04:42 AM
  4. [SOLVED] Conditional MAX and RANK of 18-digit text numbers using dynamic array formulas
    By Marbleking in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-06-2021, 07:41 AM
  5. [SOLVED] Rank VBA array
    By samot79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2017, 03:41 PM
  6. Rank With Array
    By John Vieren in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2012, 04:58 PM
  7. VBA Rank for an Array
    By PNCD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2009, 08:17 PM

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