Need a formula that works for NHL Stats

hockeyfan1985

New Member
Joined
Apr 6, 2018
Messages
11
I have a formula that works for games played for W and L to add up to Games Played, I just need the formula that will work with Overtime and Shootout games added in. https://www.youtube.com/watch?v=-O5G7zR3PjI I used this to make my formulas just changed it to make it work for the NHL standings. Just need the formula for the OT, SO games. I thought I had a formula but get an error message saying "You've entered too FEW arguments for this function" Please Help been working on this formula for the whole day.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Further to our discussion in the other thread (https://www.mrexcel.com/forum/excel...ng-do-hockey-standings-sheet.html#post5045272), this should help move you forward on this project. The sample data is for four teams that I culled out of the entire 2018 NHL season's 1271-game results.

The source of the data in columns with yellow headers is a PowerQuery query from a website,
http://www.hockey-reference.com/leagues/NHL_2018_games.html

The columns with orange headers contain formulas. The standings formulas in green utilise the data from that table. Copy Q2 and R2 downwards in the column.

Book1
ABCDEFGHIJKLMNOPQR
1GmDateVisitorHostScorelineVScrHScrResultVisHstVPtsHPts
2110/04/17Calgary FlamesEdmonton OilersCalgary Flames 0 - Edmonton Oilers 3 R03RCGYEDM02
32910/07/17Edmonton OilersVancouver CanucksEdmonton Oilers 2 - Vancouver Canucks 3 R23REDMVAN02
47510/14/17Calgary FlamesVancouver CanucksCalgary Flames 5 - Vancouver Canucks 2 R52RCGYVAN20
522711/07/17Vancouver CanucksCalgary FlamesVancouver Canucks 5 - Calgary Flames 3 R53RVANCGY20
626711/14/17Vegas Golden KnightsEdmonton OilersVegas Golden Knights 2 - Edmonton Oilers 8 R28RVGKEDM02
728811/16/17Vegas Golden KnightsVancouver CanucksVegas Golden Knights 5 - Vancouver Canucks 2 R52RVGKVAN20
839812/02/17Edmonton OilersCalgary FlamesEdmonton Oilers 7 - Calgary Flames 5 R75REDMCGY20
944612/09/17Vancouver CanucksCalgary FlamesVancouver Canucks 2 - Calgary Flames 4 R24RVANCGY02
1050812/17/17Calgary FlamesVancouver CanucksCalgary Flames 6 - Vancouver Canucks 1 R61RCGYVAN20
116771/13/18Edmonton OilersVegas Golden KnightsEdmonton Oilers 3 - Vegas Golden Knights 2 OT32OTEDMVGK21
127121/20/18Vancouver CanucksEdmonton OilersVancouver Canucks 2 - Edmonton Oilers 5 R25RVANEDM02
137491/25/18Calgary FlamesEdmonton OilersCalgary Flames 3 - Edmonton Oilers 4 S/O34S/OCGYEDM12
147641/30/18Vegas Golden KnightsCalgary FlamesVegas Golden Knights 4 - Calgary Flames 2 R42RVGKCGY20
158882/15/18Edmonton OilersVegas Golden KnightsEdmonton Oilers 1 - Vegas Golden Knights 4 R14REDMVGK02
169282/21/18Calgary FlamesVegas Golden KnightsCalgary Flames 3 - Vegas Golden Knights 7 R37RCGYVGK02
179442/23/18Vancouver CanucksVegas Golden KnightsVancouver Canucks 3 - Vegas Golden Knights 6 R36RVANVGK02
1810723/13/18Edmonton OilersCalgary FlamesEdmonton Oilers 0 - Calgary Flames 1 R01REDMCGY02
1911133/18/18Calgary FlamesVegas Golden KnightsCalgary Flames 0 - Vegas Golden Knights 4 R04RCGYVGK02
2011283/20/18Vancouver CanucksVegas Golden KnightsVancouver Canucks 1 - Vegas Golden Knights 4 R14RVANVGK02
2111983/29/18Edmonton OilersVancouver CanucksEdmonton Oilers 1 - Vancouver Canucks 2 R12REDMVAN02
2212083/31/18Edmonton OilersCalgary FlamesEdmonton Oilers 2 - Calgary Flames 3 R23REDMCGY02
2312364/03/18Vegas Golden KnightsVancouver CanucksVegas Golden Knights 5 - Vancouver Canucks 4 S/O54S/OVGKVAN21
2412424/05/18Vegas Golden KnightsEdmonton OilersVegas Golden Knights 3 - Edmonton Oilers 4 R34RVGKEDM02
2512594/07/18Vegas Golden KnightsCalgary FlamesVegas Golden Knights 1 - Calgary Flames 7 R17RVGKCGY02
2612624/07/18Vancouver CanucksEdmonton OilersVancouver Canucks 2 - Edmonton Oilers 3 S/O23S/OVANEDM12
27
28TEAMGPWLOTPointsGFGADiffROW
29CGY1366113424206
30EDM13850164332116
31VAN1237282949-203
32VGK1283117473897
33Sum502521454161161022
Sheet54
Cell Formulas
RangeFormula
Q2=IF(E2="","",IF(F2>G2,2,IF(OR(H2="S/O",H2="OT"),1,0)))
R2=IF(E2="","",IF(G2>F2,2,IF(OR(H2="S/O",H2="OT"),1,0)))
B29=SUM(C29:E29)
B30=SUM(C30:E30)
B31=SUM(C31:E31)
B32=SUM(C32:E32)
B33=SUM(B29:B32)
C29=COUNTIFS($O$2:$O$26,$A29,$Q$2:$Q$26,2)+COUNTIFS($P$2:$P$26,$A29,$R$2:$R$26,2)
C30=COUNTIFS($O$2:$O$26,$A30,$Q$2:$Q$26,2)+COUNTIFS($P$2:$P$26,$A30,$R$2:$R$26,2)
C31=COUNTIFS($O$2:$O$26,$A31,$Q$2:$Q$26,2)+COUNTIFS($P$2:$P$26,$A31,$R$2:$R$26,2)
C32=COUNTIFS($O$2:$O$26,$A32,$Q$2:$Q$26,2)+COUNTIFS($P$2:$P$26,$A32,$R$2:$R$26,2)
C33=SUM(C29:C32)
D29=COUNTIFS($O$2:$O$26,$A29,$Q$2:$Q$26,0)+COUNTIFS($P$2:$P$26,$A29,$R$2:$R$26,0)
D30=COUNTIFS($O$2:$O$26,$A30,$Q$2:$Q$26,0)+COUNTIFS($P$2:$P$26,$A30,$R$2:$R$26,0)
D31=COUNTIFS($O$2:$O$26,$A31,$Q$2:$Q$26,0)+COUNTIFS($P$2:$P$26,$A31,$R$2:$R$26,0)
D32=COUNTIFS($O$2:$O$26,$A32,$Q$2:$Q$26,0)+COUNTIFS($P$2:$P$26,$A32,$R$2:$R$26,0)
D33=SUM(D29:D32)
E29=COUNTIFS($O$2:$O$26,$A29,$Q$2:$Q$26,1)+COUNTIFS($P$2:$P$26,$A29,$R$2:$R$26,1)
E30=COUNTIFS($O$2:$O$26,$A30,$Q$2:$Q$26,1)+COUNTIFS($P$2:$P$26,$A30,$R$2:$R$26,1)
E31=COUNTIFS($O$2:$O$26,$A31,$Q$2:$Q$26,1)+COUNTIFS($P$2:$P$26,$A31,$R$2:$R$26,1)
E32=COUNTIFS($O$2:$O$26,$A32,$Q$2:$Q$26,1)+COUNTIFS($P$2:$P$26,$A32,$R$2:$R$26,1)
E33=SUM(E29:E32)
F29=C29*2+E29
F30=C30*2+E30
F31=C31*2+E31
F32=C32*2+E32
F33=SUM(F29:F32)
G29=SUMIFS($F$2:$F$26,$O$2:$O$26,$A29)+SUMIFS($G$2:$G$26,$P$2:$P$26,$A29)
G30=SUMIFS($F$2:$F$26,$O$2:$O$26,$A30)+SUMIFS($G$2:$G$26,$P$2:$P$26,$A30)
G31=SUMIFS($F$2:$F$26,$O$2:$O$26,$A31)+SUMIFS($G$2:$G$26,$P$2:$P$26,$A31)
G32=SUMIFS($F$2:$F$26,$O$2:$O$26,$A32)+SUMIFS($G$2:$G$26,$P$2:$P$26,$A32)
G33=SUM(G29:G32)
H29=SUMIFS($F$2:$F$26,$P$2:$P$26,$A29)+SUMIFS($G$2:$G$26,$O$2:$O$26,$A29)
H30=SUMIFS($F$2:$F$26,$P$2:$P$26,$A30)+SUMIFS($G$2:$G$26,$O$2:$O$26,$A30)
H31=SUMIFS($F$2:$F$26,$P$2:$P$26,$A31)+SUMIFS($G$2:$G$26,$O$2:$O$26,$A31)
H32=SUMIFS($F$2:$F$26,$P$2:$P$26,$A32)+SUMIFS($G$2:$G$26,$O$2:$O$26,$A32)
H33=SUM(H29:H32)
I29=G29-H29
I30=G30-H30
I31=G31-H31
I32=G32-H32
I33=SUM(I29:I32)
J29=C29-(COUNTIFS($O$2:$O$26,$A29,$H$2:$H$26,"=S/O",$Q$2:$Q$26,2)+COUNTIFS($P$2:$P$26,$A29,$H$2:$H$26,"=S/O",$R$2:$R$26,2))
J30=C30-(COUNTIFS($O$2:$O$26,$A30,$H$2:$H$26,"=S/O",$Q$2:$Q$26,2)+COUNTIFS($P$2:$P$26,$A30,$H$2:$H$26,"=S/O",$R$2:$R$26,2))
J31=C31-(COUNTIFS($O$2:$O$26,$A31,$H$2:$H$26,"=S/O",$Q$2:$Q$26,2)+COUNTIFS($P$2:$P$26,$A31,$H$2:$H$26,"=S/O",$R$2:$R$26,2))
J32=C32-(COUNTIFS($O$2:$O$26,$A32,$H$2:$H$26,"=S/O",$Q$2:$Q$26,2)+COUNTIFS($P$2:$P$26,$A32,$H$2:$H$26,"=S/O",$R$2:$R$26,2))
J33=SUM(J29:J32)
 
Upvote 0
This seem like a fun problem set to work on. We'll need more info to help you though (especially for folks who aren't sports fans).

What does your data look like? What kind of calculation are you trying to do?

If you provide screenshots and a description of how you would like to operate on that data to get a specific result, folks on the board would be happy to help.

Example:
Data input is a row for each game, with Home team, away team, home goals, away goals, overtime home goals, overtime away goals, shootout home goals, shootout away goals, etc.
Desired output count of SO goals.

If your input set has the goals scored by type, continue with what the video said and use sumif fomulas and just change the specific columns you want to sum on (the OT/SO columns). If you need to modify the rank, you need to explain what the criteria is you want to modify on.
 
Upvote 0
The formula Dr. Steel posted is what I needed, I seen a post like his early but was using the NHL website as the power link and it was not working. Now this working except every team has 82 Losses, instead of 0 to start the season. Thank you for the help.
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,812
Members
449,095
Latest member
m_smith_solihull

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