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

argumentrequired
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.

AB
1 102
2 204
3 306
fx =AVERAGEIFS(B1:B3, A1:A3, ">15") 5

errors

error values observed from the engine — each with a call that produces it.

errorproduced by
#DIV/0! =AVERAGEIFS(A1:A3, A1:A3, TRUE)

related

  • AVEDEV average of absolute deviations from the mean
  • AVERAGE.WEIGHTED average of values weighted by a second range
  • AVERAGEA averages values including text and logicals
  • AVERAGEIF averages cells that match a condition
  • BETA.DIST beta distribution
  • BETA.INV inverse of the beta distribution