=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.
| Parameter | Required | Description |
|---|---|---|
| average_range | Yes | The range of values to average. |
| criteria_range1 | Yes | The first range to test. |
| criterion1 | Yes | The condition applied to criteria_range1. |
| criteria_range2, criterion2, ... | No | Additional range and condition pairs. A row is included only if it meets every condition. |
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?"
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.
=AVERAGEIFS(D2:D500, A2:A500, "West", B2:B500, "Enterprise")Averages column D for rows where the region is "West" and the segment is "Enterprise".
=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.
=AVERAGEIFS(C2:C500, A2:A500, ">="&DATE(2026,7,1), A2:A500, "<"&DATE(2026,10,1))Averages column C for Q3 2026.
=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.
AVERAGEIFS uses the same criterion syntax as AVERAGEIF:
">10", "<>Cancelled"&: ">"&F1"*widget*" (contains), "A?" (two characters starting with A)"<>" on its own matches non-empty cells, and "" matches empty onesAVERAGEIFS cannot express "region is West or East" within one criterion. Instead, calculate a combined average from sums and counts:
=(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.
| Feature | AVERAGEIF | AVERAGEIFS |
|---|---|---|
| Conditions | One | One or more |
| Averaged range position | Last, optional | First, required |
| Logic between conditions | n/a | AND |
=IFERROR(AVERAGEIFS(...), "") to display a blank.D2:D500 with A2:A499 fails.">=100", not >=100.$ before copying a summary formula across a grid.A:A) only when the sheet has no stray values below the data.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.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.