3个回答
展开全部
公式如下
=IF(LEN(A2)=18,CHOOSE(MATCH(TRUE,MID(A2,11,2)&"月"&MID(A2,13,2)&"日">={"12月22日","11月22日","10月23日","09月23日","08月23日","07月23日","06月22日","05月21日","04月21日","03月21日","02月19日","01月20日"},),"摩羯座","射手座","天蝎座","天秤座","处女座","狮子座","巨蟹座","双子座","金牛座","白羊座","双鱼座","水瓶座"),CHOOSE(MATCH(TRUE,MID(A2,9,2)&"月"&MID(A2,11,2)&"日">={"12月22日","11月22日","10月23日","09月23日","08月23日","07月23日","06月22日","05月21日","04月21日","03月21日","02月19日","01月20日"},),"摩羯座","射手座","天蝎座","天秤座","处女座","狮子座","巨蟹座","双子座","金牛座","白羊座","双鱼座","水瓶座"))
=IF(LEN(A2)=18,CHOOSE(MATCH(TRUE,MID(A2,11,2)&"月"&MID(A2,13,2)&"日">={"12月22日","11月22日","10月23日","09月23日","08月23日","07月23日","06月22日","05月21日","04月21日","03月21日","02月19日","01月20日"},),"摩羯座","射手座","天蝎座","天秤座","处女座","狮子座","巨蟹座","双子座","金牛座","白羊座","双鱼座","水瓶座"),CHOOSE(MATCH(TRUE,MID(A2,9,2)&"月"&MID(A2,11,2)&"日">={"12月22日","11月22日","10月23日","09月23日","08月23日","07月23日","06月22日","05月21日","04月21日","03月21日","02月19日","01月20日"},),"摩羯座","射手座","天蝎座","天秤座","处女座","狮子座","巨蟹座","双子座","金牛座","白羊座","双鱼座","水瓶座"))
更多追问追答
追问
好复杂哦,能告诉我这是什么函数么,我自学下
追答
不好意思,没法教,这里涉及了多个函数
IF、LEN、CHOOSE、MATCH、TRUE、MID
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询