Hello all,
I'm trying to write a nested if formula for a decision rule. It combines two or three variables, and on the basis of the the combined values for each, a decision rule is generated. There are 7 conditions (which I believe nested if can handle). When I type in the formula, it works up the three conditions, then it stops. Here are the formulas I'm trying to combine:
1. =IF((F101>5)*(F40>7)*(E53>0),"Poor Prognosis: Discharge Recommended",
2. IF((F101>5)*(F40>7)*(E53=0),"Poor Prognosis: Noninvasive Tx recommended",
3. IF((F101<6)*(F40>7),”Fair Prognosis: Motivation/Compliance Measures Recommended”,
4. if((f101<6)*(f40<8)*(E53=1),”Fair Prognosis: Motivation/Compliance Measures Recommmended”,
5. if(F101<6)*(F40<8)*(F53=0),”Good Prognosis: Post OP Psych Consult Recommended",
6. IF(f101>5)*(f40<8), “Good Prognosis: Post OP Psych Consult Recommended”,
7. if(f40<4),”Good Prognosis: Proceed with Surgery”,
I've stringed them all together in a nested if statement, and It doesn't work. Also notice that some conditions require values for all three variables, some from two, and one condition from only one variable.
I'd appreciate any help you can give me,
Thanks!
Dan
I'm trying to write a nested if formula for a decision rule. It combines two or three variables, and on the basis of the the combined values for each, a decision rule is generated. There are 7 conditions (which I believe nested if can handle). When I type in the formula, it works up the three conditions, then it stops. Here are the formulas I'm trying to combine:
1. =IF((F101>5)*(F40>7)*(E53>0),"Poor Prognosis: Discharge Recommended",
2. IF((F101>5)*(F40>7)*(E53=0),"Poor Prognosis: Noninvasive Tx recommended",
3. IF((F101<6)*(F40>7),”Fair Prognosis: Motivation/Compliance Measures Recommended”,
4. if((f101<6)*(f40<8)*(E53=1),”Fair Prognosis: Motivation/Compliance Measures Recommmended”,
5. if(F101<6)*(F40<8)*(F53=0),”Good Prognosis: Post OP Psych Consult Recommended",
6. IF(f101>5)*(f40<8), “Good Prognosis: Post OP Psych Consult Recommended”,
7. if(f40<4),”Good Prognosis: Proceed with Surgery”,
I've stringed them all together in a nested if statement, and It doesn't work. Also notice that some conditions require values for all three variables, some from two, and one condition from only one variable.
I'd appreciate any help you can give me,
Thanks!
Dan