Excel Practice Start learning
Home · Lessons · AND, OR, NOT

AND, OR, NOT practice

Real rules usually involve more than one test. These three let one IF ask several questions.

AND(test1, test2) · OR(test1, test2) · NOT(test)

What this lesson covers

AND needs every test to be true. OR needs any one of them. Either can sit inside an IF as the test.

3 exercises in this lesson

  1. Task 1 · cell E10

    Check whether units are at least 10 AND the team is Studio.

  2. Task 2 · cell E10

    Check whether units are at least 10 OR the team is Field.

  3. Task 3 · cell E10

    Return pass when units are at least 10 and the team is Studio, otherwise fail.

Using AND, OR, NOT at work

The syntax is AND(test1, test2) · OR(test1, test2) · NOT(test). Once it is in your hands, the work it replaces is the kind of thing that used to mean scrolling a column and hoping you did not miss a row.

This is lesson 22 of 37. It takes a few minutes, and the exercises are marked the moment you submit rather than at the end.

Where people usually slip

  • Ranges drift. Pointing at three cells when the data has six is the single most common cause of a wrong total, and it is invisible because the answer still looks plausible.
  • Copying breaks a reference. Relative references shift when a formula is copied. If a value should stay put, lock it with dollar signs.
  • The number is right, the method is not. Typing a total by hand produces the right answer once. A formula produces it again when the data changes, which is the actual skill.

How this is marked

Each exercise is checked against the result the formula should produce, and then re-run on a different set of numbers. A hardcoded answer passes the first check and fails the second, so it is rejected. That second pass is the part that makes the practice stick.

Practise AND, OR, NOT now →