Statistical

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 reference

Search ExcelTutor