30 Advanced Excel Tips for 2026

Excel Champs / Excel Formulas List / Understanding TRUE and FALSE in Excel (Boolean Values)
By Puneet Gogia (Microsoft MVP)

Understanding TRUE and FALSE in Excel (Boolean Values)

30+ Advanced Excel Tips for 2026

No spam. Only Excel Stuff. God Promise. 😊

TRUE and FALSE are Excel’s Boolean values — the result of any test you write. =1=1 returns TRUE, =1=2 returns FALSE, and every comparison operator (>, <, >=, <=, =, <>) produces one or the other.

You can also type them straight into a cell, or use the =TRUE() and =FALSE() functions, which take no arguments and exist mainly for compatibility with older spreadsheet software. Underneath, TRUE behaves as 1 and FALSE as 0, which is what makes them useful in calculations: =SUM((A1:A10>50)*1) counts how many values exceed 50.

To convert them explicitly, use the N function or a double minus — =N(A1) and =--A1 both turn TRUE into 1. The double minus is the one you’ll see inside SUMPRODUCT formulas for exactly this reason.

One thing to watch: SUM and COUNT ignore Boolean values sitting in cells, so =SUM(A1:A10) over a column of TRUEs returns 0 — you have to multiply or coerce them first.

TRUE and FALSE are the Boolean values. Both values represent a result of a condition. For example, 1 = 1 is TRUE, and 1 = 2 is FALSE. In both cases, we have a Boolean value, which helps you understand the result. These are also called truth values.

In Excel, there are two ways to use these Boolean values.

  • You enter them in a cell.
  • You get them in return as a result.

In most cases (while working in Excel), you do not need to enter them in a cell manually. And there are multiple ways to get TRUE and FALSE in a cell as a result.

In calculations, TRUE and FALSE work like 1 and 0, respectively (see the limits of this below).

Use TRUE and FALSE Functions

You have two specific functions in Excel, TRUE and FALSE, to get both Boolean values.

true-or-false-in-excel

In these functions, you don’t need to specify any argument within the function.

=TRUE()
=FALSE()

Get the Result by Testing a Condition

When you test a condition, the result is always TRUE or FALSE. And these are the situations where you deal with TRUE and FALSE a lot in Excel. If you test 1 = 1, your formula returns TRUE.

formula-returns-true

But if you test 1 = 2, your formula returns FALSE.

formula-returns-false

TRUE and FALSE are the basic way to express the result of a condition in Excel. And the IF function in Excel also works with TRUE and FALSE.

true-and-false-express-the-condition-result

The entire work in the IF function is based on the TRUE and FALSE values.

Using Logical Operators

In Excel, you have logical operators, which help you test conditions. These logical operators also return results in TRUE and FALSE values.

  • Greater Than >
  • Less Than <
  • Doesn’t Equal <>
  • Equal To =
  • Greater Than or Equal To >=
  • Less Than or Equal To <=
use-logical-operations

Even when you test two values against each other, you get the result as TRUE or FALSE.

Converting TRUE-FALSE as 1-0

There are two ways to convert the Boolean values into 0 and 1.

  • N Function
  • Double Minus Sign
convert-true-false

In the above example, we first used the N function and then the double minus sign (–), and both converted TRUE and FALSE into 1 and 0.

Out of both methods, using a double minus sign has a small benefit: it also works on a whole range, while N only works on a single value. For example, if you want to count the cells with TRUE, you can use it along with SUM (in Microsoft 365 and Excel 2021; in older versions, use SUMPRODUCT as shown below).

converted-true-and-false-into-1-and-0

But there’s a catch: when your TRUE and FALSE values are in cells, SUM ignores them. So, if A1:A3 has TRUE, FALSE and TRUE, the following formula returns 0, not 2:

=SUM(A1:A3)

To count them, convert them with the double minus sign first. SUMPRODUCT works in every version of Excel without Ctrl+Shift+Enter:

=SUMPRODUCT(--(A1:A3))

Or simply count the TRUE values with COUNTIF:

=COUNTIF(A1:A3,TRUE)

TRUE and FALSE in Calculations

When you use TRUE and FALSE directly in a calculation, Excel treats them as 1 and 0. For example, the following formula returns 2:

=TRUE+TRUE

But they are still not the same as the numbers 1 and 0. If you compare them, like =TRUE=1, Excel returns FALSE, because a logical value is never equal to a number. That’s why a lookup for 1 doesn’t find a cell with TRUE.

Logical TRUE vs Text TRUE

Data imported from other systems often has “TRUE” and “FALSE” stored as text. They look the same, but text values are left-aligned, while real logical values are centered in the cell. To check a cell, use ISLOGICAL, which returns TRUE only for a real logical value:

=ISLOGICAL(A1)

And to turn the text into a real logical value, compare it with the text “TRUE”:

=A1="TRUE"

Frequently Asked Questions

How do I show Yes or No instead of TRUE or FALSE?

Wrap the condition in IF and tell it what to show for each result:

=IF(A1>=50,"Yes","No")

Do I need the TRUE() and FALSE() functions?

Not really. Microsoft keeps them mainly for compatibility with other spreadsheet programs. You can type TRUE or FALSE directly in a cell or a formula, and Excel treats them as logical values.

Why does my checkbox cell show TRUE and FALSE?

A checkbox is linked to a cell that holds TRUE when it’s checked and FALSE when it isn’t. You can use that cell in IF, COUNTIF or SUMPRODUCT, just like any other logical value.

Puneet Gogia

Written by

Puneet Gogia

Microsoft MVP — Excel · Founder, Excel Champs

Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.

3M+ readers helped
1,000+ tutorials written
Since 2015 teaching Excel

1 thought on “Understanding TRUE and FALSE in Excel (Boolean Values)”

  1. I have used excel for so long and didn’t know this. Thanks. I will spend at least 10 minutes ea day on excel formula brush-up.

    Reply

Leave a Comment