Excel公式:
=IF(MONTH(DATE($E$2,INT((ROW(A1)-1)/6)+1,1)-WEEKDAY(DATE($E$2,INT((ROW(A1)-1)/6)+1,1),2)+1+COLUMN(A1)-1+(ROW(A1)-INT((ROW(A1)-1)/6)*6)*7-7)=MONTH(DATE($E$2,INT((ROW(A1)-1)/6)+1,1)),DATE($E$2,INT((ROW(A1)-1)/6)+1,1)-WEEKDAY(DATE($E$2,INT((ROW(A1)-1)/6)+1,1),2)+1+COLUMN(A1)-1+(ROW(A1)-INT((ROW(A1)-1)/6)*6)*7-7,"")
gif动画演示效果教程:
将excel公式复制到excel表格中的D7单元格,通过左拉,下拉,直接生成,在E2单元格输入对应的年份即可。
|