Clinching NHL Playoff Spot

dotcanada

Board Regular
Joined
Dec 13, 2015
Messages
53
Office Version
  1. 2021
Platform
  1. Windows
I have a very unusual situation on my NHL standings file. This situation is from last season just before the end of the regular season. I've been waiting to get Office 2024 to see if I can better rectify my problem, which I now have (YAY!).

In the "Standings" sheet, lines 14 and 15 are considered within playoff contention (wildcards). I have it set up that (with conditional formatting) when the background color (on the team's name cells - in column Y) turns green, the team has clinched a playoff berth. If it turns red, the team is out of playoff contention.

Also in the "Standings" sheet, the "Pts" column is the teams total points. Under "PPts", this is the possible total points a team can get if they win the rest of their games. Under "EN", this is a column I made up called the "Elimination number" where if this number gets to less than zero, the team is out of playoff contention and the background color in the team name's cell would turn red.

Now here's the problem I'm having. In the example I presented below (according to NHL.com), in this situation, Tampa Bay had officially clinched a playoff spot because Washington and Detroit play against each other later on on April 9 (see the "Schedule" sheet at the bottom). Therefore, either Detroit or Washington will lose, hence, their PPts will go from 94 to 92. Even if it went to overtime and the losing team gets 1 point, there are not enough wins or points under the NHL's tie-breaking rules (listed below) to qualify for a playoff berth. So in this case, the background color for Tampa Bay would have to turn green.

Would there be a way to search the upcoming games in the "schedule" sheet and match them with the teams that are outside the playoff contention area in the "Standings" sheet (lines 16 - 23, where if there were 2 teams in the bottom 8 that were going to face off against each other)?

My sincere apologies in advance if there is any confusion regarding my question.

Cell Formulas
RangeFormula
Y14:Y23Y14=INDEX(Calculations!$BM$4:$BM$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
Z14:Z23Z14=INDEX(Calculations!$BN$4:$BN$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AA14:AA23AA14=INDEX(Calculations!$BO$4:$BO$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AB14:AB23AB14=INDEX(Calculations!$BP$4:$BP$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AC14:AC23AC14=INDEX(Calculations!$BQ$4:$BQ$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AD14:AD23AD14=INDEX(Calculations!$BR$4:$BR$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AE14:AE23AE14=INDEX(Calculations!$BS$4:$BS$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AF14:AF23AF14=INDEX(Calculations!$BV$4:$BV$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AG14:AG23AG14=INDEX(Calculations!$BW$4:$BW$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AH14:AH23AH14=INDEX(Calculations!$BX$4:$BX$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AI14:AI23AI14=INDEX(Calculations!$BY$4:$BY$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AJ14:AJ23AJ14=INDEX(Calculations!$BZ$4:$BZ$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AK14:AK23AK14=INDEX(Calculations!$CA$4:$CA$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AL14:AL23AL14=INDEX(Calculations!$CB$4:$CB$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AM14:AM23AM14=INDEX(Calculations!$CC$4:$CC$13,MATCH(SMALL(Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,$W14),Calculations!$BL$4:$BL$13+ROW(Calculations!$BL$4:$BL$13)/10^7,0))
AN14:AN23AN14=82-Z14
AO14:AO23AO14=164-((AB14*2)+AC14)
AP16:AP23AP16=IF(AND(AO16=$AM$15,OR($Z$15>(Z16+2),$AA$15>(AA16+2),$AD$15>(AD16+2),$AE$15>(AE16+2),)),AO16-$AM$15-1,AO16-$AM$15)
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
Y15Expression=AND(AM15>=MAX(AO16:AO23),OR(AD15>(INDEX(AD16:AD23,MATCH(MAX(AO16:AO23),AO16:AO23,0))+INDEX(AN16:AN23,MATCH(MAX(AO16:AO23),AO16:AO23,0))),AE15>INDEX(AE16:AE23,MATCH(MAX(AO16:AO23),AO16:AO23,0))+INDEX(AN16:AN23,MATCH(MAX(AO16:AO23),AO16:AO23,0))))textNO
BC4:BC19,AH14:AH23,AH28:AH30,BC28:BC43,AH33:AH35,AH38:AH47,AH51:AH82Cell Value<0textNO
BC4:BC19,AH14:AH23,AH28:AH30,BC28:BC43,AH33:AH35,AH38:AH47,AH51:AH82Cell Value>0textNO
Y16Expression=$AP$16<0textNO
Y17Expression=$AP$17<0textNO
Y18Expression=$AP$18<0textNO
Y19Expression=$AP$19<0textNO
Y20Expression=$AP$20<0textNO
Y21Expression=$AP$21<0textNO
Y22Expression=$AP$22<0textNO
Y23Expression=$AP$23<0textNO
Y14Expression=AND(AM14>=MAX(AO16:AO23),OR(AD14>(INDEX(AD16:AD23,MATCH(MAX(AO16:AO23),AO16:AO23,0))+INDEX(AN16:AN23,MATCH(MAX(AO16:AO23),AO16:AO23,0))),AE14>INDEX(AE16:AE23,MATCH(MAX(AO16:AO23),AO16:AO23,0))+INDEX(AN16:AN23,MATCH(MAX(AO16:AO23),AO16:AO23,0))))textNO


2023-24 NHL Season edit.xlsx
ABCDEFGHIJKLMNO
1HomeVisitor
2DateTeamScoreOTRWROWW/L/OTSO(W/L)ScoreOTRWROWW/L/OTSO(W/L)Team
Schedule

2023-24 NHL Season edit.xlsx
ABCDEFGHIJKLMNO
1219Saturday, April 6, 2024Pittsburgh Penguins5xxW 4L Tampa Bay Lightning
1220Boston Bruins3xW 2xOT Florida Panthers
1221Minnesota Wild2L 4xxW Winnipeg Jets
1222Chicago Blackhawks3xxW 2L Dallas Stars
1223San Jose Sharks3xW 2xOT St. Louis Blues
1224Columbus Blue Jackets6xxW 2L Philadelphia Flyers
1225Montréal Canadiens2L 4xxW Toronto Maple Leafs
1226Ottawa Senators3L 4xxW New Jersey Devils
1227New York Islanders2xxW 0L Nashville Predators
1228Calgary Flames2L 4xxW Edmonton Oilers
1229Los Angeles Kings6xxW 3L Vancouver Canucks
1230Sunday, April 7, 2024Detroit Red Wings    Buffalo Sabres
1231Chicago Blackhawks    Minnesota Wild
1232Carolina Hurricanes    Columbus Blue Jackets
1233San Jose Sharks    Arizona Coyotes
1234Washington Capitals    Ottawa Senators
1235New Jersey Devils    Nashville Predators
1236New York Rangers    Montréal Canadiens
1237Anaheim Ducks    St. Louis Blues
1238Colorado Avalanche    Dallas Stars
1239Monday, April 8, 2024Toronto Maple Leafs    Pittsburgh Penguins
1240Vancouver Canucks    Vegas Golden Knights
1241Tuesday, April 9, 2024Boston Bruins    Carolina Hurricanes
1242Detroit Red Wings    Washington Capitals
1243Florida Panthers    Ottawa Senators
Schedule
Cell Formulas
RangeFormula
G1219:G1243G1219=IF(C1219>I1219,"W",IF(D1219="x","OT",IF(C1219<I1219,"L","")))
H1219:H1243H1219=IF(AND(E1219="",F1219="",J1219="x")=TRUE,"SOW",IF(AND(K1219="",L1219="",D1219="x")=TRUE,"SOL",""))
M1219:M1243M1219=IF(C1219<I1219,"W",IF(J1219="x","OT",IF(C1219>I1219,"L","")))
N1219:N1243N1219=IF(AND(K1219="",L1219="",D1219="x")=TRUE,"SOW",IF(AND(E1219="",F1219="",J1219="x")=TRUE,"SOL",""))


2023-24 NHL Season edit.xlsx
BM
8GP = Games Played
9W = Total wins
10L = Total losses
11OT = Overtime/Shootout Losses
12RW = Regulation Win (excluding overtime or shootout win)
13ROW = Regulation/Overtime Win (excluding shootout win)
14GF = Goals For
15GA = Goals Against
16Diff = Goal Differential (GF - GA)
17P% = Point Percentage (Points earned / (Games Played x 2))
18S/O = Record in games decided by shoot-out
19Pts = Total Points
20GR = Games Remaining
21PPts = Possible Total Points
22EN = Elimination Number (<0 = Eliminated from Playoff Race)
Standings


2023-24 NHL Season edit.xlsx
BM
27Tie-Breaker Rules
281. Fewer number of games played.
292. Greater number of Regulation Wins (RW).
303. Greater number of Regulation/Overtime Wins (ROW).
314. Greater number of Wins (W).
325. Greater number of points earned in games against each other among 2 or more clubs.
336. Greater goals differential (Diff).
347. Greater number of Goals scored (GF).
Standings
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi dotcanada,
that's a tough question to solve with a simple formula... As in: you basically want do so some scenarios, not a simple calculation. If you'd e.g. calculate how many points/win a team could theoretically get, that's easy. But you want to know: given the matches that will come, is there a chance (if so, how big) that all teams below team X will jump over team X in the ranking. The only way I can see that happening is with scenario's (and VBA for that matter), not a simple calculation.
If I'm being creative you could calculate the number of matches being played where both teams are below team X in the ranking to give you some kind of proxy/indicator, but that's quite a niche-end-of-season indicator.
Good luck,
Koen
 
Upvote 0

Forum statistics

Threads
1,223,996
Messages
6,175,867
Members
452,678
Latest member
will_simmo

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