Formualizer Docs

GESTEP

Returns 1 when a number is greater than or equal to a step value.

Returns 0 when the number is below the step.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=GESTEP(number, [step])

Arguments

ArgumentTypeRequiredDefault
numbernumberRequired—
stepnumberOptional—

Remarks

  • If step is omitted, it defaults to 0.
  • Inputs are numerically coerced.
  • Propagates input errors.

Examples

Test whether a number reaches a lower threshold.

Formula =GESTEP(4,3)

Expected result 1

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Test equality at the inclusive threshold.

Formula =GESTEP(3,3)

Expected result 1

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Omit the threshold to test against zero.

Formula =GESTEP(0)

Expected result 1

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

A nonnumeric value cannot be tested against a threshold.

Formula =GESTEP("invalid",3)

Expected result #VALUE!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Value meets threshold

Formula =GESTEP(5,3)

Expected result 1

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Default threshold of zero

Formula =GESTEP(-2)

Expected result 0

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

What default threshold does GESTEP use?

If omitted, step defaults to 0, so the function returns 1 for non-negative inputs.

Implementation

Engine source

On this page