AVERAGEIFS Multiple Criteria
AVERAGEIFS multiple criteria lets you average cells that satisfy two or more conditions at once. Learn the syntax, real examples, and how it differs from AVERAGEIF and SUMIFS.
Introduction
AVERAGEIFS averages values only when every one of its criteria is true, which makes it perfect for questions like 'what is the average sales amount for Product A in the West region?' This guide covers the syntax, walks through worked examples with several conditions, and shows where AVERAGEIFS beats both AVERAGEIF and SUMIFS.
Prerequisites
- Familiarity with cell ranges and basic criteria
- The difference between a value range and a criteria range
1AVERAGEIFS Syntax — Every Range Must Be the Same Size
AVERAGEIFS takes the average range first, then pairs of criteria range and criteria. All ranges must have the same dimensions, or Excel returns #VALUE!. A row is included in the average only if it satisfies every condition you list. The function is AND-based: more criteria means a narrower (usually smaller) average.
Pick the average range
This is the column of numbers you want to average.
D2:D100Add each criteria range + condition pair
List them in any order after the average range; every range must match the size of the average range.
AVERAGEIFS(D2:D100, A2:A100, "A", C2:C100, "West")Think of AVERAGEIFS as SUMIFS divided by COUNTIFS for the same conditions.
2Example: Average by Product AND Region
Suppose column A holds Product, column C holds Region, and column D holds the Amount sold. To average only the amounts where Product is A and Region is West, you give AVERAGEIFS both conditions. Only rows meeting both are averaged.
Example
=AVERAGEIFS(D2:D100, A2:A100, "A", C2:C100, "West")Each criteria pair is AND-ed. If no row matches both, the formula returns #DIV/0! instead of an average.
Reference cells instead of hard-coding text, e.g. A2:A100, G1, so you can change the criteria without editing the formula.
3Numeric and Operator Criteria
Criteria are not limited to exact matches. You can use operators such as >, >=, <, and <> by joining them to a value, and you can mix a numeric condition with a text condition in the same formula. Wildcards (* and ?) work for partial text matches.
Example
=AVERAGEIFS(D2:D100, B2:B100, ">100", C2:C100, "West")The ">100" criteria is a text string; Excel evaluates it as a greater-than comparison. Use "Pro*" to average only products whose names start with 'Pro'.
When the threshold lives in a cell, concatenate: ">"&G2 so the cutoff updates automatically.
4AVERAGEIFS vs AVERAGEIF vs SUMIFS
AVERAGEIF handles a single condition and puts the average range LAST, while AVERAGEIFS takes the average range FIRST and supports many conditions. SUMIFS mirrors AVERAGEIFS exactly in argument order but returns a sum instead of an average. If you already know SUMIFS, AVERAGEIFS will feel identical except for the first range.
Example
=SUMIFS(D2:D100, A2:A100, "A", C2:C100, "West")Same conditions as the AVERAGEIFS example, but a total. Divide this SUMIFS by a COUNTIFS with the same criteria to reproduce AVERAGEIFS manually.
Prefer AVERAGEIFS over a SUMIFS/COUNTIFS pair — it is one function and avoids divide-by-zero handling.
5Handling the #DIV/0! When Nothing Matches
When no row satisfies all criteria, AVERAGEIFS returns #DIV/0! because it has nothing to divide by. Wrap the formula in IFERROR to show a clean zero or message instead of an error, which keeps dashboards tidy.
Example
=IFERROR(AVERAGEIFS(D2:D100, A2:A100, "A", C2:C100, "West"), 0)IFERROR catches the #DIV/0! and substitutes 0 (or any value you choose) so reports stay readable.
Use a text fallback like "No data" instead of 0 if a blank average would be misleading.
Functions Used
AVERAGEIFS
AVERAGEIFS calculates the average of cells that satisfy multiple criteria.
AVERAGEIF
AVERAGEIF calculates the average of cells that meet a single criterion.
AVERAGE
AVERAGE returns the arithmetic mean of a set of numbers.
SUMIFS
SUMIFS adds values that satisfy multiple criteria across one or more ranges.
Related Guides
AVERAGEIF with Criteria
Learn how to use AVERAGEIF with criteria in Excel and Google Sheets: syntax, text, number and date conditions, wildcards, and when to switch to AVERAGEIFS.
SUMIFS Multiple Criteria
Build SUMIFS multiple criteria formulas that total values matching two or more conditions in Excel and Google Sheets, including dates, wildcards and OR logic.
Calculate Loan Interest
Calculate loan interest in Excel using IPMT, PPMT, and PMT. Learn how to split every payment into interest and principal, and find the true total cost of a loan.
Summary
AVERAGEIFS is the conditional-average workhorse: give it an average range plus any number of criteria-range pairs, and it averages only the rows that satisfy all conditions. Remember the average range comes first, all ranges must be the same size, and a no-match result is a #DIV/0! you can tame with IFERROR.
Next Steps
- Try a three-criteria average (Product, Region, and Amount > 100) on your own data
- Read AVERAGEIF with Criteria for the single-condition version and its argument quirks
- See SUMIFS Multiple Criteria to apply the same multi-condition logic to totals