AVERAGEIF function
the average (arithmetic mean) of all the cells in a range that meet a given criteria.
Statistical
Where can you use it?
Analytics, quality and research teams. Use this group to examine distributions, variability or relationships in measurements, sales or service durations.
Scenario in the workbook
Compare average transaction size by region. A zero amount still contributes to the average.
A worked example from the workbook
| Row | A | B | C |
|---|---|---|---|
| 6 | Region | Status | Amount |
| 7 | North | Paid | 120 |
| 8 | South | Paid | 75 |
| 9 | North | Open | 40 |
| 10 | North | Paid | 80 |
| 11 | South | Open | 0 |
North
=AVERAGEIF(A7:A11,"North",C7:C11)Expected result80
See the inputs and instructions for all 3 examplesSyntax
AVERAGEIF(range, criteria, [average_range])
Copyable formulas
English Excel · en-US
=AVERAGEIF(A7:A11,"North",C7:C11)Turkish Excel · tr-TR
=EĞERORTALAMA(A7:A11;"North";C7:C11)Worked examples
Compare average transaction size by region. A zero amount still contributes to the average.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A | B | C |
|---|---|---|---|
| 6 | Region | Status | Amount |
| 7 | North | Paid | 120 |
| 8 | South | Paid | 75 |
| 9 | North | Open | 40 |
| 10 | North | Paid | 80 |
| 11 | South | Open | 0 |
| Case | Formula | Expected result |
|---|---|---|
| North | =AVERAGEIF(A7:A11,"North",C7:C11) |
80 |
| South | =AVERAGEIF(A7:A11,"South",C7:C11) |
37.5 |
| West · error handling | =IFERROR(AVERAGEIF(A7:A11,"West",C7:C11),"No rows") |
No rows |