A single IF tests one thing. To make a decision on several conditions at once — “approve only if income is high and debt is low,” “flag if status is Cancelled or Refunded” — nest AND or OR inside IF.
AND(…) is TRUE only if every condition is TRUE; OR(…) is TRUE if any is.
The example
Loan applicants. Approve when income ≥ $50k and debt ratio ≤ 30%.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Income | Debt ratio | Decision |
| 2 | Ana | $62,000 | 25% | Approve |
| 3 | Ben | $48,000 | 20% | Review |
| 4 | Cy | $70,000 | 40% | Review |
The formula
The decision formula, copied down:
How it works
AND collapses several tests into one TRUE/FALSE for IF:
AND(B2>=50000, C2<=0.3)is TRUE only when income is at least 50k and debt ratio is at most 30%.- For Ana (62k, 25%) both hold → AND is TRUE → IF returns "Approve".
- For Ben the income fails; for Cy the debt ratio fails; either failure makes AND FALSE → "Review".
- Swap
ANDforORto approve when at least one condition is met.
Try it: interactive demo
Set income and debt ratio, and pick AND or OR logic.
Variations
OR logic
Flag a row if status is Cancelled or Refunded:
Mixed AND + OR
Combine them — approve if income is high AND (employed OR has a co-signer):
Math shortcut for AND / OR
Multiplying conditions = AND; adding = OR:
Pitfalls & errors
Stringing conditions wrong. =IF(B2>=50000 AND C2<=0.3, …) is not Excel syntax. AND/OR are functions: AND(test1, test2).
Don’t over-nest IFs. Five nested IFs for what AND/OR can express in one is a maintenance headache. Reach for AND, OR, IFS, or a lookup table.
Text comparisons ignore case. B2="cancelled" matches "Cancelled". Use EXACT if you truly need case sensitivity.
Practice workbook
Frequently asked questions
How do I use IF with multiple conditions in Excel?
What's the difference between AND and OR in IF?
Can I combine AND and OR in one formula?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class