WorkbookLogic
FunctionStatisticalintermediateAVERAGEIFSIFROUND

AVERAGEIFS Function

By WorkbookLogic

The Excel AVERAGEIFS function averages numeric values that meet multiple conditions. It places the average range first and applies AND logic across aligned criteria pairs.

ExcelLast reviewed Sep 11, 2026
averageifs-function-v1.0.0.xlsx
Excel AVERAGEIFS Function
Average numeric values only when every selected condition is true and every criteria range stays aligned.
Source data, editableAVERAGEIFS examples
RegionStatusTeamScoreExampleCriterion 1Criterion 2Formula syntaxResult
NorthCompleteAlpha88.0North + CompleteNorthComplete=AVERAGEIFS(D12:D21,A12:A21,F12,B12:B21,G12)82.0
SouthCompleteBeta74.0Complete + AlphaCompleteAlpha=AVERAGEIFS(D12:D21,B12:B21,F13,C12:C21,G13)91.0
NorthOpenAlpha92.0South + CompleteSouthComplete=AVERAGEIFS(D12:D21,A12:A21,F14,B12:B21,G14)84.5
WestCompleteGamma0.0
EastOpenBeta81.0How to read the examples
NorthCompleteBeta76.0Each criteria pair filters the same source rows.
SouthCompleteAlpha95.0Every condition must be true before a score enters the average.
WestOpenGamma-10.0Numeric zero counts when its row matches.
NorthOpenBeta84.0
EastCompleteAlpha90.0
Reliability checks
North and Complete average equals the two visible matching scoresOK
Complete and Alpha average includes all three matching rowsOK

Overview

The Excel AVERAGEIFS function calculates an average for records that satisfy several rules at once. It handles the qualifying sum and numeric denominator together, avoiding separate formulas that might apply inconsistent conditions.

Quick reference

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

Returns: The arithmetic mean of numeric cells on rows where every condition is true. (number)

Arguments:

  • average_range (required) — The numeric cells to average.
  • criteria_range1 (required) — The first range Excel evaluates.
  • criteria1 (required) — The condition applied to criteria_range1.
  • criteria_range2 (optional) — An additional range aligned with the average range and first criteria range.
  • criteria2 (optional) — The condition applied to criteria_range2; additional range and criterion pairs may follow.

Additional criteria-range and criterion pairs are optional. Every supplied condition must pass on the same position, and all criteria ranges must align with average_range.

Common uses

  • Average performance by region and status.
  • Calculate scores for one team during one period.
  • Average approved transactions within a value band.
  • Measure completion times for one category and owner.

Calculations

AVERAGEIFS starts with the cells to average, then evaluates corresponding positions across every criteria range. A numeric value contributes only when all criteria for its row are true.

All ranges must have the same dimensions and represent the same records in the same order. Different-sized ranges return #VALUE!; shifted ranges can associate criteria with the wrong observations.

Qualifying zero values remain in the calculation because zero is numeric. Blank cells in average_range, text, and logical values are excluded. If no qualifying numeric cells remain, the function returns #DIV/0!.

Function behavior

Situation

Behavior

Multiple criteria

Uses AND logic; every condition must be true.

Numeric zero

Included in both the sum and count when its row qualifies.

Blank, text, or logical average cells

Excluded from the arithmetic mean.

No qualifying numeric cells

Returns #DIV/0!.

Different-sized ranges

Returns #VALUE!.

Text case and wildcards

Matching is not case-sensitive; * and ? support text patterns and ~ escapes a wildcard.

Operator criteria

Operators must be quoted and concatenated when combined with a cell reference or function result.

Calculated arrays

Range arguments must be worksheet ranges, not arrays returned by another function.

Common errors

Using AVERAGEIF argument order

What happens:
The average range is placed after the first criteria pair, so the arguments no longer describe the intended calculation.

Better approach:
Always place average_range first in AVERAGEIFS.

Using ranges with different boundaries

What happens:
Excel returns #VALUE! or criteria become associated with the wrong rows.

Better approach:
Use the same first row, last row, height, and width for every range.

Expecting OR logic

What happens:
A row that meets only one criterion is excluded.

Better approach:
Calculate and combine separate non-overlapping averages carefully, or use a more suitable grouped-summary method.

Treating zero as missing

What happens:
A qualifying zero remains in the denominator and lowers the average.

Better approach:
Exclude zero explicitly only when the business definition treats it as missing rather than a real observation.

Example

Example 1 — Region and Status

=AVERAGEIFS(D12:D21,A12:A21,F12,B12:B21,G12)

With North and Complete selected, the workbook averages scores 88 and 76 and returns 82.0.

Example 2 — Status and Team

=AVERAGEIFS(D12:D21,B12:B21,F13,C12:C21,G13)

Three records are both Complete and Alpha. Their scores average to 91.0.

Example 3 — Another Region and Status

=AVERAGEIFS(D12:D21,A12:A21,F14,B12:B21,G14)

This reuses the same aligned pattern for South and Complete and returns 84.5.

Example workbook

The workbook contains an AVERAGEIFS Example sheet with ten editable Region, Status, Team, and Score records. Three live formulas demonstrate two-condition averages, and two checks reconcile the North/Complete and Complete/Alpha results. A Notes sheet covers argument order, denominator behavior, AND logic, and alignment.

Key takeaway

Put the values to average first, keep every criteria range aligned, and remember that AVERAGEIFS includes only rows where all conditions are true.