Contact

GESTEP Function (OpenOffice Calc)

Engineering Intermediate OpenOffice Calc

Learn the GESTEP function in Apache OpenOffice Calc: Tests whether a number is greater than or equal to a threshold value.

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

Availability and version history

  • Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
  • Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

GESTEP returns 1 when a number is greater than or equal to a threshold, and 0 when it is below. Equality belongs to the passing side. The result is a numeric step indicator, useful for counting or weighting threshold crossings; it does not report how far above the threshold a value lies.

Syntax and arguments

=GESTEP(number; step)
=GESTEP(number)

The first number is required. Optional step defaults to zero through the Analysis argument converter. The pinned callback evaluates number>=step directly. Negative numbers and negative thresholds are valid ordinary inputs; the operation is an ordered comparison, not a test of sign alone when a custom threshold is supplied. Examples use English function names and semicolon argument separators.

Reproducible examples

Formula Expected result
=GESTEP(9;5) 1
=GESTEP(5;5) 1
=GESTEP(4;5) 0
=GESTEP(0) 1
=GESTEP(-1) 0
=GESTEP(-2;-3) 1

The first formula preserves the original example and result. Its historical comparable LibreOffice 25.2 check was not an OpenOffice test. New values are independently checked reference expectations; no fresh native application or GUI result is claimed. Quoted results indicate text, including "" for zero-length text.

Practical worksheet: count records meeting an inclusive threshold

Enter measurements 8, 10, 12 and 9 in A2:A5 and threshold 10 in F1. In B2 enter =GESTEP(A2;$F$1) and fill down. Results are 0,1,1,0. =SUM(B2:B5) gives 2 records meeting the threshold. This is a chosen reporting cutoff, not a safety or eligibility recommendation.

In C2 enter =A2-$F$1 and fill down. Differences are -2,0,2,-1. The indicator and difference answer separate questions: the row exactly at the threshold has indicator 1 and difference 0.

Advanced applications

Create a half-open band. =GESTEP(A2;10)-GESTEP(A2;20) gives 1 for numeric values from 10 inclusive to 20 exclusive, and 0 outside. Test 9,10,15,20,21: expected indicators are 0,1,1,0,0. Reversing the cutoffs would create a different signed expression, so keep lower and upper bounds explicit.

Use the default zero cutoff. For -2,0,3 the omitted-step form gives 0,1,1. Thus GESTEP(0) passes; it is not the same as number>0. If strict positivity is required, use an explicit greater-than comparison rather than changing the interpretation of GESTEP.

Weight threshold attainment. With measurements 8,10,12,9 and corresponding weights 2,3,4,5, multiply each indicator by its weight. Contributions are 0,3,4,0 and total 7. This combines an inclusive gate with separate weights without confusing the weights with the threshold.

Errors, edge cases and troubleshooting

GESTEP has no tolerance parameter. A stored number slightly below the threshold remains below even if both display as the same rounded decimal. Decide whether the data should be rounded to a defined unit before the comparison, and document that choice. It is not equivalent to adding an arbitrary epsilon after a surprising result.

The function returns only 0 or 1 for ordinary valid numeric comparisons, not a percentage, a rank or a magnitude. To quantify excess, compute number-step separately. To test exact equality, DELTA is a different operation.

Omission of the optional step is documented as zero, but it does not prove that every blank-looking value or text field in a workbook takes the same route. The source converter and worksheet dispatch have their own type rules; locale parsing and all imported/array cases are not tested here. Retain the original measurements, validate intended units, and inspect upstream calculation errors rather than silently classifying invalid data as below threshold.

Documentation and verification

See the Apache OpenOffice GESTEP reference, 4.1.16 math help, core numeric predicates and aggregation, Roman conversion, and Analysis callbacks. The original core/help/Analysis snapshots were retrieved October 13, 2026 and re-read for this guide. Additional retained header evidence is identified separately in the batch records. First introduction and final functioning version remain unknown, separate from documented 4.1.16 support. Source rules and independent arithmetic are not native tests.