Engineering function

GESTEP function

Returns 1 if a number is greater than or equal to a threshold (step), otherwise 0. Default threshold is 0.

Available in Excel 2007 and later (Excel 2003 needed the Analysis ToolPak add-in), Microsoft 365, Excel for the web, Excel for Mac

Excel 2007 and laterWorks in Google Sheets

Syntax

GESTEP(number, [step])
ArgumentWhat it means
numberRequiredThe value to test.
stepOptionalThe threshold. If omitted, Excel uses 0.

Returns: 1 if number ≥ step, otherwise 0.

How GESTEP works

GESTEP ("greater than or equal to step") is a unit-step function: it returns 1 once a value reaches a threshold and 0 below it. Engineers use step functions to model switches turning on at a certain time; in everyday spreadsheets it is a compact way to count how many people hit a target or to switch a bonus on.

The threshold is inclusive, so a value exactly equal to step returns 1. Without step, the threshold is 0, which makes GESTEP(x) a quick test for "not negative". Only numbers are accepted; text returns #VALUE!.

=--(A2>=B2) does the same thing in plain Excel, and COUNTIF with ">="&target counts values above a threshold across a range.

Examples

1Did the salesperson hit target?

D2fx=GESTEP(B2, C2)
ABCD
1RepSalesTarget
2Ana52000500001

Result: 1

52,000 is at least 50,000, so GESTEP returns 1. Multiply by a bonus amount, e.g. =GESTEP(B2,C2)*500, to pay the bonus only when the target is met.

2Count passes with a sum of steps

D2fx=GESTEP(B2,50)+GESTEP(B3,50)+GESTEP(B4,50)
ABCD
1StudentScore
2Ben682
3Cara49
4Dev50

Result: 2

The pass mark is 50 and it is inclusive: 68 passes, 49 fails and exactly 50 passes, giving 2.

3Default step of zero

B2fx=GESTEP(A2)
AB
1Temperature (°C)
2-30

Result: 0

Without step, the threshold is 0. -3 is below zero, so the result is 0 (frost).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!number or step is non-numeric text.Convert with VALUE or test with ISNUMBER.

Tips

  • GESTEP returns 1/0, not TRUE/FALSE, which makes it easy to multiply or add.
  • For a strict "greater than" test use =--(A2>B2) instead.

Google Sheets

GESTEP also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

GESTEP in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishGETRIN
DutchGROTER.DAN
FinnishRAJA
FrenchSUP.SEUIL
GermanGGANZZAHL
HungarianKÜSZÖBNÉL.NAGYOBB
ItalianSOGLIA
Norwegian (Bokmål)GRENSEVERDI
PolishSPRAWDŹ.PRÓG
Portuguese (Brazil)DEGRAU
Portuguese (Portugal)DEGRAU
RussianПОРОГ
SpanishMAYOR.O.IGUAL
SwedishSLSTEG
TurkishBESINIR