Excel AVERAGEIFS Function
AVERAGEIFS averages values only when multiple conditions are all satisfied.
Use it for multi-condition averages, such as average revenue by region and month, average score by team and status, or average days for one category inside a date range.
AVERAGEIFS syntax & arguments
Syntax
=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
-
1
average_range
RequiredThe cells to average when all criteria pass.
-
2
criteria_range1
RequiredThe first range of cells to test.
-
3
criteria1
RequiredThe condition that cells in
criteria_range1must meet. It can be a number, text, cell reference, expression such as">80", or wildcard pattern. -
4
criteria_range2, criteria2
Optional RepeatableAdditional range-and-criteria pairs. Each extra criteria range must line up with
average_range, and all criteria must pass before the matching value is included in the average.
Example
=AVERAGEIFS(D2:D50, B2:B50, "East", C2:C50, "Complete")
Average values in D2:D50 where B2:B50 is East and the matching cell in C2:C50 is Complete.
AVERAGEIFS caveats
-
The average range comes first
Unlike AVERAGEIF, AVERAGEIFS starts with
average_range, then uses range-and-criteria pairs. -
Criteria ranges must align
Every criteria range should cover the same rows or columns as
average_rangeso each test lines up with the value being averaged. -
All conditions are AND logic
A value is averaged only when every criteria pair passes for the same row or position.
-
Operators usually need quotes
Criteria such as
">80"or"<>Cancelled"must be written as text. -
Only numeric average cells count
Blank or text cells inside
average_rangeare skipped even when every criteria pair matches.
Need totals instead? Use SUMIFS when matching rows should drive values that are added instead of averaged.
Intro AVERAGEIFS practice problems
No intro AVERAGEIFS problems are currently available.
Advanced AVERAGEIFS practice problems
Use AVERAGEIFS alongside other Excel functions in realistic, less-prescriptive challenges.