|
=IF(TEXT(C2,"yyyy-mm-dd")=solar(YEAR(C2)&"-01-01"),YEAR(C2)&"春节排班表",IF(C2=DATE(YEAR(C2),1,1),YEAR(C2)&"元旦排班表",IF(OR(C2=DATE(YEAR(C2),4,4),C2=DATE(YEAR(C2),4,5)),YEAR(C2)&"清明排班表",IF(C2=DATE(YEAR(C2),5,1),YEAR(C2)&"劳动节排班表",IF(TEXT(C2,"yyyy-mm-dd")=solar(YEAR(C2)&"-05-05"),YEAR(C2)&"端午节排班表",IF(TEXT(C2,"yyyy-mm-dd")=solar(YEAR(C2)&"-05-15"),YEAR(C2)&"中秋节排班表",,""))))))
判断c2日期,输入结果。之前都能正确执行,但到这儿就会跳出:你已为此函数输入了太多个参数 |
|