The Google Sheets function `TRUE` is a fundamental element used to return the logical value of true in spreadsheet calculations. It is widely utilized in decision-making processes within formulas to indicate the affirmative condition of a scenario, thereby supporting various computational logic tasks.
Syntax
TRUE()
- No arguments are required.
Example #1
=TRUE()
This function simply returns the logical value TRUE. Result: TRUE
Example #2
=IF(TRUE(), "Yes", "No")
This function evaluates to confirm if the condition is true, resulting in Yes. Result: Yes
Example #3
=AND(TRUE(), FALSE())
This function checks if all conditions are true; since one is false, it returns FALSE. Result: FALSE
Error handling
- ERROR: NAME? – This indicates that the function was misspelled.
- ERROR: VALUE! – This error isn’t applicable to the TRUE function as it does not require any argument.