Rank using 3 criteria

HawkeyeBC

New Member
Joined
Mar 29, 2023
Messages
10
Office Version
  1. 2021
Platform
  1. Windows
I have a spreadsheet that tracks historical NCAA tournament data using Kenpom stats. I had a formula that got messed up somehow which was ranking the teams by their "seed rank". Meaning all of the #1 seeds each year would be ranked 1-4, and so on down the list 1-16.

So this year, UConn is the #1 ranked 1 seed, Houston would be #2, etc. What happened in my formula that got it messed up?

Column A is the year
Column B is the Seed # (1-16)
Column C is the overall ranking

Data goes from A2:A1470

=COUNTIFS('All Teams'!$A:$A,'All Teams'!$A2,'All Teams'!$B:$B,'All Teams'!$B2,'All Teams'!$C:$C,">"&'All Teams'!$C2)+COUNTIFS('All Teams'!$A$2:'All Teams'!$A2,'All Teams'!$A2,'All Teams'!$B$2:'All Teams'!$B2,'All Teams'!$B2,'All Teams'!$C$2:'All Teams'!$C2,'All Teams'!$C2)
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Can you post some sampled data, along with expected results?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Here is what the results should look like

YrSeedRkTeamSeed Rk
2024​
1​
1​
Connecticut
1​
2024​
1​
2​
Houston
2​
2024​
1​
3​
Purdue
3​
2024​
4​
4​
Auburn
1​
2024​
2​
5​
Iowa St.
1​
2024​
2​
6​
Arizona
2​
2024​
2​
7​
Tennessee
3​
2024​
4​
8​
Duke
2​
2024​
1​
9​
North Carolina
4​
2024​
3​
10​
Illinois
1​
2024​
3​
11​
Creighton
2​
2024​
2​
12​
Marquette
4​
2024​
4​
13​
Alabama
3​
2024​
3​
14​
Baylor
3​
2024​
3​
19​
Kentucky
4​
2024​
4​
22​
Kansas
4​
 
Upvote 0
How about
Fluff.xlsm
ABCDEF
1YrSeedRkTeamSeed Rk
2202411Connecticut11
3202412Houston22
4202413Purdue33
5202444Auburn11
6202425Iowa St.11
7202426Arizona22
8202427Tennessee33
9202448Duke22
10202419North Carolina44
112024310Illinois11
122024311Creighton22
132024212Marquette44
142024413Alabama33
152024314Baylor33
162024319Kentucky44
172024422Kansas44
Data
Cell Formulas
RangeFormula
F2:F17F2=COUNTIFS(A:A,A2,B:B,B2,C:C,"<"&C2)+1
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top