GESTEP Function in Google Sheets: Syntax & Examples

How-to basics · Updated November 23, 2026

The GESTEP function in Google Sheets returns 1 if a given number is greater than or equal to a threshold (called step), and 0 otherwise. Its syntax is GESTEP(value, [step]), where step is optional and defaults to 0.

What Is GESTEP Used For?

GESTEP belongs to Google Sheets’ Engineering function category. It is a simple comparison tool that outputs a binary result: 1 (true) or 0 (false). The name comes from the idea of a “step” in a signal or threshold—like a step function in mathematics that jumps from 0 to 1 at a certain point.

You might use GESTEP to flag values that meet a minimum threshold, such as sales targets, test scores, or inventory levels. Because it returns only 0 or 1, you can sum the results to count how many values pass the test, or use it inside IF formulas for more complex logic.

How GESTEP Works: Syntax and Arguments

The function takes two arguments:

  • value (required) – the number you want to test.
  • step (optional) – the threshold. If omitted, it defaults to 0.

GESTEP returns 1 if value is greater than or equal to step; otherwise it returns 0. For example:

  • =GESTEP(5, 3) → 1 (5 ≥ 3)
  • =GESTEP(2, 3) → 0 (2 < 3)
  • =GESTEP(-1) → 0 (default step is 0, and -1 < 0)
  • =GESTEP(0) → 1 (0 ≥ 0)

Note that GESTEP uses greater than or equal to, not strictly greater than. This is a common point of confusion—if you need “greater than” only, you can use a formula like =IF(A1>5,1,0) instead.

Comparing GESTEP with IF and Other Functions

GESTEP is essentially a specialized version of an IF statement that returns 1 or 0. For example, =GESTEP(A1, 10) is equivalent to =IF(A1>=10, 1, 0). So why use GESTEP? It is shorter and can make formulas more readable when you only need a binary flag. However, IF is more flexible because it can return text, other numbers, or even blank cells.

Other related functions include DELTA (which returns 1 if two numbers are exactly equal) and SUMIF or COUNTIF (which can count values meeting a condition without an extra helper column). For instance, to count how many numbers in A1:A10 are ≥ 5, you could use =COUNTIF(A1:A10, ">=5") instead of creating a GESTEP column and summing it.

Practical Examples of GESTEP in Action

Here are a few realistic ways to use GESTEP in a spreadsheet:

  • Flagging pass/fail: If you have test scores in B2:B20, you can put =GESTEP(B2, 60) in C2 and drag down to mark each score as 1 (pass) or 0 (fail).
  • Counting thresholds: To count how many scores are ≥ 60, use =SUM(C2:C20) after creating the flag column.
  • Conditional formatting: Use a GESTEP formula in a custom formula rule to highlight cells that meet a threshold. For example, select A1:A10, go to Format > Conditional formatting, choose “Custom formula is” and enter =GESTEP(A1, 100) to highlight values ≥ 100.
  • Combining with ARRAYFORMULA: You can apply GESTEP to a whole range at once: =ARRAYFORMULA(GESTEP(A1:A10, 5)) returns an array of 1s and 0s.

Common Errors and Troubleshooting

GESTEP is straightforward, but you may encounter a few issues:

  • Text values: If value or step is text that cannot be converted to a number, GESTEP returns a #VALUE! error. Make sure your inputs are numeric.
  • Blank cells: If value is blank, GESTEP treats it as 0. So =GESTEP(A1) with A1 empty returns 1 (since 0 ≥ 0). This can surprise you; consider using IF(A1="","",GESTEP(A1,...)) to handle blanks.
  • Step as text: If you accidentally write =GESTEP(5, "3"), Google Sheets will try to convert the text to a number and it usually works, but it’s safer to use numbers.
  • Strict inequality: Remember GESTEP uses ≥, not >. If you need >, use =IF(value>step,1,0).

GESTEP in Excel vs. Google Sheets

GESTEP is also available in Microsoft Excel (in the Engineering category). The syntax is identical: GESTEP(number, [step]). Both programs handle the default step of 0 the same way. The main difference is that in Excel, you may need to enable the Analysis ToolPak in older versions (Excel 2007 and earlier), but in modern Excel 365 it is built-in. In Google Sheets, there is no such add-in—just type the function directly.

If you are working in Excel and your version does not recognize GESTEP, check if the Analysis ToolPak is enabled via File > Options > Add-ins. In Google Sheets, no setup is required.

Frequently Asked Questions

Can I use GESTEP with negative numbers?

Yes. GESTEP works with any real numbers, including negatives. For example, =GESTEP(-5, -10) returns 1 because -5 ≥ -10. If you omit the step, it defaults to 0, so a negative value will return 0.

How do I count how many values are above a threshold without a helper column?

Use COUNTIF. For instance, to count values in A1:A10 that are ≥ 50, use =COUNTIF(A1:A10, ">=50"). GESTEP is more useful when you need the 0/1 result for each cell, such as for further calculations or conditional formatting.

Does GESTEP work with dates or times?

Dates and times are stored as numbers in Google Sheets, so GESTEP can compare them. For example, if A1 contains a date, =GESTEP(A1, DATE(2025,1,1)) returns 1 if the date is on or after January 1, 2025. Just be aware that the step must also be a date value.

What is the difference between GESTEP and DELTA?

GESTEP returns 1 if value ≥ step (or ≥ 0 if step omitted). DELTA returns 1 only if two numbers are exactly equal. For example, GESTEP(5,5) returns 1, and DELTA(5,5) also returns 1, but GESTEP(6,5) returns 1 while DELTA(6,5) returns 0.

Can I use GESTEP in conditional formatting?

Yes. In Google Sheets, select your range, go to Format > Conditional formatting, choose “Custom formula is,” and enter a formula like =GESTEP(A1, 100). This will highlight cells that meet the threshold. Remember that the formula should reference the top-left cell of the selected range.

Is GESTEP case-sensitive or does it require special formatting?

No, GESTEP is not case-sensitive and requires no special formatting. It simply evaluates numbers. Just ensure your inputs are numeric or can be coerced to numbers.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.