The GT function in Google Sheets is a logical function that allows users to compare two values. It determines whether the first value is strictly greater than the second and returns a boolean result of either TRUE or FALSE. This function is particularly useful in conditional formatting, filtering data, and constructing logical expressions within complex calculations.
Result: TRUE
Result: FALSE
Result: FALSE
Syntax
GT(value1, value2)
- value1: This is the first value that you want to compare.
- value2: This is the second value that you want to compare against.
Example #1
GT(5, 3)
This function checks if 5 is greater than 3, which it is, so it returns TRUE.Result: TRUE
Example #2
GT(2, 4)
This checks if 2 is greater than 4, which it isn’t, so it returns FALSE.Result: FALSE
Example #3
GT(7, 7)
This compares 7 with 7; since they are equal, it returns FALSE as well.Result: FALSE
Error handling
- VALUE!: This error occurs if either of the arguments is non-numeric. Ensure both values you are comparing are numbers.
- NAME?: This error indicates that the function name is not recognized, suggesting that GT is not the correct function name or it’s misspelled.