TRUE
The TRUE function in Google Sheets returns the logical value TRUE. It is commonly used in logical expressions or as a placeholder value.
Function Syntax and Parameters
Syntax: TRUE()
Parameters: This function does not require any parameters.
Step-by-Step Tutorial
-
Using
TRUEin a logical expression:- Example:
=IF(A1>B1, TRUE(), FALSE()) - Result: Returns
TRUEif the value in cell A1 is greater than the value in cell B1, otherwise returnsFALSE.
- Example:
-
Using
TRUEas a placeholder value:- Example:
=IF(A1>B1, "Valid", TRUE()) - Result: Returns the text "Valid" if the condition in the IF statement is true, otherwise returns
TRUE.
- Example:
Use Cases and Scenarios
- Conditional Formatting: Use the
TRUEfunction as a condition for applying specific formatting to cells.
Related Functions
FALSE: Returns the logical valueFALSE.