Contact

SUMIF Function (Gnumeric)

Math Beginner Gnumeric

Learn the SUMIF function in Gnumeric: Totals the arguments that meet the condition.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

The SUMIF function in Gnumeric is used for this task: Totals the arguments that meet the condition. Add amounts from rows where the category is pear.

This guide explains how to read the formula, reproduce a concrete example, interpret its result and recognize common input mistakes.

Availability and version history

  • Introduced: Documented by 1.12.62; original introduction not established.
  • 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: Bounded native Gnumeric 1.12.57 cases on October 17, 2026; retained 1.12.62 registration/source remains a separate scope. First historical execution and last functioning release are not established.

Syntax and arguments

=SUMIF(range,criteria,[actual_range])

range supplies cells to test. criteria supplies the condition, such as “pear” or “>2”. actual_range optionally supplies the corresponding cells to add and defaults to range. The retained 1.12.62 help specifies resizing a differently sized actual_range from its top-left corner. However, the tested 1.12.57 build rejected the smaller-range fixtures with #VALUE!. Use explicitly aligned, equal-sized ranges; the older native result does not establish whether newer releases perform the documented resizing.

The criteria argument is not a formula evaluated separately in every row. Text comparison operators belong inside the criterion string; a threshold in a cell can be combined with an operator to construct the criterion deliberately. One SUMIF applies one condition; do not swap its argument order with a multi-condition summing function.

Worked example

Use this small practice sheet for the ranges referenced in the formula:

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
=SUMIF(C1:C5,"pear",B1:B5)

Expected result: 60.

Why it works: Add amounts from rows where the category is pear. The specified sample table supplies the referenced cells.

Another practical example

Practice inputs: B1:B5 contains 10,20,30,40,50; C1:C5 contains apple,pear,apple,pear,apple.

=SUMIF(C1:C5,"apple",B1:B5)

Expected result: 90.

Add the apple amounts 10, 30 and 50 to obtain 90.

What to watch for

Criteria are text strings in quotation marks. Double-check that the sum range aligns with the category range.

For LibreOffice Calc formulas, separators are commonly semicolons; the Gnumeric examples here use commas. The original review used arithmetic/reference expectations; the present bounded Gnumeric 1.12.57 checks are described below.

Numeric criteria, patterns and resized ranges

Using the preserved A/B/C practice table, =SUMIF(A1:A5,">2") returns 12 because 3+4+5 meet the condition and the omitted sum range defaults to A1:A5. =SUMIF(C1:C5,"p*",B1:B5) is expected to return 60 for pear rows. The wildcard pattern here is a checked case, not a general regular-expression claim.

=SUMIF(C1:C5,"pear",B1) returned #VALUE! in the 1.12.57 native fixture. Follow-up tests with explicit smaller ranges B1:B1 and B1:B2 also returned #VALUE!, so this was not only a bare-cell syntax issue. Use B1:B5 explicitly. The retained 1.12.62 help promises resizing, but that newer source contract was not confirmed by a 1.12.62 runtime test here. =SUMIF(C1:C5,"banana",B1:B5) returns 0 because nothing matches.

Advanced use: audit a category total

The original apple and pear totals are 90 and 60. Together they equal the total 150 of B1:B5. That reconciliation is useful only because those two categories exhaust this particular table. A missed spelling, unexpected trailing space or additional category can break the reconciliation while each formula still returns a plausible number.

Keep criterion and amount ranges aligned by row. A range shifted down one cell can attach amounts to the wrong labels without producing an obvious error. Use absolute references when copying a summary formula if the source table should stay fixed. Numeric amounts are summed; text amounts and Boolean entries are not a substitute for validated numeric transaction values.

Common problems and practical checks

  • A zero total can mean no matches or matching rows whose amounts sum to zero. Inspect the matching rows before drawing a conclusion.
  • An omitted actual_range means sum the criterion range itself, which is useful for numeric tests but often wrong for text categories.
  • Differently sized ranges are version-sensitive in the available evidence. The native 1.12.57 tests reject them, while retained 1.12.62 help describes resizing. Match range dimensions explicitly.
  • Quote criteria strings and check spaces, spelling and intended wildcard behavior.
  • Source-cell errors and unusual blank criteria deserve separate tests; the small fixture does not certify every error/empty criterion combination.
  • NEWS records pattern support for SUMIF/COUNTIF in 1.9.10 and a blank-criteria fix in 1.12.46; these are implementation milestones, not the first introduction.

Documentation and verification

  • Gnumeric official function reference
  • Gnumeric function catalog
  • A historical comparable LibreOffice Calc 25.2 test was not Gnumeric verification. The present listed native fixture was recalculated using Gnumeric ssconvert 1.12.57 under C.UTF-8. Unexecuted source branches are not runtime guarantees; no GUI or screenshot is claimed.
  • Official function help and implementation. Statistical/mathematical source1.12.62 was retained October13–14; built-in/logical1.12.57 source was freshly retrieved October17.