excel使用WEEKDAY函数返回星期几
时间:2023-12-03 21:21:29
使用WEEKDAY函数返回某日期为星期几。默认情况下,其值为1(星期天)到7(星期六)之间的整数。语法为:
WEEKDAY(serial_number,[return_type])
▲Serial_number必需。一个序列号,代表尝试查找的那一天的日期。应使用 DATE 函数输入日期,或者将日期作为其他公式或函数的结果输入。例如,使用函数DATE(2008,5,23)输入2008年5月23日。如果日期以文本形式输入,则会出现问题。
▲Return_type可选。用于确定返回值类型的数字。其类型对应的数值如下:
1或省略:数字1(星期日)到数字7(星期六)。
2:数字1(星期一)到数字7(星期日)。
3:数字0(星期一)到数字6(星期日)。
11:数字1(星期一)到数字7(星期日)。
12:数字1(星期二)到数字7(星期一)。
13:数字1(星期三)到数字7(星期二)。
14:数字1(星期四)到数字7(星期三)。
15:数字1(星期五)到数字7(星期四)。
16:数字1(星期六)到数字7(星期五)。
17:数字1(星期日)到7(星期六)。
提示:
●如果serial_number不在当前日期基数值范围内,则返回#NUM!错误。
●如果return_type不在上述表格中指定的范围内,则返回#NUM!错误。
示例:
=WEEKDAY("2008年2月14日"),具有数字1(星期日)到数字 7(星期六)的星期号,返回“5”
=WEEKDAY("2008年2月14日", 2),具有数字1(星期一)到数字 7(星期日)的星期号,返回“4”
=WEEKDAY("2008年2月14日", 3),具有数字0(星期一)到数字 6(星期日)的星期号,返回“3”
标签:函数,数字,星期,星期日,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
雷神911air怎么重装win11系统?
2023-01-27 01:56:46
![](https://img.aspxhome.com/file/2023/30/a269563_0s.png)
excel中vlookup函数的用法实例教程
2023-05-26 19:13:16
cad怎么算面积
2022-08-04 04:29:29
![](https://img.aspxhome.com/file/2023/9/a342871_0s.png)
电脑怎么手动触发蓝屏?电脑手动触发蓝屏的方法
2023-12-11 19:43:17
![](https://img.aspxhome.com/file/2023/6/a325027_0s.jpg)
PPT幻灯片中的图片怎么居中? ppt图片居中的教程
2022-04-30 22:51:15
![](https://img.aspxhome.com/file/2023/10/a346260_0s.jpg)
Win10 Mobile 预览版10586.11现身 升级界面曝光
2023-07-30 01:57:10
![](https://img.aspxhome.com/file/2023/28/a246411_0s.jpg)
Excel2016怎么生成随机数字
2023-09-13 18:05:53
怎么删除Win10系统挂起的更新?
2023-11-23 15:01:22
![](https://img.aspxhome.com/file/2023/0/49940_0s.jpg)
Win10如何清理C盘垃圾?
2022-10-13 13:27:12
![](https://img.aspxhome.com/file/2023/26/a222086_0s.jpg)
excel2016中如何调出开发工具
2023-01-19 20:51:05
如何禁用 Windows 10 App 推送个性化目标广告
2023-06-04 19:25:53
![](https://img.aspxhome.com/file/2023/29/a262452_0s.jpg)
Win10切换窗口出现卡顿怎么办?
2022-04-21 02:55:52
![](https://img.aspxhome.com/file/2023/1/a278845_0s.jpg)
WPS表格图表设置xy轴
2022-04-12 21:15:19
![](https://img.aspxhome.com/file/2023/6/a186886_0s.png)
WPS如何设置图片某区域为透明色
2023-11-28 23:00:18
![](https://img.aspxhome.com/file/2023/5/a163925_0s.png)
QQ群公告怎么设置?QQ群设置群公告的方法
2022-11-12 09:10:03
![](https://img.aspxhome.com/file/2023/8/a336513_0s.jpg)
excel表格怎么制作KTV房间计时提醒?
2023-02-15 12:12:13
![](https://img.aspxhome.com/file/2023/3/40113_0s.jpg)
Win10 1909怎么关闭全部无响应进程?关闭全部无响应进程方法简述
2023-09-05 17:34:15
![](https://img.aspxhome.com/file/2023/26/a224399_0s.jpg)
windows共享文件时右键不出现共享没有共享的选项
2023-01-07 11:54:42
![](https://img.aspxhome.com/file/2023/29/a255071_0s.jpeg)
win7系统蓝屏0x0000001E的修复方法
2022-11-18 00:29:27
![](https://img.aspxhome.com/file/2023/1/a275393_0s.png)
台式电脑怎么连wifi无线网络?小编教你台式电脑快速连接wifi无线网络
2023-10-07 09:51:19
![](https://img.aspxhome.com/file/2023/6/a323966_0s.png)