I have a nested function:
I get an error whenever I try and save it saying "The Formula you typed contains an error".
However if I remove that last IF statement it works. Anyone know of a either an alternative to this statement or how to get the whole function to fit and work?
Code:
=IF(AND(NOT(ISERR(FIND("CH",K2))),MONTH(B2)=3),S2+Spread!E$12,IF(AND(NOT(ISERR(FIND("CK",K2))),MONTH(B2)=5),S2+Spread!E$13,IF(AND(NOT(ISERR(FIND("CN",K2))),MONTH(B2)=7),S2+Spread!E$14,IF(AND(NOT(ISERR(FIND("CU",K2))),MONTH(B2)=9),S2+Spread!E$15, IF(AND(NOT(ISERR(FIND("CZ",K2))),MONTH(B2)=12),S2+Spread!E$16, S2)))))
I get an error whenever I try and save it saying "The Formula you typed contains an error".
However if I remove that last IF statement it works. Anyone know of a either an alternative to this statement or how to get the whole function to fit and work?