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
| A | |
|---|---|
| 1 | TRUE |
Result: TRUE
The function simply returns TRUE. =TRUE without brackets is identical.
2TRUE counts as 1 in a calculation
| A | |
|---|---|
| 1 | 2 |
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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Task | Done | ||
| 2 | Quote sent | TRUE | 3 | |
| 3 | Deposit received | FALSE | ||
| 4 | Kick-off held | TRUE | ||
| 5 | Invoice issued | TRUE |
Result: 3
COUNTIF counts the cells equal to the logical value TRUE. Three of the four tasks are done.
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.
| Language | Function name |
|---|---|
| Czech | PRAVDA |
| Danish | SAND |
| Dutch | WAAR |
| Finnish | TOSI |
| French | VRAI |
| German | WAHR |
| Hungarian | IGAZ |
| Italian | VERO |
| Norwegian (Bokmål) | SANN |
| Polish | PRAWDA |
| Portuguese (Brazil) | VERDADEIRO |
| Portuguese (Portugal) | VERDADEIRO |
| Russian | ИСТИНА |
| Spanish | VERDADERO |
| Swedish | SANT |
| Turkish | DOĞRU |