Skip to content

Average with conditions

Average only the values that meet one or more conditions.

The formula

Argument separator
Excel and Google Sheets
=IFERROR(AVERAGEIFS(C2:C100, B2:B100, "Sales"), 0)

How it works

  1. AVERAGEIFS(C2:C100, B2:B100, "Sales")

    Averages the scores in column C for rows where the department is Sales.

  2. IFERROR(…, 0)

    Shows 0 instead of #DIV/0! when no rows match.

Example

B: DepartmentC: Score
Sales80
Support95
Sales70

Tips

  • Result for this data: 75.