FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

AVERAGEIF in Google Sheets

AVERAGEIF 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 AVERAGEIF Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Average for one region

ABC
1RegionRepAmount
2EastAna1200
3WestBen850
4EastCara430
5NorthDan970
6WestEli1500
7EastAna610

Formula: E2: =AVERAGEIF(A2:A7,"West",C2:C7)

Result: 1175

West rows are 850 and 1500, giving 1175.

Average of larger amounts only

ABC
1RegionRepAmount
2EastAna1200
3WestBen850
4EastCara430
5NorthDan970
6WestEli1500
7EastAna610

Formula: E2: =AVERAGEIF(C2:C7,">500")

Result: 1026

Five of the six amounts exceed 500; their sum 5130 divided by 5 is 1026.

Average for one rep

ABC
1RegionRepAmount
2EastAna1200
3WestBen850
4EastCara430
5NorthDan970
6WestEli1500
7EastAna610

Formula: E2: =AVERAGEIF(B2:B7,"Ana",C2:C7)

Result: 905

Ana's two amounts are 1200 and 610.

Try it

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

Formula in F2: =AVERAGEIF(A2:A7,"East",C2:C7)

Example spreadsheet for AVERAGEIF
ABCDEF
1RegionProductUnitsPriceResult
2EastPen1202.560
3WestPen802.5
4EastBook4512
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: 60
Practice this in a lesson: Multiple Conditions

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