Excel AVERAGEIFS Function

The AVERAGEIFS Function in Excel is an advanced tool that calculates the average (arithmetic mean) of cells based on multiple criteria. Unlike the simpler AVERAGEIF, the AVERAGEIFS function allows you to apply more than one condition, making it ideal for complex data analysis.

At The Coding College, we aim to help you master Excel for real-world applications.

Syntax of the AVERAGEIFS Function

The syntax for the AVERAGEIFS Function is:

=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)  
  • average_range: (Required) The range of cells to calculate the average.
  • criteria_range1, criteria_range2, …: (Required) The ranges to evaluate against criteria.
  • criteria1, criteria2, …: (Required) The conditions to apply to corresponding ranges.

How Does the AVERAGEIFS Function Work?

The function evaluates each criteria_range against its corresponding criteria and calculates the average of cells in average_range that meet all conditions.

Practical Example 1: Sales by Region and Product

Suppose you want to calculate the average sales for “East” region products labeled as “Electronics.”

RegionProductSales (₹)
EastElectronics20000
WestElectronics15000
EastFurniture25000

Formula:

=AVERAGEIFS(C2:C4, A2:A4, "East", B2:B4, "Electronics")  

Practical Example 2: Average Grades Based on Gender and Subject

You want to calculate the average grades for female students in Math.

GenderSubjectGrade
FemaleMath85
MaleMath78
FemaleScience92

Formula:

=AVERAGEIFS(C2:C4, A2:A4, "Female", B2:B4, "Math")  

Using Logical Operators in AVERAGEIFS

Logical operators like >, <, >=, <=, =, and <> can be used in the criteria.

Example: Exclude Low Scores

StudentScore
A40
B85
C90

Formula:

=AVERAGEIFS(B2:B4, B2:B4, ">=50")  

Using Wildcards in AVERAGEIFS

The criteria parameter supports wildcards:

  • ?: Represents a single character.
  • *: Represents multiple characters.

Example: Match Names

NameSales (₹)
John10000
Johnny15000
Joanna12000

Formula:

=AVERAGEIFS(B2:B4, A2:A4, "Jo*")  

Common Errors in AVERAGEIFS

  1. #DIV/0!: Returned when no cells meet the criteria.
  2. #VALUE!: Occurs if criteria ranges and average ranges have different sizes.

Benefits of Using AVERAGEIFS

  1. Multi-Criteria Analysis: Perfect for analyzing data with complex conditions.
  2. Dynamic Updates: Automatically updates results with data changes.
  3. Flexibility: Works with numbers, text, dates, and wildcards.

Explore More with Excel

The AVERAGEIFS Function is an indispensable tool for advanced data analysis in Excel. Combine it with functions like SUMIFS or COUNTIFS for even deeper insights.

Leave a Comment