logo
excelfunctions.org
bookmarks

AVERAGEIF

Returns the average (arithmetic mean) of all the cells in a range that meet a given criteria.

StatisticalStatistics & Analysis

What it does

Averages cells that meet a single condition.

Syntax

AVERAGEIF(range, criteria, [average_range])

Arguments

  • range(range) β€” The range to check criteria against.
  • criteria(criteria) β€” The condition (e.g. ">10", "Apple").
  • average_range(range) β€” The actual cells to average (optional, defaults to 'range').

Examples

Average sales by region

Average Amount where Region is 'East'.

FORMULA
=AVERAGEIF(A2:A6, "East", B2:B6)
RESULT
150
SAMPLE DATA
AB
1RegionAmount
2East100
3West200
4East200
5North50
6East150