Skip to main content
SheetCraft
📊 Statistical Function · intermediate

AVERAGEIFS Function in Google Sheets

Returns the average of values that meet multiple conditions.

Syntax

AVERAGEIFS(average_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])

Returns: The mean of average_range values where ALL conditions match.

Excel equivalent: AVERAGEIFS (identical)

Parameters

NameRequiredDescription
average_rangeRequiredThe range to average.
criteria_range1RequiredThe first range to test.
criterion1RequiredThe first condition.
criteria_range2, criterion2, ...OptionalAdditional pairs (AND logic).

Examples

Q1 average for one customer

=AVERAGEIFS(C:C, A:A, "Acme Corp", B:B, ">="&DATE(2026,1,1), B:B, "<"&DATE(2026,4,1))

Mean of C for Acme Corp Q1 2026.

Sale for one product in one region

=AVERAGEIFS(D:D, A:A, "Apple", B:B, "West")

Mean of D where A is Apple AND B is West.

Excluding outliers

=AVERAGEIFS(B:B, B:B, ">0", B:B, "<10000")

Mean excluding zeros and values over 10000.

When to use an alternative

  • AVERAGEIFOnly one condition.
  • QUERY with AVG WHEREGrouped averages.

Common errors and how to fix them

  • #DIV/0!

    Cause: No rows match all criteria.

    Fix: Test with COUNTIFS. Wrap with IFERROR.

  • #VALUE!

    Cause: Mismatched dimensions.

    Fix: All ranges same size.

Related functions

Frequently Asked Questions

OR conditions?

No — all AND. Use QUERY for OR.

Why different argument order from AVERAGEIF?

AVERAGEIFS puts average_range FIRST. Same gotcha as SUMIF vs SUMIFS.

Source: Google Sheets official function reference.