AVERAGEIF Function
Return the average of the numbers that meet a condition. range is the range the condition is tested on, and criteria the condition, such as ">20000", "<>x" or a value to match. average_range is the range whose numbers are averaged, cell by cell with range; without it, the numbers of range itself are averaged. When no cell meets the condition, AVERAGEIF returns #DIV/0!.
Syntax
AVERAGEIF(range, criteria, average_range)
Category: Conditional. Minimum arguments: 2. Maximum arguments: 3.
Available for supported offline calculation.
Examples
=AVERAGEIF(B4:D6,">20000")
The formula returns the average of the numbers in B4:D6 that are greater than 20,000.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.