Hi Folks,
I'm having a problem with a formula that has a series of "Nested IF" functions in it. Everything works fine, UNTIL I add the LAST "IF" function, then Excel 2003 returns, "The formula you typed contains an error" and highlights the second "AND" in the formula.
Here's the formula in its entirety:
=IF(OR(AK3>=1.6,AND(AG3>=1.6,AI3=0)),1,IF(AND(AG3>=1.6,AI3>=1.6),1,IF(AND(AE3=1,AG3>=1.6),1,IF(AND(AG3=0,AI3>=1.6),2,IF(AND(AK3>=1.3,AK3<=1.59),3,IF(AND(AI3=0,AND(AG3>=1.3,AG3<=1.59)),3,IF(AND(AG3=0,AND(AI3>=1.3,AI3<=1.59)),4,"N/A")))))))
Here it is again in a more user-friendly viewing format:
=IF(OR(AK3>=1.6,AND(AG3>=1.6,AI3=0)),1,
IF(AND(AG3>=1.6,AI3>=1.6),1,
IF(AND(AE3=1,AG3>=1.6),1,
IF(AND(AG3=0,AI3>=1.6),2,
IF(AND(AK3>=1.3,AK3<=1.59),3,
IF(AND(AI3=0,AND(AG3>=1.3,AG3<=1.59)),3, <--- works fine to here
IF(AND(AG3=0,AND(AI3>=1.3,AI3<=1.59)),4,"N/A" <--- causes error
)))))))
The outcome is just a table that, in the far left column, RANKS (from 1 to 4) the data in the cells to the right.
Any help would be most appreciated. I'd attach a "TEST" spreadsheet I've been working with to make this easier, but didn't see a way to do that here?
Thanks in advance!
I'm having a problem with a formula that has a series of "Nested IF" functions in it. Everything works fine, UNTIL I add the LAST "IF" function, then Excel 2003 returns, "The formula you typed contains an error" and highlights the second "AND" in the formula.
Here's the formula in its entirety:
=IF(OR(AK3>=1.6,AND(AG3>=1.6,AI3=0)),1,IF(AND(AG3>=1.6,AI3>=1.6),1,IF(AND(AE3=1,AG3>=1.6),1,IF(AND(AG3=0,AI3>=1.6),2,IF(AND(AK3>=1.3,AK3<=1.59),3,IF(AND(AI3=0,AND(AG3>=1.3,AG3<=1.59)),3,IF(AND(AG3=0,AND(AI3>=1.3,AI3<=1.59)),4,"N/A")))))))
Here it is again in a more user-friendly viewing format:
=IF(OR(AK3>=1.6,AND(AG3>=1.6,AI3=0)),1,
IF(AND(AG3>=1.6,AI3>=1.6),1,
IF(AND(AE3=1,AG3>=1.6),1,
IF(AND(AG3=0,AI3>=1.6),2,
IF(AND(AK3>=1.3,AK3<=1.59),3,
IF(AND(AI3=0,AND(AG3>=1.3,AG3<=1.59)),3, <--- works fine to here
IF(AND(AG3=0,AND(AI3>=1.3,AI3<=1.59)),4,"N/A" <--- causes error
)))))))
The outcome is just a table that, in the far left column, RANKS (from 1 to 4) the data in the cells to the right.
Any help would be most appreciated. I'd attach a "TEST" spreadsheet I've been working with to make this easier, but didn't see a way to do that here?
Thanks in advance!