AVERAGEIFS
averages cells matching multiple conditions · from excel · excel: not yet compared · sheets: not yet compared
signature
AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2…], [criteria2…])
returns: number
| argument | required |
|---|---|
| average_range | required |
| criteria_range1 | required |
| criteria1 | required |
| criteria_range2… | optional |
| criteria2… | optional |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
| A | B | |
|---|---|---|
| 1 | 10 | 2 |
| 2 | 20 | 4 |
| 3 | 30 | 6 |
fx
=AVERAGEIFS(B1:B3, A1:A3, ">15") 5 errors
error values observed from the engine — each with a call that produces it.
| error | produced by |
|---|---|
| #DIV/0! | =AVERAGEIFS(A1:A3, A1:A3, TRUE) |