WHAT DOES AVERAGEIF DO

The AVERAGEIF function calculates the average of cells that meet a single condition. It’s useful when you want to average a subset of your data based on a filter.

For example, you can average sales amounts where the region is East.

WHEN TO USE IT
  • You want to calculate an average based on a single condition
  • You need a simpler alternative to AVERAGEIFS
  • Your data is organized in a consistent row/column format

How is this different from AVERAGEIFS?
AVERAGEIF only supports one condition. If you need to filter by multiple criteria, use AVERAGEIFS instead.

FORMULA SYNTAX
AVERAGEIF(range, criteria, [average_range])
ArgumentDescription
rangeThe range to evaluate with the condition
criteriaThe condition to apply (e.g. ">=80", "East")
average_range(optional) Range to average β€” defaults to range if omitted
EXAMPLE 1: AVERAGE WHERE REGION IS EAST

Average all sales where Region = East.

ABC
1RegionProductSales
2EastA100
3WestA200
4EastB150
5NorthA250
=AVERAGEIF(A2:A5, "East", C2:C5)

Result: (100 + 150) / 2 = 125

EXAMPLE 2: AVERAGE SALES OVER $200

Average all sales greater than $200.

AB
1SalesRegion
2100East
3250West
4300East
5200North
=AVERAGEIF(A2:A5, ">200")

Result: (250 + 300) / 2 = 275

COMMON PITFALLS AND EDGE CASES
  • If average_range is omitted, the function averages values in range
  • Quotes are required for logical operators (e.g. ">100", "North")
  • Blank cells in the average_range are ignored
  • If no values match the condition, the result is #DIV/0!
  • AVERAGEIF does not support multiple conditions β€” use AVERAGEIFS if needed
RELATED FUNCTIONS
FURTHER READING

Official Microsoft documentation:
AVERAGEIF – Microsoft Support