如何应用Excel函数计算日期间隔
时间:2022-04-08 15:22:06
如下图所示,以下公式返回两日期间的指定间隔。
=DATEDIF("2001/1/1","2003/1/1","y")
结果等于2,即时间段中有两个整年。
=DATEDIF("2001/6/1","2002/8/15","d")
结果等于440,即在2001年6月1日和2002年8月15日之间有440天。
=DATEDIF("2001/6/1","2002/8/15","yd")
结果等于75,即在6月1日与8月15日之间有75天,忽略日期中的年。
=DATEDIF("2001/6/1","2002/8/15","md")
结果等于14,即开始日期1和结束日期15之间的差,忽略日期中的年和月。
标签:函数,即在,日期,等于,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
word中如何创建空白文档和空白电子邮件文档
2023-04-12 17:08:00
![](https://img.aspxhome.com/file/2023/1/33081_0s.jpg)
excel如何设置工作表标签颜色
2023-08-25 19:11:07
![](https://img.aspxhome.com/file/2023/3/a154923_0s.png)
Excel表格怎么制作工资条
2022-05-09 20:05:58
excel 2013的数据有效性在哪
2022-12-20 23:40:24
![](https://img.aspxhome.com/file/2023/8/a154638_0s.jpg)
excel绘制图表的教程
2023-08-31 17:27:51
win10局域网无法访问怎么处理
2023-07-18 15:32:59
![](https://img.aspxhome.com/file/2023/1/46501_0s.png)
限制Excel单元格中允许输入的字符个数的方法
2022-08-03 14:21:13
Word2007设置行高和列宽的两种方法
2022-12-09 15:53:59
如何美化Dock栏上的Office文件夹图标?
2023-07-29 17:31:57
![](https://img.aspxhome.com/file/2023/9/15249_0s.jpg)
将word嵌入excel的方法
2023-12-06 15:12:09
![](https://img.aspxhome.com/file/2023/8/19478_0s.png)
如何去掉Word页眉下横线
2023-08-29 08:56:20
word怎么绘制飘扬的五星红旗图形?
2023-04-27 14:01:50
![](https://img.aspxhome.com/file/2023/1/22871_0s.png)
Excel中怎么在文字前后批量添加内容
2022-07-15 03:02:20
![](https://img.aspxhome.com/file/2023/5/a153385_0s.jpg)
怎样把数据挖掘应用到工作中
2022-08-06 07:25:16
wps2016打开word2007文档出现乱码怎么办?
2023-11-11 15:05:14
![](https://img.aspxhome.com/file/2023/6/17806_0s.jpg)
excel如何将表格数据图形化?
2023-01-07 09:48:06
![](https://img.aspxhome.com/file/2023/3/a141653_0s.jpg)
word把一列数据保留两位小数方法介绍
2023-04-24 20:30:16
![](https://img.aspxhome.com/file/2023/3/25333_0s.jpg)
excel2003分列与合并的技巧
2022-08-31 12:56:58
如何用Word制作常用公文
2023-11-28 16:33:01
WIN7怎么升级到WIN10系统版本?WIN7升级到WIN10系统教程
2023-11-08 18:05:32
![](https://img.aspxhome.com/file/2023/7/48047_0s.png)