This is the formula I have so far...
=ROUND(IF(B4="",0,IF(AND(F4>=22,F4<49),1,IF(AND(F4>=49,F4<77),2,IF(AND(F4>=77,F4<105),3,IF(AND(F4>=105,F4<133),4,IF(AND(F4>=133,F4<161),5,F4/28)))))),0)
The formula I have above works fine, except when I try to add another =if(and( statement, I get an error message because I think I have too many And statements. I need to add 7 more statement for the remainder of the months in a year, 6 - 12.
Any idea on how I can fix this? Thanks
=ROUND(IF(B4="",0,IF(AND(F4>=22,F4<49),1,IF(AND(F4>=49,F4<77),2,IF(AND(F4>=77,F4<105),3,IF(AND(F4>=105,F4<133),4,IF(AND(F4>=133,F4<161),5,F4/28)))))),0)
The formula I have above works fine, except when I try to add another =if(and( statement, I get an error message because I think I have too many And statements. I need to add 7 more statement for the remainder of the months in a year, 6 - 12.
Any idea on how I can fix this? Thanks