TopicsCheat sheetLessons
Lurndo › Excel › AND and OR

Learning Excel: AND and OR

AND, OR and NOT

On the Lessons sheet, Dave keeps track of the badges. "You can only go in the deep end with badge A and B. For the gala, B is enough, or twenty lengths." Two conditions at once: time for AND and OR.

AND

AND takes a few tests and gives TRUE if they're all true. If one of them is FALSE, the whole answer is FALSE.

F2 holds =AND(C2,D2). Ella has badge A, but not B, so Ella can't go in the deep end yet.

F2
fx

=AND(C2,D2)

ABCDEF
1ChildAgeBadge ABadge BLengthsDeep end
2Ella7TRUEFALSE12FALSE
3Ilias9TRUETRUE20
4Zoë6FALSEFALSE4
5Ben10TRUETRUE26
6Amira8TRUEFALSE15
7Theo11TRUETRUE18
8Nina9FALSEFALSE8
9Sonny12TRUETRUE30
10

OR and NOT

OR gives TRUE if at least one test is true. =OR(E2>=20,D2) says: twenty lengths or badge B, one of the two is enough.

NOT flips a logical value: =NOT(C2) is TRUE for anyone who does not have badge A yet.

Try it yourself

Which children are allowed in the deep end? In F2, put TRUE if the child has both badges, and fill down to F9.

ABCDEFG
1ChildAgeBadge ABadge BLengthsDeep end
2Ella7TRUEFALSE12
3Ilias9TRUETRUE20
4Zoë6FALSEFALSE4
5Ben10TRUETRUE26
6Amira8TRUEFALSE15
7Theo11TRUETRUE18
8Nina9FALSEFALSE8
9Sonny12TRUETRUE30
10
F2

Ready for more?

The full lesson has 5 exercises, from easy to challenging, with hints, points and a streak you can build.

Start the lesson
← PreviousChoosing with IFNext →More than two choices

SQL

  • Topics
  • All lessons
  • Cheat sheet

Excel

  • Topics
  • All lessons
  • Shortcuts

HTML & CSS

  • About the course
  • All lessons

Lurndo

  • Dashboard
  • Leaderboard
  • Premium
  • Account
  • Privacy
Nederlands