AVERAGEIF in Zoho Sheet: Syntax, Worked Examples, and Troubleshooting
Average amounts for one region or status; learn the verified help syntax, sample formulas, independent expected results and common pitfalls.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =AVERAGEIF(B2:B9;"East";D2:D9) returns 130 for the Orders ledger below. The three East amounts total 390; their mean is 390/3.
Availability and version history
- Introduced: The original introduction version and date are not established by the checked sources.
- Availability: Currently documented in Zoho Sheet’s rolling web-service help; no numbered release or retirement endpoint is established.
- Scope: English-language web-service documentation. Mobile and offline-client parity is outside the verified scope.
- Checked: October 14, 2026, against the official AVERAGEIF reference. Documentation and independent typed/arithmetic checks; no native Zoho Sheet test.
Syntax and the averaged values
=AVERAGEIF(test_range; condition; average_range)
Zoho prints all three arguments and does not mark average_range optional in this entry. The examples here supply it explicitly. The condition may be a number, text or an expression. The tested and averaged positions must correspond to the same records; keep their ranges aligned.
Zoho specifically says logical values in the cell range are ignored by AVERAGEIF. Do not transfer AVERAGEA’s one/zero mapping into a conditional average. The reference also identifies #DIV/0! when no tested cells match or the average range contains only blank or text values.
Complete eight-order practice data
Create a blank sheet named Orders. Enter these headers in A1:F1 and all eight records in A2:F9. Keep Amount and Units numeric; the other columns contain text.
| Row | A: Order ID | B: Region | C: Status | D: Amount | E: Agent | F: Units |
|---|---|---|---|---|---|---|
| 2 | O-101 | East | Paid | 120 | Ana | 12 |
| 3 | O-102 | West | Pending | 75 | Bo | 5 |
| 4 | O-103 | East | Paid | 210 | Ana | 7 |
| 5 | O-104 | North | Paid | 90 | Cy | 0 |
| 6 | O-105 | West | Paid | 150 | Bo | 3 |
| 7 | O-106 | East | Pending | 60 | Dana | 8 |
| 8 | O-107 | West | Paid | 125 | Ana | 12 |
| 9 | O-108 | North | Pending | 80 | Cy | 4 |
Alternatively, download the same eight-order CSV and import it into a new blank sheet at A1, retaining its header row and comma-delimited columns. The download contains only the six input columns, not formulas or native test results. The result columns below start at H so they cannot overwrite A:F.
Original results with separate output cells
| Cell | Formula | Expected result |
|---|---|---|
| H2 | =AVERAGEIF(B2:B9;"East";D2:D9) |
130 |
| H3 | =AVERAGEIF(C2:C9;"Paid";D2:D9) |
139 |
| H4 | =ROUND(AVERAGEIF(B2:B9;"West";D2:D9);2) |
116.67 |
| H5 | =AVERAGEIF(B2:B9;"North";D2:D9) |
85 |
| H6 | =AVERAGEIF(C2:C9;"Pending";D2:D9) |
71.6666666667, approximately |
The first three preserve the original examples. Paid amounts total 695 across five observations. West’s 75,150,125 total 350, giving 350/3 before rounding. Keep the unrounded result for later calculations unless a defined reporting policy calls for rounded values.
Make a regional summary with its denominator
Put East, West and North in J2:J4. In K2 enter =COUNTIF($B$2:$B$9;J2), L2 =SUMIF($B$2:$B$9;J2;$D$2:$D$9) and M2 =AVERAGEIF($B$2:$B$9;J2;$D$2:$D$9). Fill K2:M2 through row 4.
| Row | Region | Expected K: Count | Expected L: Total | Expected M: Mean |
|---|---|---|---|---|
| 2 | East | 3 | 390 | 130 |
| 3 | West | 3 | 350 | 116.6666666667 |
| 4 | North | 2 | 170 | 85 |
In O2 enter =AVERAGE(M2:M4); expect approximately 110.5555555556. In O3 enter =SUM(L2:L4)/SUM(K2:K4); expect 113.75. The latter weights all eight orders equally; the former gives each region one-third of the weight despite its different count. The reconstruction relies on this fixture’s complete numeric amounts.
A minimum-amount selector
Put 100 in J6. In K6 enter =AVERAGEIF(D2:D9;">="&J6;D2:D9) and in L6 =COUNTIF(D2:D9;">="&J6). Expect 151.25 and 4, from 120,210,150,125.
Change J6 to 150; K6 becomes 180 and L6 becomes 2. Restore 100 afterward. The comparison is inclusive, so an amount equal to the boundary remains eligible. The average range is explicit even though it is the same as the test range.
Advanced: matching rows can outnumber averaged numbers
Create LogicalAmounts separately. Put Region and Amount in A1:B1, then enter:
| Row | A | B |
|---|---|---|
| 2 | East | 10 |
| 3 | East | =TRUE() |
| 4 | East | =FALSE() |
| 5 | East | 20 |
| 6 | West | 99 |
Enter =AVERAGEIF(A2:A6;"East";B2:B6) in D2; the documented logical-exclusion rule predicts 15, from 10 and 20. In D3 enter =COUNTIF(A2:A6;"East"); expect 4, because four category cells match. In D4 enter =(B2+B5)/D3; expect 7.5. That quotient uses the wrong denominator for the two included numeric observations.
In D5 enter =(B2+B5)/2; expect 15 as the numeric reconstruction. This contrast explains why a condition count is not automatically the averaging denominator for mixed types. Use genuine logical formulas, not text labels, in B3:B4.
Documented no-match case and limits
On the original Orders sheet, put =COUNTIF(B2:B9;"Central") in H8; expect 0. In H9 enter =AVERAGEIF(B2:B9;"Central";D2:D9); Zoho documents #DIV/0! for this no-match condition. It is not a measured average of zero. Keep the error demonstration out of unrelated totals.
The entry does not fully define every mixed text/blank layout, criteria-pattern parser or imported-string boundary. Its remarks and explicit errors are stronger evidence than a generic shared error table, but they do not establish every possible client result.
AVERAGE has its own type rules. AVERAGEIFS puts the average range first for multiple criteria. SUMIF, COUNTIF and ROUND support the transparent numeric examples above. The formulas follow Zoho’s English semicolon separators.