Conditional function

Google Sheets AVERAGEIF function

Averages the values in a range that meet one condition.

Syntax

=AVERAGEIF(range, criterion, [average_range])
rangeThe cells to test.
criterionThe condition to match.
average_rangeOptional. The cells to average. If left out, range is averaged.

Try it

Edit the formula and the result updates instantly. Click a cell to add its reference.

▦ Q1 sales
fx
Result: 308.333333333
ABCDE
1RepRegionProductUnitsRevenue
2AnaEastPens120240
3BenWestPaper80400
4CaraEastPaper45225
5DevNorthPens200400
6AnaEastInk30450
7BenWestPens95190
8CaraEastInk12180
9DevNorthPaper60300

Examples

These use the sample sheet above.

→ 308.333333333

Average revenue per paper sale.

→ 53.6666666667

Average units for the smaller sales.

Tips & common mistakes

Related functions