Category: FUNCTION | Updated: 2026-11-22

How to Use the GESTEP Function in Google Sheets | Test Whether a Number Meets or Exceeds a Threshold (1 or 0)

Syntax

=GESTEP(value, [step])
  • value: Specifies the target number to compare against the threshold.
  • step (optional): Specifies the baseline threshold value. If omitted, it defaults to 0 (testing whether value is ≥ 0).

Practical Example with a Table

Here is an example of checking whether test scores (value) meet or exceed the passing threshold of 80 points (step).

Score (value) Passing Threshold (step) Formula Result Meaning
85 80 =GESTEP(A2, B2) 1 80 or above → 1 (Pass)
80 80 =GESTEP(A3, B3) 1 Boundary value (80) is “greater than or equal to” → 1
79 80 =GESTEP(A4, B4) 0 Below 80 → 0 (Fail)
-5 (omitted) =GESTEP(A5) 0 Compared against 0 when step is omitted → 0

Common Errors and Notes

  • #VALUE! Error: Occurs if value or step is non-numeric data such as text.
  • Do Not Confuse with Strictly Greater Than (>): Note that it returns 1 even when equal to the threshold. If you want 1 only when strictly greater than the threshold, use IF(A1>B1, 1, 0).
  • Blank Cells: A blank cell is treated as 0, so =GESTEP(blank_cell) returns 1.

Frequently Asked Questions

Q. Does the GESTEP function return 1 or 0 when the number equals the threshold?

A. Because GESTEP stands for "Greater than or Equal to Step," a number equal to the threshold satisfies the condition and returns "1."

Q. Is the result the same as writing "=IF(A1>=80, 1, 0)" with the IF function?

A. Yes, the result is identical. GESTEP makes the formula shorter and cleaner than IF, and is easier to read when multiplying by other formulas as an on/off switch.