AVERAGEIF practice exercises
Conditional averages with AVERAGEIF and AVERAGEIFS—Sales vs Ops bands, comparison criteria, and #DIV/0! traps.
AVERAGEIF is the mean sibling of SUMIF and COUNTIF. Same mental model: range, criteria, optional average range.
Exercise 1 — Department average
Average scores where Dept is Sales:
=AVERAGEIF(B2:B6,"Sales",C2:C6)
Live drill: AVERAGEIF Function.
Exercise 2 — Comparison criteria
Average every score above 80:
=AVERAGEIF(C2:C6,">80")
Exercise 3 — AVERAGEIFS
Sales scores of 80 or more:
=AVERAGEIFS(C2:C6,B2:B6,"Sales",C2:C6,">=80")
Argument order differs from SUMIFS — average range comes first.
Exercise 4 — Empty match set
If nothing matches, AVERAGEIF returns #DIV/0!. Guard only when a blank result is intentional:
=IFERROR(AVERAGEIF(...),"")
Related cleanup: data prep practice · COUNTIF practice.