1. Home
  2. Functions
  3. Statistical
  4. AVERAGEIFS

AVERAGEIFS function

Returns the average of the cells that meet all of several conditions.

Syntax

=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2], [criteria2], ...)

Arguments

ArgumentRequiredDescription
average_rangeRequiredThe cells to average
criteria_range1RequiredThe first range to check
criteria1RequiredThe condition for the first range
criteria_range2OptionalMore ranges
criteria2OptionalMore conditions

How to use AVERAGEIFS

AVERAGEIFS takes 3 required arguments and 2 optional arguments, and accepts more values in the same pattern. Type =AVERAGEIFS( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=AVERAGEIFS(B1:B3, A1:A3, "y", B1:B3, ">10")Result 20
Data in the sheet
AB
1y10
2n99
3y20

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.