AND and OR
Combine tests: AND needs all of them, OR needs just one.
AND(test1, test2) is TRUE only when every test is true. OR(test1, test2) is TRUE when at least one test is true. Put them inside IF to make a decision with more than one condition, like a bonus for working enough hours AND getting a good rating.
Example: =IF(AND(B2>=40,C2>=4),"Yes","No") with 42 hours and a rating of 3
- 42 is at least 40: TRUE — First test
- 3 is at least 4: FALSE — Second test
- AND is FALSE, so "No" — AND needs both
Why it works: AND is like a chain: one false test breaks it. OR is like a set of doors: one open door is enough to get through.
Tip: With the same numbers, OR would be TRUE, because one test passing is enough.