The AVERAGEIF function calculates the average of cells that meet a single condition. This guide explains how AVERAGEIF works and includes practical examples you can use immediately.

WHAT THE AVERAGEIF FUNCTION DOES

AVERAGEIF computes the mean of values that match one specific criterion, such as averaging sales amounts where the region is East, or calculating the average score for students who passed. It's useful when you want to analyze a filtered subset of your data.

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

WHEN TO USE AVERAGEIF

Use AVERAGEIF when you want to:

  • Calculate an average based on a single condition
  • Average a subset of your data based on a filter
  • Use a simpler alternative to AVERAGEIFS

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

Need help applying this? Try this in Numstro Builder

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

Need help applying this? Try this in Numstro Builder

COMMON MISTAKES & 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
  • AVERAGEIFS — average with multiple conditions
  • SUMIF — sum with one condition
  • COUNTIF — count with one condition
FURTHER READING

Official Microsoft documentation:
AVERAGEIF — Microsoft Support