» Simplifying Formulas by Reducing the Complexity of IF Functions
CATEGORY - Logical Formulas
VERSION - All Microsoft Excel Versions
Problem: The range A2:C8 contains rows of numbers. For each row, we want an indication of how many of the following conditions are met:
1. Num1 (column A) = 2
2. Num2 (column B) = 4
3. Num3 (column C) = 6
The following formula based on nested IF functions, is very complex:
=IF(A2=2,IF(B2=4,IF(C2=6,"All Conditions","Two Conditions"),IF(C2=6,"Two Conditions","One Condition")),
IF(B2=4,IF(C2=6, "Two Conditions","One Condition"),IF(C2=6,"One Condition","None of the Conditions")))
Is there a simpler way to achieve the same results?
Solution:
Use the CHOOSE function as shown in the following formula:
=CHOOSE((A2=2)+(B2=4)+(C2=6)+1,"None of the Conditions","One Condition","Two Conditions","All Conditions")
Book Store:
Recommended Books:
- Microsoft Excel VBA Programming for the Absolute Beginner
- A Mathematician Plays the Stock Market
- Quantitative Methods in Derivatives Pricing: An Introduction to Computational Finance
- The South Beach Diet: The Delicious, Doctor-Designed, Foolproof Plan for Fast and Healthy Weight Loss
- Marketing Plans That Work, Targeting Growth and Profitability
- The Accounting Game : Basic Accounting Fresh from the Lemonade Stand
No comments have been submitted.

