IF with AND / OR

Excel Formulas › Logical

All versionsANDOR

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.


Quick formula: to return "Approve" only when both tests pass:
=IF(AND(B2>=50000, C2<=0.3), "Approve", "Review")
AND(…) is TRUE only if every condition is TRUE; OR(…) is TRUE if any is.

Functions used (tap for the full reference guide):

The example

Loan applicants. Approve when income ≥ $50k and debt ratio ≤ 30%.

ABCD
1NameIncomeDebt ratioDecision
2Ana$62,00025%Approve
3Ben$48,00020%Review
4Cy$70,00040%Review

The formula

The decision formula, copied down:

=IF(AND(B2>=50000, C2<=0.3), "Approve", "Review") // Ana passes both → Approve

How it works

AND collapses several tests into one TRUE/FALSE for IF:

  1. AND(B2>=50000, C2<=0.3) is TRUE only when income is at least 50k and debt ratio is at most 30%.
  2. For Ana (62k, 25%) both hold → AND is TRUE → IF returns "Approve".
  3. For Ben the income fails; for Cy the debt ratio fails; either failure makes AND FALSE → "Review".
  4. Swap AND for OR to approve when at least one condition is met.

Try it: interactive demo

Live demo

Set income and debt ratio, and pick AND or OR logic.

Decision:

Variations

OR logic

Flag a row if status is Cancelled or Refunded:

=IF(OR(B2="Cancelled", B2="Refunded"), "Closed", "Open")

Mixed AND + OR

Combine them — approve if income is high AND (employed OR has a co-signer):

=IF(AND(B2>=50000, OR(C2="Employed", D2="Yes")), "Approve", "Review")

Math shortcut for AND / OR

Multiplying conditions = AND; adding = OR:

=IF((B2>=50000)*(C2<=0.3), "Approve", "Review")

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

📊
Download the free IF with AND / OR practice workbook
The applicant table with live IF+AND, the OR and mixed variants, and the math shortcut, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I use IF with multiple conditions in Excel?
Nest AND or OR inside IF: =IF(AND(B2>=50000, C2<=0.3), "Approve", "Review"). AND requires every condition to be true; OR requires at least one.
What's the difference between AND and OR in IF?
AND returns TRUE only when all conditions are true, so the IF's value-if-true fires only then. OR returns TRUE when any one condition is true.
Can I combine AND and OR in one formula?
Yes: =IF(AND(B2>=50000, OR(C2="Employed", D2="Yes")), "Approve", "Review") approves when income is high and the person is either employed or has a co-signer.

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

Related formulas: Convert scores to grades · Flag duplicates · Highlight rows with a formula

Function references: IF · AND · OR