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 nowHow 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
Examples
Average Math score
=AVERAGEIFS(D2:D7,B2:B7,"Math")80.33241 divided by the three Math students.
Average score at 85% attendance or more
=AVERAGEIFS(D2:D7,C2:C7,">=85")88.25Bilal and Emil, the two lowest attenders, are left out.
Biology students with high attendance
=AVERAGEIFS(D2:D7,B2:B7,"Biology",C2:C7,">=85")86.5Only 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.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | Course | Attendance % | Score | ||
| 2 | Amara | Math | 95 | 88 | ||
| 3 | Bilal | Math | 70 | 61 | ||
| 4 | Chen | Biology | 90 | 79 | ||
| 5 | Dina | Math | 88 | 92 | ||
| 6 | Emil | Biology | 65 | 58 | ||
| 7 | Farah | Biology | 98 | 94 | ||
| 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.
Excelio