G_PRODUCT Function (Gnumeric)
Multiply numeric inputs with Gnumeric G_PRODUCT. See empty-product behavior, ignored text and Booleans, range examples and compound-change calculations.
Verification status: 16 reference, boundary and advanced-check formulas were recalculated with Gnumeric 1.12.57 ssconvert. Retained native records and independent calculations were checked. Version 1.12.62 was source-checked only. How formula examples are checked
Quick answer: =G_PRODUCT(2,3,4) gives 24 in the tested Gnumeric 1.12.57 build.
Availability and version history
- Introduced: Gnumeric 0.48 release notes explicitly record this function being added.
- Supported in: Gnumeric 1.12.62; no retirement is established.
- Scope: Desktop Gnumeric with the Mathematics plugin. English comma-separated formulas are shown.
- Checked: October 14, 2026. Tables and the named advanced check were recalculated through 1.12.57 ssconvert. Current 1.12.62 source was inspected; the later release was not executed.
What G_PRODUCT returns
G_PRODUCT multiplies the numeric values supplied directly or through cell ranges. Its distinctive empty-product result is 1. Blanks, text and Boolean values are ignored in the tested cases, rather than becoming multiplicative zeroes or ones. Versioned function help.
Syntax and arguments
=G_PRODUCT(x1[,x2,...])
| Argument | Meaning |
|---|---|
x1, x2, ⦠|
Numeric values, cell references or ranges to multiply. Arguments can be repeated. The empty argument list is accepted. |
Brackets mark optional arguments; do not type the brackets. Function implementation.
Reproducible examples
For the range examples, enter F2:F4 as 1, 2, 3; leave F5 empty. Enter G2:G4 as 1, the text abc, 2. Enter H2:H4 as Boolean TRUE, 2, 3.
Ordinary results are rounded to twelve decimal places; tiny values use scientific notation. The eight reference rows were independently checked.
| Formula | Gnumeric 1.12.57 result |
|---|---|
=G_PRODUCT(2,5,9) |
90 |
=G_PRODUCT(2,3,4) |
24 |
=G_PRODUCT(-2,3) |
-6 |
=G_PRODUCT(-2,-3) |
6 |
=G_PRODUCT(0,5) |
0 |
=G_PRODUCT(0.5,0.25) |
0.125 |
=G_PRODUCT(5) |
5 |
=G_PRODUCT(F2:F4) |
6 |
Practical worksheet
Suppose two successive growth factors are 1.1 and 0.9. Their product is 0.99, so =G_PRODUCT(1.1,0.9)-1 gives approximately ā0.01: a 1% decrease, not zero net change. The exact native value was ā0.009999999999999898, a normal floating-point representation difference.
For a longer sequence, put numeric factors in a column and multiply the range. Use 1.05 for a 5% increase and 0.95 for a 5% decrease. A factor of zero collapses the product to zero. Decide separately how to treat missing measurements, because ignoring a blank may conceal incomplete data.
Advanced interpretation and checks
The multiplicative identity explains =G_PRODUCT() and =G_PRODUCT(F5) returning 1. An all-ignored input set therefore cannot distinguish āno usable numbersā from numeric factors whose product really is 1. If completeness matters, check the numeric input count before interpreting the product.
Sign follows the number of negative numeric factors: one negative makes the product negative, two make it positive. The reference rows show both cases. For very long products, floating-point overflow or underflow can occur even when individual factors look harmless; the tables establish the listed ordinary values, not every scale.
Boundaries and troubleshooting
A quoted numeric-looking string is still text: =G_PRODUCT("3",2) returned 2, not 6. =G_PRODUCT(TRUE(),2) also returned 2. Convert intended numeric data explicitly before multiplication, and do not assume another spreadsheetās PRODUCT coercion rules apply to G_PRODUCT. The implementationās collection flags explicitly ignore strings, Booleans and blanks.
F5 is an actually empty cell. Listed errors are native error results, not mathematical zeroes.
| Formula | Gnumeric 1.12.57 result |
|---|---|
=G_PRODUCT() |
1 |
=G_PRODUCT(F5) |
1 |
=G_PRODUCT("abc",2) |
2 |
=G_PRODUCT("3",2) |
2 |
=G_PRODUCT(TRUE(),2) |
2 |
=G_PRODUCT(G2:G4) |
2 |
=G_PRODUCT(H2:H4) |
6 |
Official evidence and checking scope
The retained workbook contained a deliberately stale SUM cache and an uncached SUM formula, both recalculated correctly. Native evidence covers the listed 1.12.57 cases; worksheet layouts and algebraic interpretations are independently specified explanations. Other locales, direct GUI entry and later-release output were not tested.