The GESTEP function in Google Sheets is a powerful tool for evaluating numeric conditions. It determines whether a given number, referred to as the rate, meets or exceeds a specified step value. This function is particularly useful in scenarios requiring threshold assessments, enabling dynamic decision-making based on numeric inputs.
Syntax
GESTEP(rate, [step])
- rate: The numeric value that is assessed against the step value.
- step: (Optional) The threshold value to compare the rate against. Defaults to 0 if omitted.
Example #1
GESTEP(5, 3)
This function checks if the rate (5) is greater than or equal to the step (3). Since it is, the result is 1.
Example #2
GESTEP(2, 5)
Here, the function evaluates whether the rate (2) is greater than or equal to the step (5). Since it is not, the result is 0.
Example #3
GESTEP(0)
In this case, the rate is 0 and no step value is provided. The default step is used (0), so the result is 1 because 0 is equal to 0.
Error handling
- VALUE!: This error occurs when the rate argument is not a numeric value.
- NAME?: This error appears if the function is misspelled or not recognized by Google Sheets.
- NUM!: This can happen if the inputs are valid but cause a conflict, such as using a negative step value when contextually inappropriate.