AVERAGEIF function
Returns the average (arithmetic mean) of all the cells in a range that meet a given criteria
Returns the average (arithmetic mean) of all the cells in a range that meet a given criteria.
Syntax
AVERAGEIF(range, criteria, [average_range])Square brackets indicate optional arguments.
Arguments
| Argument | Required | Meaning |
|---|---|---|
| range | Yes | One or more cells to average, including numbers or names, arrays, or references that contain numbers.A1:A20 |
| criteria | Yes | The criteria in the form of a number, expression, cell reference, or text that defines which cells are averaged. For example, criteria can be expressed as 32, "32", ">32", "apples", or B4.">5" |
| average_range | No | The actual set of cells to average. If omitted, range is used.B1:B20 |
Try AVERAGEIF
Average amounts from one region
=AVERAGEIF(C2:C6,"East",A2:A6)Average amounts from one region. The result is checked against a separately authored expected value for the supplied table. You can edit the data to explore the rule.
Inspect the current formula
Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.
Read the formula, one argument at a time
Explore the written function calls and their inputs. The calculation result belongs to the complete formula.
AVERAGEIF · top-level call
=AVERAGEIF(C2:C6,"East",A2:A6)1 / 3 · range
One or more cells to average, including numbers or names, arrays, or references that contain numbers.
AVERAGEIF reference ↗Follow the cells behind a result
Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.
The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.
Practice a complete task
Reference and compatibility
Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.