I have the following formula and it is giving me the #NAME? error. Can anyone identify what is wrong with my formula or help me write a better one?
=IF(C37=””,””,(IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=1)),(WORKDAY((C38+2),2,Holidays!B2:F40)),IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=2)),(WORKDAY((C38+2),1,Holidays!B2:F40)),IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=3)),(WORKDAY((C38+2),2,Holidays!B2:F40)),IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=4)),(WORKDAY((C38+2),1,Holidays!B2:F40)),IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=5)),(WORKDAY((C38+2),5,Holidays!B2:F40)),IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=6)),(WORKDAY((C38+2),4,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=1)),(WORKDAY((C37+2),2,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=2)),(WORKDAY((C37+2),1,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=3)),(WORKDAY((C37+2),2,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=4)),(WORKDAY((C37+2),1,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=5)),(WORKDAY((C37+2),5,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=6)),(WORKDAY((C37+2),4,Holidays!B2:F40))))))))))))))))
Thanks in advance!
=IF(C37=””,””,(IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=1)),(WORKDAY((C38+2),2,Holidays!B2:F40)),IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=2)),(WORKDAY((C38+2),1,Holidays!B2:F40)),IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=3)),(WORKDAY((C38+2),2,Holidays!B2:F40)),IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=4)),(WORKDAY((C38+2),1,Holidays!B2:F40)),IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=5)),(WORKDAY((C38+2),5,Holidays!B2:F40)),IF(AND(C38>1,C3="Standard",(WEEKDAY(C38+2)=6)),(WORKDAY((C38+2),4,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=1)),(WORKDAY((C37+2),2,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=2)),(WORKDAY((C37+2),1,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=3)),(WORKDAY((C37+2),2,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=4)),(WORKDAY((C37+2),1,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=5)),(WORKDAY((C37+2),5,Holidays!B2:F40)),IF(AND(C38=””,C3="Standard",(WEEKDAY(C37+2)=6)),(WORKDAY((C37+2),4,Holidays!B2:F40))))))))))))))))
Thanks in advance!