The LTE function in Google Sheets is a logical function that helps users compare two values. It evaluates whether the first argument is less than or equal to the second, returning a boolean value of `TRUE` or `FALSE`. This function is particularly useful in situations involving conditional formatting, filtering data, or creating logical tests in formulas.
Syntax
LTE(value1, value2)
- value1: The first value to compare.
- value2: The second value to compare.
Example #1
=LTE(5, 10)
This function checks if 5 is less than or equal to 10, and returns TRUE.
Example #2
=LTE(10, 10)
This function evaluates whether 10 is less than or equal to 10, returning TRUE as they are equal.
Example #3
=LTE(15, 10)
In this case, the function checks if 15 is less than or equal to 10, and returns FALSE.
Error handling
- VALUE! – This error occurs if either argument is non-numeric or invalid, preventing the comparison from being evaluated.
- NAME? – This error signifies that the function name is not recognized, often due to a typo or incorrect syntax.