In Spreadsheet, you can use a series of logical functions to return a corresponding result or run corresponding logic based on whether a specified condition is met.
IF function
The IF function is the most basic logical function. It takes 3 arguments:IF(condition, formula to run if the condition is met, formula to run if the condition is not met)
-
The “condition” can be any value or a nested formula. When evaluating, the function attempts to convert the “condition” value to TRUE (met) or FALSE (not met), and runs the corresponding logic based on TRUE or FALSE.
- FALSE, the number 0, empty text, empty cells, and errors are converted to FALSE; all other values are converted to TRUE.