ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Logic
  3. TRUE and FALSE in Excel: What They Mean in Formulas

TRUE and FALSE in Excel: What They Mean in Formulas

By ExcelReady Team·Updated November 2, 2026·6 min read

The short answer

TRUE and FALSE are Excel's logical values. A comparison such as =B2>=50 returns TRUE when it is correct and FALSE when it isn't. IF, AND, OR and NOT all work with these values. In arithmetic, TRUE counts as 1 and FALSE as 0, so =SUMPRODUCT(--(B2:B7>=50)) counts the rows that pass a test.

Key takeaways

  • Any comparison, like =B2>=50 or =A2="Paid", returns the logical value TRUE or FALSE.
  • IF, AND, OR and NOT take TRUE/FALSE tests and return TRUE/FALSE or the values you choose.
  • In maths TRUE is 1 and FALSE is 0, but SUM ignores TRUE and FALSE stored in a range.
  • The text "TRUE" is not the same as the logical value TRUE, so check how your data was entered.
On this page+
  1. What are TRUE and FALSE in Excel?
  2. How comparisons return TRUE or FALSE
  3. How IF and AND use TRUE and FALSE
  4. Why TRUE equals 1 and FALSE equals 0
  5. Why SUM ignores TRUE and FALSE
  6. Common traps with TRUE and FALSE
  7. Practise it

TRUE and FALSE in Excel are logical values (also called Boolean values): the answer Excel gives to a yes-or-no question. Every comparison, such as =B2>=50, returns TRUE or FALSE, and functions like IF and AND are built on them. This guide explains where TRUE and FALSE come from, how formulas use them, and the traps that give wrong totals in reports and job tests.

What are TRUE and FALSE in Excel?#

TRUE and FALSE are a third type of value, next to numbers and text. When you type true into a cell, Excel turns it into TRUE in capitals and centres it, which shows it's a logical value and not text.

You will see them in three places:

  • Comparisons. =10>5 returns TRUE. =10<5 returns FALSE.
  • Logical functions. AND, OR, NOT and the IS functions, such as ISNUMBER, return TRUE or FALSE.
  • Function arguments. Some functions take TRUE/FALSE as a setting. The best-known is the last argument of VLOOKUP, explained in VLOOKUP TRUE vs FALSE.

Excel also has the functions =TRUE() and =FALSE(), but typing TRUE or FALSE on its own does the same job.

How comparisons return TRUE or FALSE#

A comparison puts an operator between two values and returns TRUE or FALSE. All examples use this table:

ABCD
1StudentScorePaidPassed
2Ana72TRUETRUE
3Ben45TRUEFALSE
4Chloe50FALSETRUE
5Dev88TRUETRUE
6Emma39FALSEFALSE
7Femi61TRUETRUE

Column D holds =B2>=50, filled down. Ana's 72 is at least 50, so D2 shows TRUE. Ben's 45 is not, so D3 shows FALSE.

FormulaMeaningResult for Ana
=B2>=50Score is 50 or moreTRUE
=B2<50Score is below 50FALSE
=A2="ana"Name is AnaTRUE
=B2<>72Score is not 72FALSE

Text comparisons ignore capitals, which is why ="ana" matches Ana. Use EXACT when case matters. The full list of operators is in the guide to comparison operators in Excel.

How IF and AND use TRUE and FALSE#

The IF function reads a TRUE/FALSE test and returns one value for TRUE and another for FALSE:

Excel formula
=IF(B2>=50,"Pass","Fail")

For Ana this returns Pass, and for Ben Fail. If you leave out the last part, =IF(B2>=50,"Pass"), Ben's row shows the word FALSE. That stray FALSE in a report almost always means a missing argument. The IF lesson and the guide to the Excel IF function cover more patterns.

The AND function returns TRUE only when every test is TRUE. To find students who passed and paid:

Excel formula
=AND(B2>=50,C2)

C2 is already TRUE or FALSE, so you don't need C2=TRUE. This returns TRUE for Ana, Dev and Femi. Chloe passed but hasn't paid, so her row is FALSE. OR returns TRUE if any test is TRUE, and NOT flips TRUE to FALSE. See AND, OR and NOT in Excel for both.

IF also accepts numbers as the test: 0 counts as FALSE and any other number as TRUE. So =IF(C9,"Has value","Zero") works when C9 holds a number.

Why TRUE equals 1 and FALSE equals 0#

In arithmetic, Excel treats TRUE as 1 and FALSE as 0. =TRUE+TRUE returns 2 and =(B2>=50)*10 returns 10 for Ana. This lets you count and add with conditions.

The usual way to convert is the double minus, --. The first minus turns TRUE into -1, and the second turns it back to 1:

Excel formula
=SUMPRODUCT(--(B2:B7>=50))

B2:B7>=50 produces six values: TRUE, FALSE, TRUE, TRUE, FALSE, TRUE. The -- turns them into 1, 0, 1, 1, 0, 1, and SUMPRODUCT adds them: 4 students passed.

Multiplying two TRUE/FALSE arrays works like AND, because 1 × 1 is the only product that gives 1:

Excel formula
=SUMPRODUCT((B2:B7>=50)*(C2:C7))

This returns 3 (Ana, Dev and Femi passed and paid). Adding two arrays works like OR, as long as you then check whether each result is greater than 0.

Why SUM ignores TRUE and FALSE#

SUM, AVERAGE and COUNT skip logical values that sit in a range. So =SUM(D2:D7) returns 0, not 4, even though column D has four TRUEs. That surprises many people.

To count the TRUE cells, use COUNTIF with TRUE as the criteria, without quotes:

Excel formula
=COUNTIF(D2:D7,TRUE)

This returns 4. COUNTA, on the other hand, counts TRUE and FALSE cells as filled, so =COUNTA(D2:D7) returns 6.

Common traps with TRUE and FALSE#

These are the mistakes that most often break logical formulas:

  1. Text that looks like TRUE. Data imported from another system may hold the text "TRUE". It sits on the left of the cell, and =C2=TRUE returns FALSE. Check it with ISTEXT or ISLOGICAL from the IS functions.
  2. Quotes around TRUE. =IF(C2="TRUE","Paid","Unpaid") compares C2 with the text "TRUE", so a real logical TRUE gives Unpaid. Leave the quotes off: =IF(C2,"Paid","Unpaid").
  3. Text compared with numbers. In a comparison, text always counts as larger than any number. So =B2>100 returns TRUE if B2 holds the text "45".
  4. Expecting formatting to convert. A number format can't make TRUE show as 1. Use --, *1 or N.
  5. Writing =C2=TRUE inside AND or IF. It works, but C2 alone is shorter and does the same.

Checkboxes in Microsoft 365 (Insert > Checkbox) store TRUE when ticked and FALSE when not. So everything above applies to task lists with checkboxes too.

Practise it#

TRUE and FALSE are easy to read and easy to get wrong under time pressure. Practise TRUE/FALSE comparisons in a live spreadsheet: you write tests like =B2>=50 and the sheet checks them instantly. Then turn those tests into results in the IF function lesson.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Count how many students scored 50 or more. Click D2 and use SUMPRODUCT with -- to turn the TRUE/FALSE results of B2:B7>=50 into 1s and 0s.

fx
ABCDE
1
Student
Score
2
Ana
72
Passed
3
Ben
45
4
Chloe
50
5
Dev
88
6
Emma
39
7
Femi
61
8
9
10

Tip: B2:B7>=50 gives six TRUE/FALSE values. -- turns them into 1s and 0s, and SUMPRODUCT adds them up.

Practise this in a lesson

LessonTRUE, FALSE and comparisonsAsk Excel yes-or-no questions with =, <>, >, <, >= and <=, and get TRUE or FALSE back. The building block of every IF.LessonThe IF functionMake a cell show one result or another depending on a condition, like Pass/Fail or Over/Under budget.Function guideIFLearn Excel's IF function with practical examples: flag budgets, label rows and return blanks. Avoid the classic mistakes and practice live.Function guideANDCheck that every condition is true with Excel's AND. Use it inside IF for bonuses, ranges and eligibility rules, then try a live exercise.

Frequently asked questions

What do TRUE and FALSE mean in Excel?

+

They are logical values, also called Boolean values. TRUE means a test or comparison is correct and FALSE means it is not. For example, =10>5 returns TRUE.

Does Excel treat TRUE as 1?

+

Yes, in arithmetic. =TRUE+TRUE returns 2 and =TRUE*5 returns 5. But SUM and COUNT skip TRUE and FALSE when they sit in a range, so convert them with -- first.

How do I count TRUE values in Excel?

+

Use =COUNTIF(D2:D7,TRUE) for a column of TRUE/FALSE values. To count rows that pass a test directly, use =SUMPRODUCT(--(B2:B7>=50)).

Why does my formula say FALSE instead of a value?

+

Usually an IF is missing its third argument. =IF(B2>=50,"Pass") shows FALSE when the test fails. Add the third part: =IF(B2>=50,"Pass","Fail").

How do I turn TRUE and FALSE into 1 and 0?

+

Put two minus signs in front: =--(B2>=50). You can also multiply by 1, =(B2>=50)*1, or use the N function, =N(D2).

Sources

  • IF function - Microsoft Support
  • AND function - Microsoft Support
  • SUMPRODUCT function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What are TRUE and FALSE in Excel?
  2. How comparisons return TRUE or FALSE
  3. How IF and AND use TRUE and FALSE
  4. Why TRUE equals 1 and FALSE equals 0
  5. Why SUM ignores TRUE and FALSE
  6. Common traps with TRUE and FALSE
  7. Practise it

Keep reading

Logic· 6 min read

Excel Comparison Operators: =, <>, >, <, >=, <=

In Excel, "not equal to" is written <>, so =A2<>"Delivered" returns TRUE when A2 is anything other than Delivered. Excel has six comparison operators: = equal, <> not equal, > greater than, < less than, >= greater than or equal, and <= less than or equal. Each returns TRUE or FALSE.

Logic· 6 min read

The Excel IF Function Explained Simply

The Excel IF function checks a condition and returns one value when it's TRUE and another when it's FALSE. The syntax is =IF(logical_test, value_if_true, value_if_false). For example, =IF(B2>=70,"Pass","Fail") shows Pass for a score of 70 or more and Fail for anything lower. Text results go in double quotes.

Comparisons· 7 min read

VLOOKUP TRUE vs FALSE: Approximate vs Exact Match

VLOOKUP's last argument sets the match type. FALSE (or 0) finds an exact match and returns #N/A if the value is missing. TRUE (or 1, or leaving it out) finds the largest value less than or equal to the lookup value, and needs the first column sorted smallest to largest. Use FALSE for IDs and names, TRUE for bands.

More on logic

  • XOR Function in Excel: Exactly One Condition True
  • Age Group Formula in Excel: Put Ages Into Bands
  • AND, OR and NOT in Excel With IF
  • How to Calculate a Bonus in Excel With IF
  • The CHOOSE Function in Excel
  • What the Double Negative (--) Does in Excel Formulas
All logic articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free