ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 32 · Logic

NOT in Excel

NOT flips TRUE into FALSE and FALSE into TRUE. =NOT(B2="Yes") is true when B2 is anything except Yes. Inside IF, it makes "if this is not the case" easy to write.

Practice this lesson →Pro lesson. The first 4 lessons are free.

What you will learn

  • Flip a test with NOT
  • Use NOT inside IF

How it works

=NOT(B2="Yes") is TRUE when B2 is not Yes.

Put it inside IF to get a clear answer.

Formulas at a glance

=NOT(B2="Yes")not Yes
=IF(NOT(B2="Yes"),"Remind","OK")The pattern to follow

Example

Write the formula to show TRUE if Ana has NOT paid.

ABCDEF
1StudentPaid?Owes?NoteLate?Arrival
2AnaYesNo
3BenNoYes
4CleoYesNo
5DevNoNo
6EliYesYes
7FayNoNo

Click C2 and type =NOT(B2="Yes"), then press Enter.

The answer is FALSE.

When to use it

  • Reminding people who have not paid
  • Flagging rows that are not "Done"
  • Turning a test around without rewriting it

Common mistakes

  • Forgetting the parenthesesNOT needs them: NOT(B2="Yes").
  • Using NOT when <> is simplerB2<>"Yes" means the same thing. Use whichever reads better.
  • Expecting it to work on wordsNOT works on TRUE/FALSE tests, not on text.

Practice it on a real sheet

Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.

NOT in Excel: how it works, with examples · ExcelUnpack