求根据月份和星期设置函数得到结果
各位大佬好,麻烦指引一下如何设置函数,在单元格F2输入日期后(根据月份和星期),在单元格A2得到当天食用牛奶的名称。谢谢!
详细请查阅附件。
=IF(OR(MONTH(F2)={11,12,1,2,3,4}),VLOOKUP(TEXT(WEEKDAY(F2,1),"[$-804]aaaa;@")&":",I5:J9,2,0),VLOOKUP(TEXT(WEEKDAY(F2,1),"[$-804]aaaa;@")&":",I5:L9,4,0)) =IF(F2="","",IF(SUM(N($G$2={1,7})),"",IF(SUM(N(MONTH($F$2)={11,12,1,2,3,4})),IF(SUM(N($G$2={2,4,6})),$J$5,$J$6),IF(SUM(N($G$2={2,4,6})),$L$5,$L$6)))) 合併格 A2:B2右拉C2:D2 下拉=OFFSET($H$5,MOD($G2+5,7),LOOKUP(9,(FIND("、"&MONTH($F2)&"、","、"&$J$4:$M$4&"、")>0)*{1,2,3,4})+1+INT(COLUMN(A1)/2))&"" “[$-804]aaaa”大佬,这个是代表什么? 将数字转换为星期几 学习了 感谢各位大佬!
页:
[1]