SheetsLessons
Conditional function

AVERAGEIFS function in Google Sheets

AVERAGEIFS averages values from rows that meet every condition you list. It's the multi-condition version of AVERAGEIF.

Syntax

=AVERAGEIFS(average_range, criteria_range1, criterion1, [...])
average_range
The cells to average (comes first).
criteria_range1
The first range to test.
criterion1
Its condition.
...
Optional. More range/condition pairs.

Practice AVERAGEIFS

Task 1 of 1

Using AVERAGEIFS, find the average score of class B students who passed (score of 60 or more). Answer in E2.

E2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

AVERAGEIFS examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCDE
1RepRegionProductUnitsRevenue
2AvaWestMonitor12$2,400.00
3LiamEastKeyboard30$1,500.00
4MayaWestMouse45$900.00
5NoahNorthMonitor8$1,600.00
6ZaraEastMonitor15$3,000.00
7OmarWestKeyboard22$1,100.00
Sales by rep
FormulaResultWhat it shows
=AVERAGEIFS(E2:E7, B2:B7, "West", D2:D7, ">10")$1,466.67West deals with more than 10 units.
=AVERAGEIFS(D2:D7, C2:C7, "Monitor", B2:B7, "<>North")13.5Monitor units outside the North.

Tips and common mistakes

  • Same argument order as SUMIFS: the range you're averaging goes first.

Related functions