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
TRUE
in a logical expression:- Example:
=IF(A1>B1, TRUE(), FALSE())
- Result: Returns
TRUE
if the value in cell A1 is greater than the value in cell B1, otherwise returnsFALSE
.
- Example:
-
Using
TRUE
as 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
TRUE
function as a condition for applying specific formatting to cells.
Related Functions
FALSE
: Returns the logical valueFALSE
.