FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

AVERAGEIFS in Google Sheets

AVERAGEIFS with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the AVERAGEIFS Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Average one group

ABC
1NameGroupScore
2AnaA72
3BenB88
4CaraA91
5DanB65
6EliA84

Formula: E2: =ROUND(AVERAGEIFS(C2:C6,B2:B6,"A"),2)

Result: 82.33

Group A scores 72, 91 and 84 average to 247/3, rounded to two decimals.

Group and threshold

ABC
1NameGroupScore
2AnaA72
3BenB88
4CaraA91
5DanB65
6EliA84

Formula: E2: =AVERAGEIFS(C2:C6,B2:B6,"A",C2:C6,">80")

Result: 87.5

Only 91 and 84 satisfy both conditions.

No matching row

ABC
1NameGroupScore
2AnaA72
3BenB88
4CaraA91
5DanB65
6EliA84

Formula: E2: =AVERAGEIFS(C2:C6,B2:B6,"C")

Result: #DIV/0!

No row has group C, so there is nothing to average.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =AVERAGEIFS(C2:C7,A2:A7,"East",D2:D7,">10")

Example spreadsheet for AVERAGEIFS
ABCDEF
1RegionProductUnitsPriceResult
2EastPen1202.530
3WestPen802.5
4EastBook4512
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: 30

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.