Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Rank Column in Excel based on matching multiple columns

I have a table that looks like the following:
table

I’m trying to rank share of yards by game by position by team. I tried using rank.eq(index(filter())) but rank.eq seems to not accept this input.

I’m also willing to use pandas and python if you know how to do it there.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Thanks.

>Solution :

Would love if MS would release a RANKIFS function. But you can mimic by using a COUNTIFS formula. This will rank share-of-yards by Position/Game/Team.

Cell F2 formula:

=COUNTIFS(Table1[[#All],[Position]],[@Position],Table1[[#All],[GameID]],[@GameID],Table1[[#All],[Team]],[@Team],Table1[[#All],[Share of Yards]],">"&E2)+1

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading