SUMIFS Function (Gnumeric)
Sum aligned matching amounts with Gnumeric SUMIFS, including sum-range-first syntax, multiple criteria and no-match results.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
SUMIFS adds values from the first range only where all criteria match corresponding positions. A qualifying row contributes its amount rather than one count. Multiple conditions are combined as AND tests.
The sum range comes first, followed by range/criterion pairs. This differs from SUMIF’s ordering. Keep matching dimensions and aligned records across all ranges. The source numerical collector ignores text, blanks and booleans in summed values; imported digit strings should not be assumed to contribute as numbers.
Syntax
SUMIFS(sum_range, range1, criterion1, [range2, criterion2], ...)
Worked examples
| 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 |
The original =SUMIFS(B1:B5,C1:C5,"apple") returns 90 by adding 10+30+50. The second original =SUMIFS(B1:B5,C1:C5,"apple",B1:B5,">20") returns 80, adding 30+50.
Put 20 in G1. =SUMIFS(B1:B5,C1:C5,"apple",B1:B5,">"&G1) returns the same 80 with a cell-driven threshold. Quote the operator and concatenate the stored value, instead of placing the cell name inside the string.
=SUMIFS(B1:B5,C1:C5,"plum") returns 0. Zero can mean no matches, matching zero amounts or cancellation between positive and negative amounts. Use a separate matching-row count if that distinction matters.
Advanced use
Create a category summary with fixed source ranges and a changing criterion. Compare a small subtotal with manual arithmetic before copying the formula across many categories. For an exhaustive, disjoint category partition, subtotals can be reconciled to the overall numeric total; overlaps and unmatched categories need separate attention.
Equal dimensions do not establish logical alignment. A shifted criterion range can produce a plausible answer about the wrong records. Keep source rows together during sorting and inspect the first and last record in every referenced range.
Errors and troubleshooting
SUMIFS(B1:B5,C1:C4,“apple”) returns #VALUE! for the selected dimension mismatch. Check the sum range’s first position as well as dimensions. Criteria tip: Text conditions often need quotes; operators combined with cell references should be constructed carefully. Keep the criterion ranges aligned with the corresponding values.
Preserve sum-range-first ordering when translating SUMIF calculations. Numeric text can explain a low total. Wildcard, locale-dependent coercion and all error-propagation cases are outside these bounded examples. A successful total alone does not establish completeness of the dataset.
Availability and verification
- Introduced: Gnumeric 1.12.32, explicitly listed among new functions in official NEWS.
- Historical source 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.
- Historical check: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.
The selected examples and errors were recalculated with the actual Gnumeric 1.12.57 engine under C.UTF-8 on 17 October 2026. Native workbooks and observed outputs are retained. No GUI array-entry behavior, retirement date or last-functioning release is established. Historical 1.12.62 registration is separate from the pinned 1.12.57 implementation.