excel functions

MS Excel: AVERAGEIFS Function (WS)

This Excel tutorial explains how to use the Excel AVERAGEIFS function with syntax and examples.


The Microsoft Excel AVERAGEIFS function returns the average (arithmetic mean) of all numbers in a range of cells, based on multiple criteria.


The syntax for the AVERAGEIFS function in Microsoft Excel is:

AVERAGEIFS( average_range, criteria1_range, criteria1, [criteria2_range, criteria2, criteria3_range, criteria3, ...] )

Parameters or Arguments

The range of cells that you wish to average.
criteria1_range, criteria2_range, ...
The range to apply the associated criteria against. There can be up to 127 ranges and associated criteria.
criteria1, criteria2, ...
The criteria to apply against the associated range. So criteria1 is applied against criteria1_range, criteria2 is applied against criteria2_range, and so on.

Applies To

The AVERAGEIFS function can be used in the following versions of Microsoft Excel:

  • Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007

Type of Excel Function

The AVERAGEIFS function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel AVERAGEIFS function examples and explore how to use the AVERAGEIFS function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the Excel spreadsheet above, the following AVERAGEIFS examples would return:

=AVERAGEIFS(D2:D7, A2:A7, 2012)
Result: 8.2

=AVERAGEIFS(D2:D7, A2:A7, 2012, B2:B7, ">3")
Result: 8.2

=AVERAGEIFS(D2:D7, A2:A7, 2012, B2:B7, ">4")
Result: 6

=AVERAGEIFS(D2:D7, A2:A7, 2012, B2:B7, ">3", C2:C7, "<=15")
Result: 8.2