教育行业有很强的周期性,故日历形式的课表非常普遍,今天就科普一种动态日历课表的方法。
先看效果:
![](https://img.haomeiwen.com/i4025900/a7dcb487bb831db9.gif)
1. 工具
excel或者wps,这里用wps示范
2. 新建名称
公式-名称管理器
![](https://img.haomeiwen.com/i4025900/4d5cfd8680230cfa.jpg)
点击新建按钮新建如下名称:共有8个
![](https://img.haomeiwen.com/i4025900/185b51f09aa0e041.jpg)
2.1 名称:Calendar1Month 引用位置:=日历!1
![](https://img.haomeiwen.com/i4025900/66c8955e64d29046.jpg)
2.2 名称:Calendar1MonthOption 引用位置:MATCH(Calendar1Month,月,0)
![](https://img.haomeiwen.com/i4025900/1bda1b9b30530dba.jpg)
2.3 名称:Calendar1Year 引用位置:=日历!1
![](https://img.haomeiwen.com/i4025900/292dd7ca6f2cdb87.jpg)
2.4 名称:WeekdayOption 引用位置:=MATCH(WeekStart,工作日,0)+10
![](https://img.haomeiwen.com/i4025900/559cb0ccc9ed0b92.jpg)
2.5 名称:WeekStart 引用位置:=日历!2
![](https://img.haomeiwen.com/i4025900/c867035f2d9807ea.jpg)
2.6 名称:工作日 引用位置:={"星期一","星期二","星期三","星期四","星期五","星期六","星期日"}
![](https://img.haomeiwen.com/i4025900/2fb865d1ad6ed842.png)
2.7 名称:日 引用位置:={0,1,2,3,4,5,6}
![](https://img.haomeiwen.com/i4025900/28aeae7206a7bd17.png)
2.8 名称:月 引用位置:={"1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"}
![](https://img.haomeiwen.com/i4025900/4caf51e010655143.png)
3. 建立excel表格
3.1 B1单元格写入年份
3.2 选中C1单元格-数据-插入下拉列表-添加1月到12月
![](https://img.haomeiwen.com/i4025900/f91f49cc01c024d1.png)
效果如下:
![](https://img.haomeiwen.com/i4025900/b2cf8b5c6ca92ed0.png)
3.3 同3.2方法在B2单元格建立下拉菜单星期一,星期二...星期日
![](https://img.haomeiwen.com/i4025900/cfc1166bba62af78.png)
3.4 C2单元格录入公式 =UPPER(TEXT(C3,"aaaa"))
并拉动公式到H2
3.5
选中B3到H3
录入公式=日+1+DATE(Calendar1Year,Calendar1MonthOption,1)-WEEKDAY(DATE(Calendar1Year,Calendar1MonthOption,1),WeekdayOption)
同时点击ctrl+shift+enter
生成数组公式
选中B10到H10
录入公式=日+8+DATE(Calendar1Year,Calendar1MonthOption,1)-WEEKDAY(DATE(Calendar1Year,Calendar1MonthOption,1),WeekdayOption)
同时点击ctrl+shift+enter
生成数组公式
选中B17到H17
录入公式=日+15+DATE(Calendar1Year,Calendar1MonthOption,1)-WEEKDAY(DATE(Calendar1Year,Calendar1MonthOption,1),WeekdayOption)
同时点击ctrl+shift+enter
生成数组公式
选中B24到H24
录入公式=日+22+DATE(Calendar1Year,Calendar1MonthOption,1)-WEEKDAY(DATE(Calendar1Year,Calendar1MonthOption,1),WeekdayOption)
同时点击ctrl+shift+enter
生成数组公式
选中B31到H31
录入公式=日+29+DATE(Calendar1Year,Calendar1MonthOption,1)-WEEKDAY(DATE(Calendar1Year,Calendar1MonthOption,1),WeekdayOption)
同时点击ctrl+shift+enter
生成数组公式
如有需要以此类推将后面的日期补充上,可以显示更多日期
3.6 将工作表名称改为日历
4. 美化工作表
年月:B1,C1单元格微软雅黑,字体12号,加粗
星期:B2到H2 设置微软雅黑,字体11号,加粗,填充颜色随个人喜好
日期:幼圆,11号,加粗
其他:幼圆,8号,常规字体
调整行间距到舒适为止
以上
网友评论