IF tests one condition. AND and OR test multiple. Here's how to combine them for powerful logical formulas.
=IF(condition, value_if_true, value_if_false)
=IF(A2>100, "High", "Low")
-- One condition, two outcomes=AND(condition1, condition2, ...)
=AND(A2>100, B2="Active")
-- Returns TRUE only if BOTH conditions are true
-- Returns FALSE if any condition is false=OR(condition1, condition2, ...)
=OR(A2="North", A2="South")
-- Returns TRUE if ANY condition is true
-- Returns FALSE only if ALL conditions are false=IF(AND(A2>100, B2="Active"), "Qualify", "No")
-- "Qualify" only if BOTH: A2>100 AND B2="Active"
=IF(AND(A2>=18, A2<=65), "Working age", "Outside range")
-- Between 18 and 65 inclusive=IF(OR(A2="North", A2="South"), "UK", "International")
-- "UK" if region is North OR South
=IF(OR(B2<0, B2>1000), "CHECK", "OK")
-- Flag if value is negative OR over 1000=IF(AND(A2="Active", OR(B2="Gold", B2="Platinum")), "VIP", "Standard")
-- Active AND (Gold OR Platinum) = VIP
-- Brackets control evaluation orderYou don't always need IF. In conditional formatting or data validation, AND and OR work directly: use =AND(A2>0, A2<100) as a formula rule without wrapping in IF.
| Function | Returns TRUE when | Use with IF when |
|---|---|---|
| AND | ALL conditions are true | Multiple conditions must all be met |
| OR | ANY condition is true | Any one of several conditions qualifies |
| NOT | The condition is false | You want the opposite of a condition |
Practice this formula yourself — type it in a real spreadsheet and get instant feedback. Free, no download needed.
Start the Excel Basics track free →