I have a spreadsheet I use to track game results for our league. I'm trying to create some metrics around our teams average goals for, against, shots, etc in cases where we won, lost, or tied. I've tried a bunch of methods to achieve this, one of which is using AverageIfs in an array. Below is an example:
=ArrayFormula(AVERAGEIFS($C$2:$C$30,$C$2:$C$30,"<>",$C$2:$C$30,">"&$F$2:$F$30))
Basically this formula says Average the values in C2:C30 (one set of scores) where the cell is not blank and the cell value is greater than the corresponding cell value in F2:F30 (the opposing team score value). Cells 14-30 are currently blank.
When I use this formula I get the value "3.17", but looking at the scores I know the average SHOULD be "3.00" (valid scores = 4, 2, 3, 3, 3).
I can't figure out why this doesn't work. I'm pretty sure the problem has to do with using a range for the criterion (always problematic), but it seems like it should work? Sadly I'm also on a Mac, and the Mac version of excel (I have excel, just doing this in google sheets) doesn't have step by step validation to see where it's failing.
Appreciate any help. Thanks!
-rt
=ArrayFormula(AVERAGEIFS($C$2:$C$30,$C$2:$C$30,"<>",$C$2:$C$30,">"&$F$2:$F$30))
Basically this formula says Average the values in C2:C30 (one set of scores) where the cell is not blank and the cell value is greater than the corresponding cell value in F2:F30 (the opposing team score value). Cells 14-30 are currently blank.
When I use this formula I get the value "3.17", but looking at the scores I know the average SHOULD be "3.00" (valid scores = 4, 2, 3, 3, 3).
I can't figure out why this doesn't work. I'm pretty sure the problem has to do with using a range for the criterion (always problematic), but it seems like it should work? Sadly I'm also on a Mac, and the Mac version of excel (I have excel, just doing this in google sheets) doesn't have step by step validation to see where it's failing.
Appreciate any help. Thanks!
-rt