Skip to content

Excel function · Statistics

AVERAGEIFS

Averages the numbers whose row meets several conditions.

What it does

AVERAGEIFS averages only the rows that meet every condition you give. Like SUMIFS, the range to average comes first, then pairs of range and condition.

Syntax

=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)

Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ,

Arguments

average_range
The numbers to average.
criteria_range
A range to test, the same size as the average range.
criteria
The condition for that range.

Example

What do red items in size Large cost on average?

ABCDE
1ColourSizePriceRed and large
2RedLarge2426
3BlueLarge20
4RedSmall14
5RedLarge28

The formula in E2:

=AVERAGEIFS(C2:C5,A2:A5,"Red",B2:B5,"Large")

Result: 26

Two rows are both Red and Large: 24 and 28. Their average is 26. The blue large one and the red small one don't meet both conditions.

Common mistakes

  • Putting the average range last, as in AVERAGEIF. In the IFS version it comes first.
  • Expecting OR logic. Every condition must be true for a row to count.

In other Excel languages

Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.

Excel languageFunction nameSeparator
EnglishAVERAGEIFS,
DeutschMITTELWERTWENNS;
FrançaisMOYENNE.SI.ENS;
Español (España)PROMEDIO.SI.CONJUNTO;
Español (México)PROMEDIO.SI.CONJUNTO,
日本語AVERAGEIFS,
한국어AVERAGEIFS,
繁體中文AVERAGEIFS,
ไทยAVERAGEIFS,
ខ្មែរAVERAGEIFS,
Tiếng ViệtAVERAGEIFS;

Practise it

More from this module

All functions