Hi there.
I am having an issue with what I presume to be a SUMIF formula problem. I have a spreadsheet for a football team that I manage, within it I keep track of all the games they play, the date and time of each match and various player and team statistics.
I have tried to recreate the problem section of my sheet as best as possible below.
<tbody>
</tbody>
Now aside from the fact that we've had a poor start to the season, I'm having some trouble calculating some totals.
I currently have a formula that counts how many goals we have scored which is:
This works as expected and returns a value of 2.
I now also want to calculate how many goals we have conceded, so I tried various versions of the following:
But that returns a value of 128519.63, so I presume that it is still factoring in the numerical date and time values of the Sum Range cells, despite me attempting to have the formula ignore them.
Am I going about this solution in a reasonable way, or is there a better method?
This sheet will constantly have matches added to it, so a static formula where I don't have to hard code in a simple Sum formula would be preferred if possible please!
The Opposing teams also have the possibility of changing mid-season, so a SUMIF(S) with "Every other Team" listed would also be rather long and clunky, but I could piece this together if this is the most suitable method (I assume there must be a time saver!).
Many thanks,
I am having an issue with what I presume to be a SUMIF formula problem. I have a spreadsheet for a football team that I manage, within it I keep track of all the games they play, the date and time of each match and various player and team statistics.
I have tried to recreate the problem section of my sheet as best as possible below.
Match 1 | |
Date | 04/04/2017 |
Time | 20:30 |
Score | |
Our Team | 2 |
Opponent 1 | 2 |
Result | Draw |
Match 2 | |
Date | 11/04/2017 |
Time | 21:00 |
Score | |
Our Team | 0 |
Opponent 2 | 5 |
Result | Loss |
<tbody>
</tbody>
Now aside from the fact that we've had a poor start to the season, I'm having some trouble calculating some totals.
I currently have a formula that counts how many goals we have scored which is:
Code:
=SUMIF($A$20:$A$500, "Our Team", $B$20:$B$500)
This works as expected and returns a value of 2.
I now also want to calculate how many goals we have conceded, so I tried various versions of the following:
Code:
=SUMIF($A$20:$A$500, {"<>Our Team","<>Date","<>Time","<>Result"}, $B$20:$B$500)
But that returns a value of 128519.63, so I presume that it is still factoring in the numerical date and time values of the Sum Range cells, despite me attempting to have the formula ignore them.
Am I going about this solution in a reasonable way, or is there a better method?
This sheet will constantly have matches added to it, so a static formula where I don't have to hard code in a simple Sum formula would be preferred if possible please!
The Opposing teams also have the possibility of changing mid-season, so a SUMIF(S) with "Every other Team" listed would also be rather long and clunky, but I could piece this together if this is the most suitable method (I assume there must be a time saver!).
Many thanks,