TRUE Function

Excel Functions › Logical

All Excel versions

The Excel TRUE function simply returns the logical value TRUE. It takes no arguments and exists mainly for compatibility with other spreadsheet programs — typing the bare word TRUE into a formula or cell does exactly the same thing. The genuinely useful knowledge on this page is what TRUE is: a logical value that quietly becomes 1 the moment you do math with it, which unlocks counting tricks like --(test) and SUMPRODUCT conditions.


Quick answer: you almost never need the function form — these are equivalent:
=TRUE()
=TRUE // the plain literal - same result
Where TRUE really earns attention is arithmetic: =TRUE+TRUE is 2, and =--(B2>100) turns a test into 1 or 0.

Syntax

=TRUE()
ArgumentDescription
noneTRUE() takes no arguments. The empty parentheses are required if you use the function form.

Available in: every version of Excel. Microsoft keeps TRUE() around for compatibility with other spreadsheet applications; in everyday work, type the literal TRUE (no parentheses) and Excel recognizes it as the logical value automatically.

TRUE() vs typing TRUE

Type TRUE in a cell and Excel stores the logical value TRUE — centered automatically, uppercase, not text. Use it in formulas the same way:

=IF(A2>100, TRUE, FALSE) // literal works everywhere TRUE() does
=XLOOKUP(E2, A2:A50, B2:B50, , 1) // arguments named TRUE/FALSE usually accept 1/0 too

One caution in the other direction: if you want the text “TRUE” rather than the logical value, wrap it in quotes — ="TRUE". The two look identical in a cell but behave differently in comparisons and math.

Try it: boolean arithmetic playground

Live demo

Set a threshold and watch each test become TRUE/FALSE, then 1/0 under the double minus, then a count under SUM. Values in A2:A6 are fixed: 40, 85, 120, 65, 150.

Booleans as 1 and 0: the –– trick

The moment a logical value meets arithmetic, Excel converts it: TRUE → 1, FALSE → 0. That single fact powers a whole family of formulas.

ABC
1FormulaResultWhy
2=TRUE()TRUEsame as typing TRUE
3=TRUE()+TRUE()2math coerces TRUE to 1
4=--(5>3)1double minus makes it a number
5=TRUE()*10101 × 10

The double minus -- is the idiomatic way to force the conversion without changing the value: the first minus turns TRUE into -1, the second flips it back to 1.

=SUMPRODUCT(--(B2:B100>500)) // count rows where B exceeds 500
=SUMPRODUCT(--(A2:A100="West"), C2:C100) // sum C where A is West
=SUM(--(LEN(A2:A100)=0)) // count truly empty-looking cells

Multiplying tests works the same way and reads like AND: (A2:A100="West") * (B2:B100>500) is 1 only where both are TRUE. SUMPRODUCT happily consumes these arrays in every Excel version — no special array-entry needed.

Counterpart: everything here mirrors on the FALSE page — FALSE coerces to 0, which is exactly why untrue tests drop out of SUMPRODUCT totals.

Pitfalls to avoid

Pitfall: text “TRUE” is not the value TRUE. ="TRUE" stores a text string. It fails =A2=TRUE comparisons and errors in math. If imported data arrives as text booleans, convert with =A2="TRUE".

Pitfall: TRUE doesn’t equal 1 in comparisons. Coercion happens in arithmetic, not equality: =TRUE=1 returns FALSE because logicals and numbers are different types. =TRUE+0=1 returns TRUE.

Pitfall: COUNTIF counts logicals literally. =COUNTIF(A2:A10, TRUE) counts cells holding the logical value TRUE, not cells holding 1 — another consequence of the type distinction.

#NAME? — a typo like TRU or TRUE) without the opening parenthesis. The function itself exists everywhere, so a name error on this page is almost always a misspelling.

Practice workbook

📊
Download the free TRUE practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What's the difference between TRUE and TRUE() in Excel?
Nothing in the result — both produce the logical value TRUE. The function form exists for compatibility with other spreadsheet programs. Typing the plain literal TRUE is the normal style.
Why does TRUE turn into 1 in my formulas?
Excel coerces logical values to numbers whenever they hit arithmetic: TRUE becomes 1, FALSE becomes 0. So =TRUE+TRUE is 2 and =(B2>100)*50 is 50 or 0. Comparisons don’t coerce — =TRUE=1 is FALSE.
What does the double minus (--) do?
It forces a logical value into a number without changing it: the first minus makes TRUE into -1, the second makes it 1. =SUMPRODUCT(--(A2:A100>500)) counts how many tests pass.
How do I count TRUE values in a range?
If the cells hold logical values: =COUNTIF(A2:A100, TRUE). If you're counting passing tests computed on the fly: =SUMPRODUCT(--(B2:B100>0)).
Why does my imported TRUE behave strangely?
It's probably the text string "TRUE", not the logical value — common in CSV imports. Convert it with =A2="TRUE", which returns a real logical, or multiply-proof it with =--(A2="TRUE") for 1/0.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: FALSE · NOT · AND · OR · IF · XOR