AVERAGEIFS Function in Apple Numbers: Formula, Examples & Troubleshooting
Learn the AVERAGEIFS formula in Apple Numbers: average numeric values that meet multiple conditions, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =AVERAGEIFS(D2:D9,B2:B9,"East",C2:C9,"Paid") returns 165 for the Orders table below. The matching amounts are 120 and 210; every supplied condition must be satisfied at the same record position.
Availability and version history
- Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
- Availability: Currently documented in Apple’s Functions Help 15.4 documentation edition; it is not a final supported-version endpoint.
- Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
- Checked: October 14, 2026, against the official AVERAGEIFS reference. Documentation and independent typed/arithmetic checks; no native Numbers test.
Syntax and matching positions
=AVERAGEIFS(avg-values, test-values, condition, test-values…, condition…)
Start with the average collection, then one tested collection and its condition. Further test/condition pairs are optional. Every test collection needs its own following condition, giving an odd total argument count. All collections must have the same size.
Apple allows any values in the collections, but its short entry does not fully specify every nonnumeric averaging or no-match outcome. This guide uses actual numeric amounts throughout. A condition may use comparisons, references, concatenation, wildcards or REGEX; the examples begin with exact categories and numeric bounds.
Enter the complete Orders table
Create a Numbers table named Orders, with sixteen columns A:P and twelve rows, including one header row. Enter the original data in A1:F9. Amount and Units are numbers; the remaining columns are text.
| Row | A: Item | B: Team | C: Status | D: Amount | E: Units | F: Agent |
|---|---|---|---|---|---|---|
| 2 | Pen | East | Paid | 120 | 12 | Ana |
| 3 | Pad | West | Pending | 75 | 5 | Bo |
| 4 | Box | East | Paid | 210 | 7 | Ana |
| 5 | Tape | North | Paid | 90 | 0 | Cy |
| 6 | Folder | West | Paid | 150 | 3 | Bo |
| 7 | Pen | East | Pending | 60 | 8 | Dee |
| 8 | Pad | West | Paid | 125 | 12 | Ana |
| 9 | Box | North | Pending | 80 | 4 | Cy |
| Cell | Formula | Expected result |
|---|---|---|
| H2 | =AVERAGEIFS(D2:D9,B2:B9,"East",C2:C9,"Paid") |
165 |
| H3 | =AVERAGEIFS(D2:D9,B2:B9,"West",C2:C9,"Paid") |
137.5 |
| H4 | =AVERAGEIFS(D2:D9,C2:C9,"Paid") |
139 |
| H5 | =AVERAGEIFS(D2:D9,B2:B9,"East") |
130 |
| H6 | =AVERAGEIFS(D2:D9,B2:B9,"North",C2:C9,"Paid") |
90 |
H2 and H3 preserve the original two examples. H4 averages all five Paid amounts, totaling 695. H5 includes East’s Pending amount of 60, demonstrating why removing a condition changes the population being summarized.
Show the numerator and denominator separately
In J2 enter =SUMIFS(D2:D9,B2:B9,"East",C2:C9,"Paid"); expect 330. In J3 enter =COUNTIFS(B2:B9,"East",C2:C9,"Paid"); expect 2. In J4 enter =J2/J3; expect 165.
For a row-level check, enter =IF(B2="East",IF(C2="Paid",D2,0),0) in L2 and fill through L9. Expect 120,0,210,0,0,0,0,0. Their sum is 330, but averaging all eight helper cells gives 41.25. The six placeholder zeros must not be mistaken for six qualifying measurements. Divide the selected total by the selected count, as J4 does, for this complete numeric fixture.
In J6 enter =COUNTIFS(B2:B9,"Central",C2:C9,"Paid"); expect 0. Inspect that empty selected set before requesting a mean. The reference does not establish a specific no-match result or error token here.
Repeated tests on the amount range
Put 100 in N2 and 150 in N3. In N4 enter:
=AVERAGEIFS(D2:D9,C2:C9,"Paid",D2:D9,">="&N2,D2:D9,"<="&N3)
Expect approximately 131.6666666667, from 120,150,125. In N5 use =COUNTIFS(C2:C9,"Paid",D2:D9,">="&N2,D2:D9,"<="&N3); expect 3. Both conditions apply to the same amount, creating a closed interval.
Change N2 to 125. N4 becomes 137.5 and N5 becomes 2. Restore 100 afterward. A larger lower bound can increase a mean by removing a smaller observation; it does not alter the retained amounts.
Advanced: East OR Paid needs overlap-aware arithmetic
AVERAGEIFS combines its pairs with AND. To inspect an OR question on these fully numeric records, put 390, 695 and 330 in B11:D11 as the separately checked East, Paid and East-and-Paid totals. Put 3, 5 and 2 beneath them in B12:D12 as the corresponding record counts. These values can also be linked from separately calculated SUMIFS/COUNTIFS results.
In F11 enter =(B11+C11-D11)/(B12+C12-D12); expect approximately 125.8333333333, from 755/6. The six included amounts are 120,210,90,150,60,125.
In F12 enter =(B11+C11)/(B12+C12); expect 135.625. This incorrectly counts the East-and-Paid observations twice. In H11 enter =AVERAGE(H4:H5); expect 134.5. That instead weights the two overlapping group means equally. Neither shortcut is the mean of the union.
Keep this reconstruction tied to complete numeric data. A record count cannot be substituted blindly for a native averaging denominator when selected cells may have other types.
Limits and related functions
AVERAGEIF has different argument order and an optional average collection. SUMIFS returns a total, while COUNTIFS counts qualifying positions. IF makes helper rules visible; AVERAGE averages its own included observations without these conditions.
A numeric-looking format does not prove the stored value is numeric. Keep ranges aligned, quote literal comparisons and adapt argument separators to the document. Unspecified coercion, errors and historical client behavior remain separate from the fully populated cases above.