AND

AND and OR inside IF

Spreadsheet in your browser
Lesson concept What you'll do
1 / 7

Decide who gets a bonus, when it needs two things at once.

AND is TRUE only if every test passes; OR if any one does. Put it inside IF.

Typing formulas is easiest on a computer with a keyboard.

A1
ABCDE
1NameSalesYearsBonus?
2Tariq6902
3Nadia5005
4Daniel4100
5Quinn4904
6Jamal2005
7Isla7101
8Kofi5908
9
10
11
12
Type to enter a value or a formula starting with =. F2 edits, F4 adds $ to a reference.
Study notes

How AND and OR and IF works

  • What do AND and OR do?

    They combine several yes-or-no questions into one:

    • AND(B2>=500,C2>=2) is TRUE only when every question is TRUE.
    • OR(B2>=500,C2>=2) is TRUE when at least one question is TRUE.
  • How do you use them inside IF?

    On their own they show TRUE or FALSE. Put one inside IF as the question to show something more useful:

    =IF(AND(B2>=500,C2>=2),"Yes","No")

Know someone fighting with a spreadsheet? Send them this page.