Share this page:

MS Excel: AVERAGEIFS Function (WS)

Learn 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 Microsoft Excel AVERAGEIFS function is:

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

Parameters or Arguments

average_range is the range of cells that you wish to average.

criteria1_range, criteria2_range, etc, ... is the range to apply the associated criteria against. There can be up to 127 ranges and associated criteria.

criteria1, criteria2, etc, ... is 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 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 spreadsheet above, the following Excel 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