Statistical
720 monthly searches
Intermediate
4 min read

Multi-Criteria Average Function in Excel - Average with Multiple Conditions

Calculate conditional averages with this multi-criteria averaging function....

Quick Start

Syntax

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

Parameters

average_range - Required. The range of cells to average. Only numeric values are included in the calculation.

criteria_range1 - Required. The first range to evaluate against criteria1. Must be the same size as average_range.

criteria1 - Required. The condition that defines which cells to average. Can be number, text, expression, or cell reference.

criteria_range2, criteria2 - Optional. Optional additional criteria pairs. Up to 127 criteria pairs supported for complex filtering.

Simplest Example

ABCD
1RegionQuarterSalesAverage
2EastQ150000
3EastQ260000
4WestQ145000
5East Q1
=AVERAGEIFS(C2:C4,A2:A4,"East",B2:B4,"Q1")
50000

Quick Reference

Two Criteria Average
=AVERAGEIFS(Sales, Region, "East", Quarter, "Q1")

Average sales for East region in Q1 only

Returns mean of values matching both conditions

Date Range Average
=AVERAGEIFS(Amount, Date, ">="&start, Date, "<="&end)

Average values between start and end dates

Dynamic date filtering with cell references

Numeric Threshold
=AVERAGEIFS(Score, Grade, "A", Attempts, "<=3")

Average A-grade scores with 3 or fewer attempts

Combines text and numeric criteria

Wildcard Match
=AVERAGEIFS(Sales, Product, "*Phone*", Status, "Sold")

Average sales for products containing "Phone" that are sold

Uses wildcards for flexible text matching

Real-World Examples

Regional Sales Performance Analysis

Calculate average sales by region and product category to identify high-performing combinations with this multi-criteria averaging function. Sales managers use this pattern to compare performance across geographic territories and product lines simultaneously. The Excel formula enables multi-dimensional analysis essential for strategic planning, resource allocation, and territory management. Perfect for identifying underperforming markets, optimizing inventory distribution, setting realistic targets, and making data-driven expansion decisions based on actual average performance metrics.

ABCD
1RegionCategorySalesWest+Electronics Avg
2WestElectronics$75,000
3WestElectronics$85,000
4EastElectronics$65,000
5Average:
=AVERAGEIFS(C2:C4,A2:A4,"West",B2:B4,"Electronics")
$80,000
Pro Tip: Use AVERAGEIFS with dynamic criteria from dropdown menus to create interactive dashboards.
Pattern: =AVERAGEIFS(values, region_range, region_criteria, category_range, category_criteria)
Student Performance by Department and Semester

Track average student scores filtered by academic department and semester using this multi-criteria averaging function. Education administrators analyze grade trends across departments and time periods to identify curriculum strengths and areas needing improvement. The Excel formula handles academic data perfectly, enabling institutions to benchmark departmental performance, track semester-over-semester changes, identify high-achieving student cohorts, and make evidence-based decisions about resource allocation and teaching methodology improvements.

ABCD
1DepartmentSemesterScoreCS+Fall Avg
2CSFall85
3CSFall92
4MathFall78
5Avg Score:
=AVERAGEIFS(C2:C4,A2:A4,"CS",B2:B4,"Fall")
88.5
Pattern: Filter data with multiple criteria, then calculate precise statistical means

Common Mistakes to Avoid

=AVERAGEIFS(A1:A10, B1:B5, "criteria")Mismatched range sizes causing errors

❌ The Problem:

  • Average_range and criteria_range must be identical size
  • Results in #VALUE! error immediately
  • Common when copying formulas across different datasets
  • Excel cannot align criteria with values to average

✅ Solution:

=AVERAGEIFS(A1:A10, B1:B10, "criteria")

All ranges in this multi-criteria averaging function must have the same dimensions. This function checks each row across all ranges simultaneously - if ranges are different sizes, Excel cannot determine which cells to compare. Always verify that average_range, criteria_range1, criteria_range2, etc., all have the exact same number of rows and columns for accurate multi-criteria averaging.

=AVERAGEIFS(Sales, Region, "East" OR "West")Attempting OR logic instead of AND

❌ The Problem:

  • This function only supports AND logic between criteria
  • OR operator syntax not supported in criteria
  • Results in error or unexpected behavior
  • Cannot average values matching any of several criteria

✅ Solution:

=(AVERAGEIFS(Sales,Region,"East")+AVERAGEIFS(Sales,Region,"West"))/2

This function applies AND logic - all criteria must be true. For OR logic (average if East OR West), use multiple functions combined with arithmetic. Or use <Link href="/formulas/sumproduct">SUMPRODUCT</Link> with conditional arrays for more complex OR scenarios. Each call evaluates its own set of conditions independently, then you combine results mathematically.

=AVERAGEIFS(A1:A10, B1:B10, ">100")Forgetting quotes around comparison operators

❌ The Problem:

  • Operators like >, <, >= must be in quotes
  • Without quotes, Excel treats > as a syntax error
  • Results in formula parse error
  • Common mistake when using numeric comparisons

✅ Solution:

=AVERAGEIFS(A1:A10, B1:B10, ">100")

Always enclose comparison operators in quotes when using this multi-criteria averaging function. For dynamic thresholds with cell references, use concatenation: <code>=AVERAGEIFS(A1:A10, B1:B10, ">"&D1)</code>. This function requires operator strings to be properly formatted - quotes make the operator part of the criteria text that Excel can parse and evaluate correctly.

Frequently Asked Questions

Other Statistical Functions

Related Formulas

Master these AVERAGEIFS variants:

Master Excel AVERAGEIFS

From basics to advanced - AI generates perfect formulas instantly.