AVERAGEIFS Function (Gnumeric)
Learn the AVERAGEIFS function in Gnumeric: Averages the value of the cells that meet multiple criteria in multiple ranges.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
AVERAGEIFS calculates the arithmetic mean of numeric values whose corresponding cells satisfy all supplied criteria. The value range comes first, followed by range/criterion pairs. Each additional condition narrows the selected records rather than adding a separate average.
Exact syntax and argument order
=AVERAGEIFS(actual_range,range1,criteria1[,range2,criteria2,...])
actual_range supplies the values to average. Every range/criterion pair supplies one test at corresponding positions. Keep ranges aligned and the same shape. A criterion can be a value or a comparison string such as “>=3”. All criteria must pass for a value to be selected.
The inspected aggregation ignores text, blank cells and Boolean values in the numeric value collection. A numeric zero remains a real observation. No eligible numeric values produces #DIV/0!, not a default zero average. The controls below use ordinary numeric value cells and simple literal criteria.
Retained practice dataset
Enter the data in rows 1 through 5 without placing a header in row 1:
| Row | A (Quantity) | B (Amount) | C (Category) |
|---|---|---|---|
| 1 | 1 | 10 | apple |
| 2 | 2 | 20 | pear |
| 3 | 3 | 30 | apple |
| 4 | 4 | 40 | pear |
| 5 | 5 | 50 | apple |
=AVERAGEIFS(B1:B5,C1:C5,"apple")
=AVERAGEIFS(B1:B5,C1:C5,"pear")
Both return 30, for different reasons: apple selects 10, 30 and 50, whose mean is 90/3; pear selects 20 and 40, whose mean is 60/2. Identical averages do not imply identical selected records or sample sizes.
Add a second condition
=AVERAGEIFS(B1:B5,C1:C5,“apple”,A1:A5,">=3") returns 40. Apple and quantity at least 3 select rows 3 and 5, so the result is (30+50)/2. The conditions combine with AND logic.
To make the threshold editable, put 3 in E1 and use =AVERAGEIFS(B1:B5,C1:C5,“apple”,A1:A5,">="&E1). The operator is text concatenated with E1’s current value. Writing “>=E1” would not insert that cell’s number.
Advanced interpretation
This is an unweighted mean of selected amount cells. The quantity column controls selection in the second example; it does not weight the amounts. A weighted mean requires a separately defined numerator and denominator. Likewise, averaging subgroup averages can give the wrong overall result when the groups contain different numbers of observations.
Keep the selected count or source rows available when interpreting an average. A mean of 30 based on two records and one based on three can carry different information even when their displayed numbers match.
Errors and troubleshooting
=AVERAGEIFS(B1:B5,C1:C5,“banana”) gives #DIV/0! because no row qualifies. =AVERAGEIFS(B1:B5,C1:C4,“apple”) gives #VALUE! because the shapes differ. Check complete range/criterion pairs and their alignment before changing the condition.
Criteria tip: Quote text conditions and comparison operators. Build an operator-plus-cell condition with concatenation, and preserve alignment between the criterion cells and the numeric values. Do not replace every no-match error with zero unless zero is genuinely the intended meaning.
Imported numeric text may be omitted from the value average. Inspect data types when a manual count and the result disagree. Wildcards, locale-sensitive parsing and complex error mixtures need separate controls; these examples do not certify every criteria form.
Availability and verification
Version coverage: Gnumeric 1.12.57 has the scoped checks below. The 1.12.62 evidence is a documentation/source check dated October 14, 2026.
- Introduced: Gnumeric 1.12.32, documented in the official release history.
- Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
- Scope: Desktop; the fn-math function module must be included and enabled.
- Checked: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.
The executable contract is also present in the official Gnumeric 1.12.57 fn-math source. The saved source was originally retrieved on October 17, 2026 and re-inspected for this guide. The last functioning release is not established; support in a named version is not a retirement claim.
The official release history lists AVERAGEIFS among new aggregation functions in Gnumeric 1.12.32. This establishes its documented introduction release; the fresh native checks here use 1.12.57.
On October 17, 2026, Gnumeric ssconvert 1.12.57 recalculated a synthetic workbook in the C.UTF-8 locale. Scoped controls: =AVERAGEIFS(B1:B5,C1:C5,"apple") → 30; =AVERAGEIFS(B1:B5,C1:C5,"pear") → 30; =AVERAGEIFS(B1:B5,C1:C5,"apple",A1:A5,">=3") → 40; =AVERAGEIFS(B1:B5,C1:C5,"banana") → #DIV/0!; =AVERAGEIFS(B1:B5,C1:C4,"apple") → #VALUE!. These are native calculation-engine results, not GUI tests or screenshots. Other tutorial layouts and displayed outputs are independent expectations unless covered by these exact formulas. Input/output files, preserved formulas, raw values and hashes were retained. The XLSX importer logged an unused workbookProtection-element warning; changed-input controls and recorded results were checked.