Forum Discussion

mvbuccheri's avatar
mvbuccheri
Copper Contributor
Sep 28, 2022

Beginner help on a ranking formula

Hello,

 

First time posting here so hoping I'm doing this correctly. I'm trying to rank the below table using this kind of formula (it's for fantasy football). The top row marks the actual cell in excel, meaning 'Ryan' starts in M7.

 

The Top 6 names advance. Top 4 are determined solely by number of W. Any ties then go to Points to decide who is higher. The Top 5-6 will be those remaining who have the highest points in ranking order.

 

For this example, I would expect an output of (Ryan-1, Dan-2, Bennett-3, Matt-4, Andrew-5, Bryan-6).

 

This is the formula I have now but it's definitely incomplete. I got to it using a lot of copying from other websites.

 

=ArrayFormula(INDEX($M$7:$M$18, MATCH(1, ($AF$7:$AF$18=SMALL($AF$7:$AF$18, AF7)) * (COUNTIF(AH$7:AH7, $M$7:$M$18)=0), 0)))

 

[M5][Q5][S5][T5][Y5][AF7]

[AG7]

TeamWLTPointsW rank

Top 7

Ryan300209.1011
Dan210385.5622
Bennett210386.2622
Matt210344.5822
Bryan210335.0422
Liam210324.9422
Andrew120391.4277
Shane120387.267 
Charley120306.187 
Owen120348.227 
Zac120318.287 
Chris030367.6612 

 

2 Replies

  • NikolinoDE's avatar
    NikolinoDE
    Platinum Contributor

    mvbuccheri 

    =ArrayFormula(INDEX($M$7:$M$18, MATCH(1, ($AF$7:$AF$18=SMALL($AF$7:$AF$18, AF7)) * (COUNTIF(AH$7:AH7, $M$7:$M$18)=0), 0)))

     

    What is in AH7?

     

    I'm not sure if I understood the question correctly, but wouldn't it be possible to create this as a table and filter to get the results you want?

    Attached is a table with your formula.

     

     

    Thank you for your understanding and patience

     

    NikolinoDE

    I know I don't know anything (Socrates)

    • mvbuccheri's avatar
      mvbuccheri
      Copper Contributor

      Hi NikolinoDE,

       

      AH7 was a typo, that should be AF7. I believe my formula is incorrect too since it isn't outputting what I would expect the results to be

Resources