Logical function

TRUE function

Returns the logical value TRUE. You can also just type TRUE; the function exists mainly for compatibility with other spreadsheet programs.

Available in All versions of Excel

In every Excel versionWorks in Google Sheets

Syntax

TRUE()

This function takes no arguments.

Returns: The logical value TRUE.

How TRUE works

TRUE() takes no arguments and returns the logical value TRUE. Typing the word TRUE in a cell or formula gives exactly the same value, so the function form is rarely needed; it is there so that files created in other spreadsheet programs still work.

The TRUE value is worth understanding, though. Every successful comparison returns it, many functions use it as a switch (for example the last argument of VLOOKUP for approximate match, or the ignore_empty argument of TEXTJOIN), and in arithmetic it behaves like 1. That last fact is why =SUM(--(B2:B9>100)) counts the cells above 100: each TRUE becomes 1.

Examples

1Return TRUE

A1fx=TRUE()
A
1TRUE

Result: TRUE

The function simply returns TRUE. =TRUE without brackets is identical.

2TRUE counts as 1 in a calculation

A1fx=TRUE()+TRUE()
A
12

Result: 2

Arithmetic converts each TRUE to 1, so the sum is 2. Note that SUM on a range ignores TRUE/FALSE cells; it is the + operator that converts them.

3Count completed tasks

D2fx=COUNTIF(B2:B5, TRUE)
ABCD
1TaskDone
2Quote sentTRUE3
3Deposit receivedFALSE
4Kick-off heldTRUE
5Invoice issuedTRUE

Result: 3

COUNTIF counts the cells equal to the logical value TRUE. Three of the four tasks are done.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Tips

  • Checkbox cells (Insert > Checkbox in Microsoft 365) store TRUE when ticked and FALSE when not, so formulas like COUNTIF(B2:B20, TRUE) count the ticks.
  • Text that reads TRUE (for example from an imported CSV) is not the logical value; ISLOGICAL tells them apart.

Google Sheets

TRUE also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

TRUE in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechPRAVDA
DanishSAND
DutchWAAR
FinnishTOSI
FrenchVRAI
GermanWAHR
HungarianIGAZ
ItalianVERO
Norwegian (Bokmål)SANN
PolishPRAWDA
Portuguese (Brazil)VERDADEIRO
Portuguese (Portugal)VERDADEIRO
RussianИСТИНА
SpanishVERDADERO
SwedishSANT
TurkishDOĞRU