WorksheetFunction.GeStep method (Excel)

Returns 1 if number ≥ step; otherwise, returns 0 (zero). Use this function to filter a set of values. For example, by summing several GeStep functions, you calculate the count of values that exceed a threshold.

Syntax

expression.GeStep (Arg1, Arg2)

expression A variable that represents a WorksheetFunction object.

Parameters

Name Required/Optional Data type Description
Arg1 Required Variant Number - the value to test against step.
Arg2 Optional Variant Step - the threshold value. If you omit a value for step, GeStep uses zero.

Return value

Double

Remarks

If any argument is nonnumeric, GeStep returns the #VALUE! error value.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.