Google Sheets AVERAGEIFS Function: Syntax, Examples & Tips

Returns the average of values that meet multiple conditions.
Google Sheets
=AVERAGEIFS(average_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What Is AVERAGEIFS?
  3. How AVERAGEIFS Works
  4. Basic Examples
  5. Operators and Wildcards
  6. OR Logic
  7. AVERAGEIF vs. AVERAGEIFS
  8. Common Use Cases
  9. Common Errors
  10. Tips and Best Practices
  11. Related Functions
  12. Example use case

Parameters

ParameterRequiredDescription
average_rangeYesThe range of values to average.
criteria_range1YesThe first range to test.
criterion1YesThe condition applied to criteria_range1.
criteria_range2, criterion2, ...NoAdditional range and condition pairs. A row is included only if it meets every condition.

What Is AVERAGEIFS?

AVERAGEIFS calculates the mean of values that satisfy all of several conditions. It extends AVERAGEIF the same way SUMIFS extends SUMIF. Typical questions: "What was the average order value in the West region during Q3?" or "What is the average score for Grade 10 students who passed?"

How AVERAGEIFS Works

The first argument is the range you want to average. After it come one or more pairs of a criteria range and a criterion. For each row, AVERAGEIFS checks every condition. Only rows that pass all of them (AND logic) are included. Text and blank cells in average_range are ignored.

Every criteria range must be the same size and shape as average_range.

Basic Examples

Two text conditions

Google Sheets
=AVERAGEIFS(D2:D500, A2:A500, "West", B2:B500, "Enterprise")

Averages column D for rows where the region is "West" and the segment is "Enterprise".

A numeric range

Google Sheets
=AVERAGEIFS(C2:C500, C2:C500, ">=100", C2:C500, "<=500")

Averages values between 100 and 500 inclusive. The same range can appear as both the averaged range and a criteria range.

A date window

Google Sheets
=AVERAGEIFS(C2:C500, A2:A500, ">="&DATE(2026,7,1), A2:A500, "<"&DATE(2026,10,1))

Averages column C for Q3 2026.

Criteria from cells

Google Sheets
=AVERAGEIFS($D$2:$D$500, $A$2:$A$500, G2, $B$2:$B$500, H$1)

Uses a region in column G and a segment in row 1 to fill a summary grid of averages.

Operators and Wildcards

AVERAGEIFS uses the same criterion syntax as AVERAGEIF:

  • Comparison operators in quotes: ">10", "<>Cancelled"
  • Joined to a cell value with &: ">"&F1
  • Wildcards for text: "*widget*" (contains), "A?" (two characters starting with A)
  • "<>" on its own matches non-empty cells, and "" matches empty ones

OR Logic

AVERAGEIFS cannot express "region is West or East" within one criterion. Instead, calculate a combined average from sums and counts:

Google Sheets
=(SUMIFS(D:D, A:A, "West") + SUMIFS(D:D, A:A, "East")) / (COUNTIFS(A:A, "West", D:D, "<>") + COUNTIFS(A:A, "East", D:D, "<>"))

Or use AVERAGE with FILTER for more flexible conditions.

AVERAGEIF vs. AVERAGEIFS

FeatureAVERAGEIFAVERAGEIFS
ConditionsOneOne or more
Averaged range positionLast, optionalFirst, required
Logic between conditionsn/aAND

Common Use Cases

  • Sales analysis: average deal value by region, rep, and quarter
  • HR: average salary by department and level
  • Marketing: average CPC by channel and month
  • Operations: average handling time by team and priority
  • Education: average marks by class and term

Common Errors

  • #DIV/0!: No row met every condition. Use =IFERROR(AVERAGEIFS(...), "") to display a blank.
  • #VALUE! from size mismatch: All ranges must have the same dimensions. D2:D500 with A2:A499 fails.
  • Argument order: Putting the averaged range last (AVERAGEIF style) returns wrong results or errors. It always comes first in AVERAGEIFS.
  • Unquoted operators: Write ">=100", not >=100.

Tips and Best Practices

  • Lock ranges with $ before copying a summary formula across a grid.
  • Use whole columns (A:A) only when the sheet has no stray values below the data.
  • Check how many rows contributed with COUNTIFS using the same conditions.
  • Text criteria are not case-sensitive.
  • AVERAGEIF: single-condition average
  • AVERAGE: unconditional mean
  • SUMIF: conditional sum
  • IF: custom logic for edge cases

Example use case

An e-commerce analyst wants the average order value for returning customers in the UK during October. =AVERAGEIFS(E2:E5000, B2:B5000, "UK", C2:C5000, "Returning", A2:A5000, ">="&DATE(2026,10,1)) returns it in one formula without building a pivot table.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.