AVERAGEIF
Average values for the rows matching one rule.
Syntax
=AVERAGEIF(range, criteria, [average_range])Worked example
Enter Day, Night, Day in A2:A4 and 8, 12, 10 in B2:B4. Average the day-shift values.
=AVERAGEIF(A2:A4,"Day",B2:B4)Result 9
Microsoft documentation
Check the arguments, supported editions and behavior of this function in Microsoft’s reference.
Microsoft referenceHow to use the AVERAGEIF function in Excel
Practice AVERAGEIF
Find the average hours for the day shift.
| A | B | |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 |
Show example formula
=AVERAGEIF(A2:A4,"Day",B2:B4) Lesson quiz
Answer three questions to see your level in this lesson.
