Excel AVERAGEIFS

AVERAGEIFS averages one column using only the rows that pass all of your conditions.

A teacher wants to know whether attendance really affects results. One overall average hides that. Comparing the average score of students who attend often against everyone in the same course makes the pattern visible, and AVERAGEIFS does it without sorting or splitting the class list.

Practice it now

How to write it

=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
average_range
The numbers to average.
criteria_range1
The column to test.
criteria1
The condition to meet.
criteria_range2, criteria2
Optional additional tests.

Watch it work

F2fx 
ABCDEFG
1StudentCourseAttendance %Score
2AmaraMath9588
3BilalMath7061
4ChenBiology9079
5DinaMath8892
6EmilBiology6558
7FarahBiology9894
8
1

241 divided by the three Math students.

Examples

Average Math score

=AVERAGEIFS(D2:D7,B2:B7,"Math")80.33

241 divided by the three Math students.

Average score at 85% attendance or more

=AVERAGEIFS(D2:D7,C2:C7,">=85")88.25

Bilal and Emil, the two lowest attenders, are left out.

Biology students with high attendance

=AVERAGEIFS(D2:D7,B2:B7,"Biology",C2:C7,">=85")86.5

Only Chen and Farah pass both tests.

Your turn

Find the average Math score for students with attendance of 80 or more. Type your formula in F2.

ABCDEF
1StudentCourseAttendance %Score
2AmaraMath9588
3BilalMath7061
4ChenBiology9079
5DinaMath8892
6EmilBiology6558
7FarahBiology9894
8

Common mistakes

Getting #DIV/0! when no rows match.

Nothing passed, so there is nothing to average. Wrap it in IFERROR to show a message.

Treating blanks as zero.

Empty cells in the average range are skipped, while a typed 0 pulls the average down.

Good to know

  • Compare a group's average with the overall AVERAGE to see how far it stands out.
  • One extreme value can distort an average. Check the MEDIAN too.
  • AVERAGEIFS or AVERAGEIF? AVERAGEIF allows one condition. AVERAGEIFS allows several and always puts the numbers first.