Excel函数:DATEDIF函数
时间:2022-03-11 05:19:59
函数名称:DATEDIF
主要功能:计算返回两个日期参数的差值。
使用格式:=DATEDIF(date1,date2,”y”)、=DATEDIF(date1,date2,”m”)、=DATEDIF(date1,date2,”d”)
参数说明:date1代表前面一个日期,date2代表后面一个日期;y(m、d)要求返回两个日期相差的年(月、天)数。
应用举例:在C23单元格中输入公式:=DATEDIF(A23,TODAY(),”y”),确认后返回系统当前日期[用TODAY()表示)与A23单元格中日期的差值,并返回相差的年数。
特别提醒:这是Excel中的一个隐藏函数,在函数向导中是找不到的,可以直接输入使用,对于计算年龄、工龄等非常有效。
标签:DATEDIF函数,Excel函数,电子函数,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
加单位无法使用公式的时候该怎么操作?
2023-01-09 01:55:02
![](https://img.aspxhome.com/file/2023/8/54958_0s.gif)
word 2013常用快捷键大全
2023-10-30 21:46:34
![](https://img.aspxhome.com/file/2023/7/32887_0s.jpg)
Win10 KB5006670累积更新无法安装的解决方法
2022-07-21 22:58:05
![](https://img.aspxhome.com/file/2023/2/53072_0s.jpg)
Word文档中快速插入分隔线的技巧
2023-01-04 11:56:53
![](https://img.aspxhome.com/file/2023/3/21893_0s.jpg)
如何在Excel中快速查看选择区域的大小
2023-01-30 17:40:15
Excel中怎样求平均值?Excel中求平均值的方法
2023-02-24 20:16:42
![](https://img.aspxhome.com/file/2023/0/a153620_0s.jpg)
Word 方便快捷批处理成绩报告单
2023-05-12 18:35:29
![](https://img.aspxhome.com/file/2023/5/30225_0s.jpg)
Excel怎么筛选显示后5名
2023-11-01 06:04:17
![](https://img.aspxhome.com/file/2023/5/a153915_0s.png)
excel中两列数据交换的教程
2023-11-01 03:55:56
怎样在Excel 2013中将英文名首字快速转为大写形式
2022-10-17 18:58:17
![](https://img.aspxhome.com/file/2023/2/38092_0s.png)
Word中简单一步建立Excel表格
2023-07-05 21:36:18
![](https://img.aspxhome.com/file/2023/6/22276_0s.gif)
word文档按空格键会删掉后面的字符怎么办
2022-03-24 18:33:36
![](https://img.aspxhome.com/file/2023/8/35038_0s.png)
如何使用Word2013导航窗格查找内容
2023-11-28 23:08:30
![](https://img.aspxhome.com/file/2023/8/18458_0s.jpg)
删除word第一页页眉的技巧
2023-07-10 09:20:57
Word禁止自动宏的运行
2023-12-05 20:08:55
excel五角星怎么打? excel中画五角星的教程
2022-04-17 01:06:35
![](https://img.aspxhome.com/file/2023/0/41440_0s.jpg)
excel中制作选择框的教程
2022-12-28 09:17:06
excel设置密码的方法图解步骤
2023-06-11 19:58:22
如何调整excel图表的网格线密度
2022-06-19 14:45:46
![](https://img.aspxhome.com/file/2023/1/a155701_0s.png)
win10系统提示缺少一个或者多个网络协议如何修复?
2023-09-02 13:29:56
![](https://img.aspxhome.com/file/2023/8/46988_0s.jpg)