Section 4. Chapter 4
Combining AND & OR in Excel
Swipe to show menu
Using the AND and OR allows you to perform more sophisticated logical tests by combining multiple conditions.
Key Points
- Use the
ANDfunction to test if all conditions are met like this:=AND(condition1, condition2,...); - Use the
ORfunction to test if at least one condition is met like this:=OR(condition1, condition2, ...).
Task
Swipe to start coding
-
Select
G20→ type=AND(B20="Target Met",F20>95)→ pressEnter→ drag the fill handle down toG26. -
Select
G20→ type=OR(B20="Target Met",F20>95)→ pressEnter→ drag the fill handle down toG26. -
Select
F32→ type=IF(OR(B20="Target Met",F20>95),"20%","0%")(alternatively
=IF(G20,"20%","0%"))→ press
Enter→ drag the fill handle down toE38.
Solution
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 4
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat