Excel functions / Maths & statistics

AVERAGEIF & AVERAGEIFS

Averages only the values that meet one or more conditions.

Syntax=AVERAGEIF(range, criteria, [average_range])

Arguments

rangeThe cells to test.
criteriaThe condition to meet.
average_rangeOptional. The cells to average.

How it works

AVERAGEIF works just like SUMIF, but returns the mean of the matching values. AVERAGEIFS takes several conditions, with the average range first: =AVERAGEIFS(C2:C5,A2:A5,"East",C2:C5,">200").

Example

E2=AVERAGEIF(A2:A5,"East",C2:C5)
ABCDE
1RegionRepSales
2EastAna500375
3WestBen300
4EastCal250
5WestDee700
6

Result: 375. The average of the two East sales: (500 + 250) / 2.

Tips

Practise AVERAGEIF & AVERAGEIFS

Try it yourself in a real spreadsheet, with instant feedback on every answer.

Start the exercise

Related