paun_shotts
New Member
- Joined
- Nov 4, 2021
- Messages
- 41
- Office Version
- 2013
- Platform
- Windows
Hi,
Im having some troubles in creating a formula and hope someone can help me out.
I want to get the average winning margin of NBA sports games if certain criteria are met. I can get it working using AVERAGEIFS formula, but in the case that one team have played another team only 1 time, it cannot return the average of that event, and is returning an error.
If there is only 1 game played between two teams, I want to return that 1 winning margin, if there are more than 1 games, then return the average winning margin of all games between the two teams.
Below is the formula that I have so far:
=AVERAGEIFS('NBA Model'!$S:$S,'NBA Model'!$BD:$BD,A19,'NBA Model'!$T:$T,H18)
Column S shows the winning margin on the sheet "NBA Model"
Column BD shows the game between two teams, eg, "DET v ATL"
Column T shows the team that won
So above we are averaging the winning margin (column S), of the game "DET v ATL",where ATL is the winner of the game (column T)
I have a few screenshots to help out with this. The result returned should be "-25"
Thanks for your help.
Im having some troubles in creating a formula and hope someone can help me out.
I want to get the average winning margin of NBA sports games if certain criteria are met. I can get it working using AVERAGEIFS formula, but in the case that one team have played another team only 1 time, it cannot return the average of that event, and is returning an error.
If there is only 1 game played between two teams, I want to return that 1 winning margin, if there are more than 1 games, then return the average winning margin of all games between the two teams.
Below is the formula that I have so far:
=AVERAGEIFS('NBA Model'!$S:$S,'NBA Model'!$BD:$BD,A19,'NBA Model'!$T:$T,H18)
Column S shows the winning margin on the sheet "NBA Model"
Column BD shows the game between two teams, eg, "DET v ATL"
Column T shows the team that won
So above we are averaging the winning margin (column S), of the game "DET v ATL",where ATL is the winner of the game (column T)
I have a few screenshots to help out with this. The result returned should be "-25"
Thanks for your help.