GESTEP Function (Gnumeric)
Learn Gnumeric GESTEP: return 1 when a number meets or exceeds a threshold, including the default threshold of zero.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
GESTEP in Gnumeric returns 1 when a number meets or exceeds a threshold, and 0 when it falls below it. Equality is included, and an omitted threshold means zero.
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-eng function module must be included and enabled.
- Checked: October 18, 2026. Official documentation and released-source inspection, with independent calculations; no Gnumeric 1.12.62 execution.
Syntax and arguments
GESTEP(number, [step])
number: the numeric value to evaluate.step: the optional threshold, which defaults to zero.- Result: numeric
1whennumberis greater than or equal tostep; otherwise numeric0.
The brackets mark an optional argument and are not typed. The order matters: the first value is tested against the second. =GESTEP(5,5) expects 1, so this is an inclusive threshold, not a strict greater-than test. Formulas here use commas between arguments. The official manual documents #VALUE! for nonnumeric arguments.
Worked example
=GESTEP(9,5)
Expected result: 1.
Why it works: Test whether a number meets a numeric threshold.
Boundary and default-threshold examples
| Formula | Expected result | Reason |
|---|---|---|
=GESTEP(4,5) |
0 | Below the threshold |
=GESTEP(5,5) |
1 | Equality is included |
=GESTEP(-2) |
0 | Negative value is below the default zero |
=GESTEP(0) |
1 | Zero meets the default threshold |
=GESTEP(2) |
1 | Positive value is above zero |
=GESTEP(-2,-3) |
1 | Minus two is greater than minus three |
A useful worksheet application is counting values that meet a minimum. Put 49, 50 and 51 in A2, A3 and A4. Enter =GESTEP(A2,50) in B2, =GESTEP(A3,50) in B3 and =GESTEP(A4,50) in B4. Expected flags are 0, 1, 1, and =SUM(B2:B4) expects 2 qualifying values. The value exactly at 50 is counted.
For a strictly-greater rule, a comparison such as =A2>50 expresses a different condition and returns a logical result. Do not substitute GESTEP without considering both the equality boundary and whether the downstream calculation expects numeric flags or logical values.
How to use it in your own spreadsheet
- Identify the cells or inputs that correspond to the sample values above.
- Enter the formula in an empty cell, changing the references or literal values to match your sheet.
- Compare the output with a manual check on a small known example.
- Extend the formula to a larger dataset only after you understand the result.
Common problems and practical checks
- Equality was omitted: the threshold is inclusive. A value exactly equal to the step returns 1 under the documented contract.
- Default misunderstood: leaving out step uses zero; it does not infer a threshold from neighbouring cells.
- Arguments reversed:
=GESTEP(5,9)expects 0, whereas=GESTEP(9,5)expects 1. - Nonnumeric input: the manual documents
#VALUE!;=GESTEP("red",5)has that documentation-derived expected error. Text cleanup and text-code comparisons are separate tasks. - Compatibility: the manual identifies GESTEP as Excel-compatible. This is a documentation statement, not an Excel or Gnumeric execution result from this review.
Related functions
Documentation and verification
-
Numeric expectations were checked independently against the documented definition and Gnumeric 1.12.62 released implementation. Error expectations are documentation-derived. Gnumeric was not run for this review, and another application is not used as proof of Gnumeric behaviour.
-
Gnumeric 1.12.62 released source archive: inspected the relevant function implementation; no source code was executed or compiled for these examples.