Note: In order to use the spreadsheet examples, you need to download Business Functions | ||||||||
IfElse (Default, Cond1, Res1, [Cond2], [Res2], [Cond3], [Res3], [Cond4], [Res4], [Cond5], [Res5], [Cond6], [Res6], [Cond7], [Res7], [Cond8], [Res8], [Cond9], [Res9], [Cond10], [Res10], [Cond11], [Res11], [Cond12], [Res12]) | ||||||||
If...ElseIf...Else | ||||||||
Performs a series of mutually exclusive If statements, returning the number corresponding to which is the first boolean condition is met, or if none, returns the default. | ||||||||
For Excel Experts | ||||||||
The usual Excel approach in these situations is to used nested IF statements, like IF(Cond1,Res1,IF(Cond2,Res2,IF(Cond3,Res3,Default))). The advantages of the Business Function are:
| ||||||||
ExampleIfElse.xls |