Excel Function

AVERAGEIFS

Returns average for values matching multiple conditions.

AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

Arguments

average_range

Required

Specify the range of values to average.

criteria_range1

Required

Specify the range for the first condition.

criteria1

Required

Enter the match condition for criteria1.

criteria_range2

Optional

Specify the range where criteria_range2 is evaluated.

criteria2

Optional

Enter the match condition for criteria2.

Practice Preview

Use AVERAGEIFS to calculate the average of Sales in column D where Category matches Food and where Sales matches >=1000. You can set ranges by dragging from the start cell to the end cell in the same argument field.

Example Table

#
AProduct ID
BProduct Name
CCategory
DSales
2P001AppleFood1200
3P002BananaFood980
4P003NotebookStationery450
5P004PenStationery300
6P005GrapesFood1500
7P006RulerStationery250
8P007PeachFood860

How to Use (Formula)

=AVERAGEIFS(D2:D8, C2:C8, "Food", D2:D8, ">=1000")

Result

1350

Practice This Function

AVERAGEIFS FAQ

How do I use AVERAGEIFS in Excel?

Use AVERAGEIFS when you want to average values with multiple conditions. Enter Average range, Criteria range 1, Criteria 1 in that order, then add optional arguments when needed.

Where can I practice AVERAGEIFS?

Use the "Start Function Practice" button to jump straight into AVERAGEIFS drills.

What arguments does AVERAGEIFS use?

The main arguments are Average range, Criteria range 1, Criteria 1, Criteria range 2, Criteria 2. Start with the required ones, then add optional arguments if needed.