How to calculate rank (subrank?) in NFL conference and division?

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,691
Office Version
  1. 365
Platform
  1. Windows
I have a sheet with the rankings of the 32 NFL teams. The rankings are based on the average of the rankings from several sports ranking websites. The overall ranking works. But I would like to be able to calculate the rank of each team withih its conference of 16 teams and its division of 4 teams. I have tested several formulas using various combinations of Rank, Filter, Index, but I either get a Spill error or Excel tells me that what I entered is not a formula.

In the minisheet below, the formulas in B8 & C8 work, but what I think is a comparable expression inside the table (F8) gets a Spill error. I entered the values in the Rank in Division column (G) manually to show what the result should be when the table is sorted by Division within Conference within Rank.

Can someone tell me what I am doing wrong and how to fix it?

I have macros that will sort the table.

VBA Code:
'==================================================================
'     Sort #1 - Rank
'==================================================================
Sub SortByRank()
    With ActiveSheet.Sort
        .SortFields.Clear
        .SortFields.Add Key:=Range("TblNFL[Rank Overall]"), Order:=xlAscending
'        .SetRange Range("TblNFL")  'This caused problems
        .SetRange ActiveSheet.ListObjects("TblNFL").Range
        .Header = xlYes
        .Apply
    End With
End Sub


'==================================================================
'     Sort #2 - Conference, Rank
'==================================================================
Sub SortByConferenceRank()
    With ActiveSheet.Sort
        .SortFields.Clear
        .SortFields.Add Key:=Range("TblNFL[Conference]"), Order:=xlDescending
        .SortFields.Add Key:=Range("TblNFL[Rank Overall]"), Order:=xlAscending
'        .SetRange Range("TblNFL")  'This caused problems
        .SetRange ActiveSheet.ListObjects("TblNFL").Range
        .Header = xlYes
        .Apply
    End With
End Sub


'==================================================================
'     Sort #3 - Conferene, Division, Rank
'==================================================================
Sub SortByConferenceDivisionRank()
    With ActiveSheet.Sort
        .SortFields.Clear
        .SortFields.Add Key:=Range("TblNFL[Conference]"), Order:=xlDescending
        .SortFields.Add Key:=Range("TblNFL[Division]"), Order:=xlDescending
        .SortFields.Add Key:=Range("TblNFL[Rank Overall]"), Order:=xlAscending
'        .SetRange Range("TblNFL")  'This caused problems
        .SetRange ActiveSheet.ListObjects("TblNFL").Range
        .Header = xlYes
        .Apply
    End With
End Sub

2024 NFL Power Rankings.xlsm
ABCDEFGHIJK
6R/CBCDEFGHIJK
77Rank OverallRank in ConferenceRank in DivisionTeamConferenceDivisionWk 14 Average Rank
88TRUETRUE13#SPILL!1Seattle SeahawksNFCWest13.8
99TRUETRUE15#SPILL!2Arizona CardinalsNFCWest14.2
1010TRUETRUE16#SPILL!3San Francisco 49ersNFCWest16.4
1111TRUETRUE17#SPILL!4Los Angeles RamsNFCWest16.6
1212TRUETRUE14#SPILL!1Tampa Bay BuccaneersNFCSouth14.1
1313TRUETRUE20#SPILL!2Altanta FalconsNFCSouth19.3
1414TRUETRUE24#SPILL!3New Orleans SaintsNFCSouth23.9
1515TRUETRUE27#SPILL!4Carolina PanthersNFCSouth26.8
1616TRUETRUE1#SPILL!1Detroit LionsNFCNorth1.1
1717TRUETRUE5#SPILL!2Green Bay PackersNFCNorth5.6
1818TRUETRUE6#SPILL!3Minnesota VikingsNFCNorth5.9
1919TRUETRUE22#SPILL!4Chicago BearsNFCNorth22.3
Power rankings
Cell Formulas
RangeFormula
B6:K6B6=col()
B8:B39B8=TblNFL[Conference]=I8
C8:C39C8=TblNFL[Conference]=TblNFL[@Conference]
E8:E19E8=RANK.EQ([@[Wk 14 Average Rank]],[Wk 14 Average Rank],1)
F8:F19F8=[Conference]=[@Conference]
A7:A19A7=ROW()
K8:K19K8=AVERAGE([@[Wk 14 NFL]]:OFFSET([@[Wk 14 Record]],0,-1))
Dynamic array formulas.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Perhaps?

=1+COUNTIFS([Wk 14 Average Rank],"<"&[@[Wk 14 Average Rank]],[Conference],[@Conference],[Division],[@Division])

If I put that in F8 or G8, it displays the expression as text. I checked the formatting.It was General, I changed it to Number (0).

2024 NFL Power Rankings.xlsm
EFGHIJK
6EFGHIJK
7Rank OverallRank in ConferenceRank in DivisionTeamConferenceDivisionWk 14 Average Rank
813 =1+COUNTIFS([Wk 14 Average Rank],"<"&[@[Wk 14 Average Rank]],[Conference],[@Conference],[Division],[@Division]) =1+COUNTIFS([Wk 14 Average Rank],"<"&[@[Wk 14 Average Rank]],[Conference],[@Conference],[Division],[@Division])Seattle SeahawksNFCWest13.8
9152Arizona CardinalsNFCWest14.2
10163San Francisco 49ersNFCWest16.4
11174Los Angeles RamsNFCWest16.6
12141Tampa Bay BuccaneersNFCSouth14.1
13202Altanta FalconsNFCSouth19.3
14243New Orleans SaintsNFCSouth23.9
15274Carolina PanthersNFCSouth26.8
Power rankings
Cell Formulas
RangeFormula
E6:K6E6=col()
E8:E15E8=RANK.EQ([@[Wk 14 Average Rank]],[Wk 14 Average Rank],1)
K8:K15K8=AVERAGE([@[Wk 14 NFL]]:OFFSET([@[Wk 14 Record]],0,-1))
 
Upvote 0
I don't know what was wrong before. I reentered your expression, after I studied it a little, and it works. Here's the entire minisheet.

Thank you

2024 NFL Power Rankings.xlsm
BCDEFGH
6Rank OverallRank in ConferenceRank in DivisionTeamConferenceDivisionWk 14 Average Rank
7111Detroit LionsNFCNorth1.1
8321Philadelphia EaglesNFCEast3.7
9532Green Bay PackersNFCNorth5.6
10643Minnesota VikingsNFCNorth5.9
111052Washington CommandersNFCEast11.6
121361Seattle SeahawksNFCWest13.8
131471Tampa Bay BuccaneersNFCSouth14.1
141582Arizona CardinalsNFCWest14.2
151693San Francisco 49ersNFCWest16.4
1617104Los Angeles RamsNFCWest16.6
1720112Altanta FalconsNFCSouth19.3
1822124Chicago BearsNFCNorth22.3
1923133Dallas CowboysNFCEast23.8
2024143New Orleans SaintsNFCSouth23.9
2127154Carolina PanthersNFCSouth26.8
2232164New York GiantsNFCEast31.3
23211Buffalo BillsAFCEast2.0
24421Kansas City ChiefsAFCWest4.2
25731Baltimore RavensAFCNorth6.8
26842Pittsburgh SteelersAFCNorth7.7
27952Los Angeles ChargersAFCWest9.6
281061Houston TexansAFCSouth11.6
291273Denver BroncosAFCWest12.8
301882Miami DolphinsAFCEast17.9
311993Cincinnati BengalsAFCNorth19.1
3221102Indianapolis ColtsAFCSouth19.5
3325114Cleveland BrownsAFCNorth25.3
3426123New York JetsAFCEast25.9
3528133Tennessee TitansAFCSouth27.6
3629144New England PatriotsAFCEast28.3
3730154Las Vegas RaidersAFCWest29.6
3831164Jacksonville JaguarsAFCSouth30.1
Power rankings
Cell Formulas
RangeFormula
B7:B38B7=RANK.EQ([@[Wk 14 Average Rank]],[Wk 14 Average Rank],1)
C7:C38C7=COUNTIFS([Conference],[@Conference],[Wk 14 Average Rank],"<"&[@[Wk 14 Average Rank]])+1
D7:D38D7=COUNTIFS([Conference],[@Conference],[Division],[@Division],[Wk 14 Average Rank],"<"&[@[Wk 14 Average Rank]])+1
H7:H38H7=AVERAGE([@[Wk 14 NFL]]:OFFSET([@[Wk 14 Record]],0,-1))
 
Upvote 0

Forum statistics

Threads
1,224,604
Messages
6,179,857
Members
452,948
Latest member
UsmanAli786

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