AND, OR & NOT Compound Logic Formulas
AND, OR & NOT Compound Logic Formulas

AND, OR & NOT Compound Logic Formulas

Learn how to combine logical operators in Excel with AND, OR, XOR, and NOT. Audit loan approvals, test multiple criteria, and avoid IF nesting traps.

M. Ichsanul Fadhil
Published

Credit underwriting, hiring pipelines, and compliance screenings often require testing multiple rules at the same time. For example, a commercial mortgage might require a credit score above 700, income over $5,000, and a debt ratio below 35%. Stacking multiple IF statements to test all three rules makes formulas unnecessarily complex.

Excel provides four core logical building blocks: AND, OR, XOR, and NOT. These formulas combine conditions cleanly and return a simple TRUE or FALSE.

Quick Comparison of Logical Operators

Formula When It Returns TRUE Typical Use Case
AND(c1, c2, ...) When EVERY condition is TRUE Strict compliance rules and multi-step qualification filters.
OR(c1, c2, ...) When AT LEAST ONE condition is TRUE Bonus qualification if sales exceed quota OR customer satisfaction is top tier.
XOR(c1, c2, ...) When an ODD NUMBER of conditions are TRUE (exclusive choice) Choosing between two mutually exclusive discounts (cannot combine both).
NOT(condition) Reverses the logical state (TRUE becomes FALSE) Excluding specific account categories or filtering out inactive users.

Syntax Rules and Common Mistakes

1. Do Not Write "AND" as an English Word Between Conditions

A common beginner mistake is writing:

=IF(B2 >= 700 AND C2 >= 5000, "Approved", "Declined") // Triggers #NAME? error

In Excel, AND is a formula function that wraps its arguments inside parentheses:

=IF(AND(B2 >= 700, C2 >= 5000), "Approved", "Declined")

2. Understanding XOR (Exclusive OR)

Unlike OR, which returns TRUE even if both conditions pass, XOR returns FALSE if both conditions are met. This makes it ideal for policy rules where a customer can pick perk A or perk B, but not both.

Hands-on Practice Playground

Use the credit underwriting table below to test loan eligibility criteria. Follow each objective to complete the exercise.

In cell E2, test whether Liam Henderson meets all loan criteria using the AND formula.

Check answer
Challenge #1
Target: Sheet1!E2
Objective 1: Multi-Criteria Underwriting with AND

In cell E2, verify if Liam Henderson meets all loan standards: credit score B2 at least 700, monthly income C2 at least 5000, and DTI ratio D2 at most 0.35 using the AND formula.

In cell F2, check if the applicant qualifies for priority review using the OR formula.

Check answer
Challenge #2
Target: Sheet1!F2
Objective 2: Flag Borderline Cases with OR

Risk officers want to flag any candidate who has either an exceptional credit score (B2 >= 750) OR high income (C2 >= 7000). Test this in cell F2 using the OR formula.

In cell G2, test for exclusive VIP perk qualification using XOR.

Check answer
Challenge #3
Target: Sheet1!G2
Objective 3: Exclusive Benefit with XOR

Applicants qualify for a VIP perk if they have EITHER high credit (B2 >= 720) OR low DTI (D2 <= 0.25), but NOT both. Test this exclusive condition in cell G2 using XOR.

Customer Support SLA Tracker
Operations
Applied Project Exercise

Ready to apply AND, OR & NOT Compound Logic Formulas in a real workbook?

Implement automated business rules and visual alert thresholds using logical conditions.

Open Customer Support SLA Tracker
Tactical Arena
Loading Spreadsheet Playground...Initializing calculation engine

Share This Lesson

Spread the word with your peers and challenge your friends

Discussion
0 Comments
No comments yet. Be the first to share your thoughts!