2
I have the following AVERAGEIFS
that averages column I grouped by the values in column B
= AVERAGEIFS(B:B, A:A, A:A)
Problem is, sometimes, the column B sometimes contains an NA()
error. How do I filter these out of the equation?
I tried to do a filter
= AVERAGEIFS(ARRAYFORMULA(IF(ISNUMBER(B:B),B:B)), A:A,A:A)
but this gives me an error.
Here is some sample data:
* A * B *
| Fred | 8 |
| Bill | 9 |
| Jane | NA |
| Jane | 9 |
| Fred | NA |
| Bill | 5 |
| Fran | 9 |
| Fred | 4 |
| Jane | 1 |
What I want is to add a column C which shows next to each row, the person's average not counting the NAs.
* A * B * C *
| Fred | 8 | 6 |
| Bill | 9 | 7 |
| Jane | NA | |
| Jane | 9 | 5 |
| Fred | NA | |
| Bill | 5 | 7 |
| Fran | 9 | 9 |
| Fred | 4 | 6 |
| Jane | 1 | 5 |
As for the blank spots, I don't care much for what happens there - it can be an error, or a blank, so long as the NA
s don't affect the average I don't care.
Could you perhaps include some sample data for us to look at? – Burgi – 2016-05-04T00:19:35.507
@Burgi edited in an example – George Mauer – 2016-05-04T03:06:08.670