ID EN
#Logical

TRUE

Excel Functions

Generate the logical value TRUE

Return Value

The logical value TRUE

Details

The TRUE function returns the Boolean value TRUE. In other words, the two formulas below based on the IF function are functionally equivalent: Both formulas return TRUE if the value in A1 is greater than 65. The TRUE function is provided for compatibility with other spreadsheet applications and there is no need to use it if you are creating a spreadsheet in Excel. To return TRUE as a result in a formula, just enter TRUE directly into a cell or formula. Note that logical expressions will automatically generate TRUE and FALSE results. For example, the formula below will TRUE or FALSE: To test a condition and return different results based on whether the results are TRUE or FALSE, see the examples on this page.

Examples

Example 1

The TRUE function returns the Boolean value TRUE. In other words, the two formulas below based on the IF function are functionally equivalent:

EXCEL
=IF(A1>65,TRUE())
=IF(A1>65,TRUE)
Example 2

Note that logical expressions will automatically generate TRUE and FALSE results. For example, the formula below will TRUE or FALSE:

EXCEL
=A1>90

See Also

FALSE IF