Introduction
Advanced logical formulas help Excel handle more complex decisions and business rules. In this chapter, you will practice IFS, XOR, LET, TRUE, FALSE, nested logical conditions, and combinations of logical functions with calculations. The questions are designed for learners who already understand basic IF, AND, OR, and NOT and now want to solve more realistic Excel problems. Advanced Logical Functions Practice questions with solutions to help yo understand the concepts. Advanced Logical Functions practice questions with solutions to help you understand the concepts.
Question 1: Grade Students Using IFS
Problem Statement
Assign a grade according to the student’s marks:
- 90 or above → A+
- 80 or above → A
- 70 or above → B
- 60 or above → C
- 50 or above → D
- Below 50 → F
Excel Data
| Student | Marks | Grade |
|---|---|---|
| Rahul | 94 | |
| Priya | 86 | |
| Amit | 73 | |
| Neha | 65 | |
| Arjun | 52 | |
| Simran | 42 |
Solution
In C2, enter:
=IFS(B2>=90,"A+",B2>=80,"A",B2>=70,"B",B2>=60,"C",B2>=50,"D",TRUE,"F")
Copy the formula down.
Expected Output
| Student | Marks | Grade |
|---|---|---|
| Rahul | 94 | A+ |
| Priya | 86 | A |
| Amit | 73 | B |
| Neha | 65 | C |
| Arjun | 52 | D |
| Simran | 42 | F |
IFS is useful when there are several possible conditions and results.
Question 2: Identify Employees Eligible for Two Different Benefits Using XOR
Problem Statement
An employee receives a special benefit when exactly one of these conditions is TRUE:
- Sales are at least ₹5,00,000
- Attendance is at least 90%
If both conditions are TRUE or both are FALSE, the employee is not eligible.
Excel Data
| Employee | Sales | Attendance | Benefit |
|---|---|---|---|
| Rahul | 600000 | 85% | |
| Priya | 450000 | 92% | |
| Amit | 700000 | 95% | |
| Neha | 400000 | 80% | |
| Arjun | 550000 | 91% |
Solution
In D2, enter:
=IF(XOR(B2>=500000,C2>=90%),"Eligible","Not Eligible")
Copy down.
Expected Output
| Employee | Sales | Attendance | Benefit |
|---|---|---|---|
| Rahul | 600000 | 85% | Eligible |
| Priya | 450000 | 92% | Eligible |
| Amit | 700000 | 95% | Not Eligible |
| Neha | 400000 | 80% | Not Eligible |
| Arjun | 550000 | 91% | Not Eligible |
XOR returns TRUE when an odd number of its logical conditions are TRUE. With two conditions, that means exactly one must be TRUE.
Question 3: Use LET to Simplify a Repeated Calculation
Problem Statement
Calculate an employee’s sales after a 10% commission deduction.
Instead of repeating the sales calculation multiple times, use LET to create a variable.
Excel Data
| Employee | Sales | Commission | Net Sales |
|---|---|---|---|
| Rahul | 500000 | 10% | |
| Priya | 650000 | 8% | |
| Amit | 420000 | 12% | |
| Neha | 800000 | 10% | |
| Arjun | 550000 | 7% |
Solution
In D2, enter:
=LET(CommissionAmount,B2*C2,B2-CommissionAmount)
Copy down.
Expected Output
| Employee | Sales | Commission | Net Sales |
|---|---|---|---|
| Rahul | 500000 | 10% | 450000 |
| Priya | 650000 | 8% | 598000 |
| Amit | 420000 | 12% | 369600 |
| Neha | 800000 | 10% | 720000 |
| Arjun | 550000 | 7% | 511500 |
LET allows you to assign a name to a calculation and reuse it within the same formula.
Question 4: Create a Sales Performance Level Using IFS and AND
Problem Statement
Classify employees using both sales and customer ratings.
Rules:
- Sales ≥ ₹8,00,000 AND Rating ≥ 4.5 → Outstanding
- Sales ≥ ₹6,00,000 AND Rating ≥ 4 → Excellent
- Sales ≥ ₹4,00,000 AND Rating ≥ 3.5 → Good
- Otherwise → Needs Improvement
Excel Data
| Employee | Sales | Rating | Performance |
|---|---|---|---|
| Rahul | 850000 | 4.7 | |
| Priya | 700000 | 4.2 | |
| Amit | 500000 | 3.8 | |
| Neha | 900000 | 4.1 | |
| Arjun | 350000 | 4.8 |
Solution
In D2, enter:
=IFS(AND(B2>=800000,C2>=4.5),"Outstanding",AND(B2>=600000,C2>=4),"Excellent",AND(B2>=400000,C2>=3.5),"Good",TRUE,"Needs Improvement")
Copy down.
Expected Output
| Employee | Sales | Rating | Performance |
|---|---|---|---|
| Rahul | 850000 | 4.7 | Outstanding |
| Priya | 700000 | 4.2 | Excellent |
| Amit | 500000 | 3.8 | Good |
| Neha | 900000 | 4.1 | Excellent |
| Arjun | 350000 | 4.8 | Needs Improvement |
Question 5: Use TRUE and FALSE for Eligibility Testing
Problem Statement
Determine whether each student satisfies both requirements:
- Marks ≥ 60
- Attendance ≥ 75%
Return the logical value TRUE or FALSE instead of text.
Excel Data
| Student | Marks | Attendance | Eligible |
|---|---|---|---|
| Rahul | 78 | 85% | |
| Priya | 55 | 90% | |
| Amit | 82 | 72% | |
| Neha | 91 | 88% | |
| Arjun | 60 | 75% |
Solution
In D2, enter:
=AND(B2>=60,C2>=75%)
Copy down.
Expected Output
| Student | Marks | Attendance | Eligible |
|---|---|---|---|
| Rahul | 78 | 85% | TRUE |
| Priya | 55 | 90% | FALSE |
| Amit | 82 | 72% | FALSE |
| Neha | 91 | 88% | TRUE |
| Arjun | 60 | 75% | TRUE |
Here, TRUE and FALSE are logical values rather than text strings.
Question 6: Check Whether Exactly One Document Is Missing
Problem Statement
A customer’s account requires two documents:
- ID Proof
- Address Proof
The company wants to identify customers who have exactly one of these documents missing.
Use XOR.
Excel Data
| Customer | ID Proof | Address Proof | Document Check |
|---|---|---|---|
| Rahul | Yes | No | |
| Priya | No | Yes | |
| Amit | Yes | Yes | |
| Neha | No | No | |
| Arjun | Yes | Yes |
Solution
In D2, enter:
=IF(XOR(B2="No",C2="No"),"One Missing","Check Complete")
Copy down.
Expected Output
| Customer | ID Proof | Address Proof | Document Check |
|---|---|---|---|
| Rahul | Yes | No | One Missing |
| Priya | No | Yes | One Missing |
| Amit | Yes | Yes | Check Complete |
| Neha | No | No | Check Complete |
| Arjun | Yes | Yes | Check Complete |
When both documents are missing, XOR is FALSE because two conditions are TRUE.
Question 7: Use LET for a Discount Decision
Problem Statement
A store gives discounts based on the final order value after applying a membership discount.
Rules:
- Premium customers get 10% off.
- Regular customers get 5% off.
- If the final amount is ₹10,000 or more → High Value Order
- Otherwise → Regular Order
Excel Data
| Customer | Order Value | Membership | Order Type |
|---|---|---|---|
| Rahul | 12000 | Premium | |
| Priya | 9000 | Regular | |
| Amit | 15000 | Premium | |
| Neha | 8000 | Regular | |
| Arjun | 11000 | Regular |
Solution
In D2, enter:
=LET(Discount,IF(C2="Premium",10%,5%),FinalAmount,B2*(1-Discount),IF(FinalAmount>=10000,"High Value Order","Regular Order"))
Copy down.
Expected Output
| Customer | Order Value | Membership | Order Type |
|---|---|---|---|
| Rahul | 12000 | Premium | High Value Order |
| Priya | 9000 | Regular | Regular Order |
| Amit | 15000 | Premium | High Value Order |
| Neha | 8000 | Regular | Regular Order |
| Arjun | 11000 | Regular | High Value Order |
This example shows how LET can make a longer formula easier to organize.
Question 8: Advanced Employee Status Using Multiple Logical Conditions
Problem Statement
Classify an employee using these rules:
- If the employee is on probation → Probation
- Otherwise, if attendance is below 75% → Attendance Issue
- Otherwise, if performance rating is at least 4 → Good Standing
- Otherwise → Needs Review
Excel Data
| Employee | Attendance | Rating | Employment Status | Result |
|---|---|---|---|---|
| Rahul | 92% | 4.5 | Permanent | |
| Priya | 70% | 4.2 | Permanent | |
| Amit | 88% | 3.2 | Permanent | |
| Neha | 95% | 4.8 | Probation | |
| Arjun | 80% | 3.5 | Permanent |
Solution
In E2, enter:
=IFS(D2="Probation","Probation",B2<75%,"Attendance Issue",C2>=4,"Good Standing",TRUE,"Needs Review")
Copy down.
Expected Output
| Employee | Attendance | Rating | Employment Status | Result |
|---|---|---|---|---|
| Rahul | 92% | 4.5 | Permanent | Good Standing |
| Priya | 70% | 4.2 | Permanent | Attendance Issue |
| Amit | 88% | 3.2 | Permanent | Needs Review |
| Neha | 95% | 4.8 | Probation | Probation |
| Arjun | 80% | 3.5 | Permanent | Needs Review |
The order of conditions matters because IFS returns the result for the first TRUE condition.
Question 9: Use XOR with Two Approval Requirements
Problem Statement
A purchase requires two approvals:
- Manager Approval
- Finance Approval
The system should display:
- Both Approved when both are Yes
- One Approval Missing when exactly one is No
- Both Missing when both are No
Excel Data
| Request | Manager Approval | Finance Approval | Status |
|---|---|---|---|
| R101 | Yes | Yes | |
| R102 | Yes | No | |
| R103 | No | Yes | |
| R104 | No | No | |
| R105 | Yes | Yes |
Solution
In D2, enter:
=IF(AND(B2="Yes",C2="Yes"),"Both Approved",IF(XOR(B2="Yes",C2="Yes"),"One Approval Missing","Both Missing"))
Copy down.
Expected Output
| Request | Manager Approval | Finance Approval | Status |
|---|---|---|---|
| R101 | Yes | Yes | Both Approved |
| R102 | Yes | No | One Approval Missing |
| R103 | No | Yes | One Approval Missing |
| R104 | No | No | Both Missing |
| R105 | Yes | Yes | Both Approved |
This is a practical example of combining AND, XOR, and nested IF.
Question 10: Build an Advanced Sales Evaluation Formula
Problem Statement
Evaluate employees using the following rules:
- If sales are zero → No Sales
- If sales are at least ₹8,00,000 AND rating is at least 4.5 → Outstanding
- If sales are at least ₹6,00,000 OR rating is at least 4 → Strong
- If sales are at least ₹3,00,000 AND attendance is at least 80% → Satisfactory
- Otherwise → Needs Improvement
Excel Data
| Employee | Sales | Rating | Attendance | Evaluation |
|---|---|---|---|---|
| Rahul | 900000 | 4.7 | 92% | |
| Priya | 650000 | 3.8 | 88% | |
| Amit | 0 | 4.5 | 95% | |
| Neha | 350000 | 3.5 | 85% | |
| Arjun | 250000 | 4.2 | 90% | |
| Simran | 700000 | 4.6 | 94% |
Solution
In E2, enter:
=IFS(B2=0,"No Sales",AND(B2>=800000,C2>=4.5),"Outstanding",OR(B2>=600000,C2>=4),"Strong",AND(B2>=300000,D2>=80%),"Satisfactory",TRUE,"Needs Improvement")
Copy down.
Expected Output
| Employee | Sales | Rating | Attendance | Evaluation |
|---|---|---|---|---|
| Rahul | 900000 | 4.7 | 92% | Outstanding |
| Priya | 650000 | 3.8 | 88% | Strong |
| Amit | 0 | 4.5 | 95% | No Sales |
| Neha | 350000 | 3.5 | 85% | Satisfactory |
| Arjun | 250000 | 4.2 | 90% | Strong |
| Simran | 700000 | 4.6 | 94% | Strong |
Notice that Arjun is classified as Strong because the rating condition is satisfied, even though sales are below ₹3,00,000.
Key Takeaways
IFSis useful when you have several conditions and different results.XORis useful when you need to determine whether an odd number of conditions are TRUE.- With two conditions,
XORis TRUE when exactly one condition is TRUE. LETallows you to create named variables inside a formula.TRUEandFALSEare logical values that can be used directly in formulas.- The order of conditions in
IFSis important. - More complex formulas can combine
IFS,AND,OR,NOT, andXOR. LETcan make long formulas easier to read and maintain.- Advanced logical formulas are useful for employee evaluation, approval systems, grading, discounts, eligibility and business rules.
- Test formulas with boundary values and unusual cases to make sure the logic works correctly.
FAQs
1. What is the IFS function in Excel?
IFS checks multiple conditions in order and returns the result associated with the first TRUE condition.
=IFS(B2>=90,"A+",B2>=80,"A",B2>=70,"B",TRUE,"F")
2. What is the difference between IF and IFS?
IF is commonly used for one condition or a smaller number of logical branches, while IFS is designed to handle multiple condition-result pairs more directly.
3. What does XOR mean in Excel?
XOR returns TRUE when an odd number of its logical arguments are TRUE. With two conditions, it means exactly one condition must be TRUE.
=XOR(A2="Yes",B2="Yes")
4. What is LET used for in Excel?
LET allows you to assign names to values or calculations inside a formula and then reuse them.
=LET(Total,B2*C2,Total*10%)
5. Can I use AND inside IFS?
Yes. This is useful when an IFS condition requires multiple requirements to be satisfied.
=IFS(AND(B2>=800000,C2>=4.5),"Outstanding",TRUE,"Other")
6. Can OR be used inside IFS?
Yes. OR can be used when any one of several conditions should trigger a particular result.
=IFS(OR(B2>=600000,C2>=4),"Strong",TRUE,"Other")
7. Why is TRUE used at the end of an IFS formula?
TRUE can be used as the final condition to provide a default result when none of the previous conditions is TRUE.
8. Does the order of IFS conditions matter?
Yes. IFS returns the result for the first condition that evaluates to TRUE. Therefore, more specific or higher-priority conditions should generally be placed before broader conditions.
9. Can XOR be used with text?
Yes. You can compare text values and then pass the logical results to XOR.
=XOR(A2="Yes",B2="Yes")
10. When should I use LET?
LET is particularly useful when a formula contains the same calculation multiple times or when naming intermediate calculations makes a complex formula easier to understand.
Written by Shubhranshu Shekhar, who has trained 20000+ students in coding.
