Excel function

TRUEfunction

Returns the logical value TRUE.

All versions
=TRUE()

Result4 chars

1T
2R
3U
4E

This function has no arguments. Writing just TRUE in a formula gives the same value. Try breaking it on purpose to see the errors.

Result

TRUE

What is the TRUE function?

=TRUE()

TRUE returns the logical value TRUE. It has no arguments.

According to Microsoft, the function exists mainly for compatibility with other spreadsheet programs; typing TRUE directly in a formula or cell gives the same value.

You rarely type TRUE() as a function, but the value TRUE turns up everywhere: comparisons, AND and OR, cells linked to check boxes, the IS functions. In arithmetic it counts as 1, so you can count TRUE values or keep only matching rows by multiplying.

Arguments

This function has no arguments. Write it with empty parentheses, like =NAME().

TRUE examples

  1. Example 1. TRUE when a condition holds

    =IF(A1=1, TRUE())

    The same as =IF(A1=1, TRUE).

  2. Example 2. Calculate with it

    =TRUE()+1

    TRUE counts as 1 in calculations, so the result is 2.

  3. Example 3. TRUE in calculations

    =TRUE()*5

    It acts as 1 in arithmetic, but compared with the number 1 the types differ.

    FormulaResult
    =TRUE()+TRUE()2
    =TRUE()*55
    =--TRUE()1
    =TRUE()=1FALSE
  4. Example 4. Count TRUE values

    =COUNTIF(C2:C20, TRUE)

    Counts the TRUE cells in a TRUE/FALSE column, such as cells linked to check boxes.

Common mistakes

FAQ

What about false?
Use the FALSE function or the value FALSE.
Where does TRUE come from in practice?
Comparisons such as A2>10 return TRUE or FALSE, so you rarely need the function itself.
How do I show TRUE as "Yes"?
=IF(C2, "Yes", "No").