AND and OR inside IF

1 / 6

A bonus needs two things: sales of at least 500 and at least 2 years here.

keyboard Typing formulas is easiest on a computer with a keyboard.

A1
ABCDE
1NameSalesYearsBonus?
2Tariq6902
3Nadia5005
4Daniel4100
5Quinn4904
6Jamal2005
7Isla7101
8Kofi5908
9
10
11
12
sales
years
Yes or No
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.