excel没有datedif函数,以及出现#NUM!错误值的原因
时间:2023-05-11 05:47:46
excel没有datedif函数,的确在“插入函数”对话框里面找不到。
Excel2007以上版本输入函数名有提示功能,但输入datedif函数也是没有的,不会提示。
其实不是excel没有datedif,只是此函数属于隐藏函数,通过函数里查找是找不到的,使用时只能直接输入。
有时使用datedif函数写公式,会出现返回错误值#NUM!,注意检查前后日期顺序是否正确。
比如下面的截图,A1单元格是出生日期,B1是当前日期,计算年龄,公式应该为:=DATEDIF(A1,B1,"y"),下图所示,写成=DATEDIF(B1,A1,"y")就会出现#NUM!错误值。
公式中的函数参数为Y,表示结果返回两个日期间隔的年数。
一句话总结,DATEDIF函数就是返回两个日期之间的年月日间隔数。
DATEDIF函数语法为:=DATEDIF(开始日期,结束日期,单位代码)
标签:datedif函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Windows 7系统下XP模式存在六大缺陷
2023-01-13 05:43:13
![](https://img.aspxhome.com/file/2023/27/a234455_0s.jpg)
Win10怎么设置path环境变量?Win10设置path环境变量的方法
2023-11-02 21:56:51
![](https://img.aspxhome.com/file/2023/26/a224571_0s.jpg)
KB5013942更新失败 Win10 KB5013942更新安装失败怎么办?
2022-02-18 07:55:22
![](https://img.aspxhome.com/file/2023/25/a218013_0s.png)
如何在Win10中对文件夹进行颜色编码
2022-04-30 04:23:12
![](https://img.aspxhome.com/file/2023/4/a311055_0s.jpg)
XP系统鼠标驱动出现问题导致点击无反应怎么办?
2022-08-24 01:17:45
![](https://img.aspxhome.com/file/2023/4/a308770_0s.jpg)
电脑不读取U盘怎么回事?Win10不识别U盘怎么办?
2022-08-29 13:06:31
![](https://img.aspxhome.com/file/2023/25/a217794_0s.png)
WPS移动版教你实现如何使用手机或平板电脑遥控播放PPT
2023-08-15 17:59:34
![](https://img.aspxhome.com/file/2023/8/a167038_0s.gif)
Win8系统屏幕变暗无法调节如何解决?
2022-08-23 17:56:39
![](https://img.aspxhome.com/file/2023/4/a305690_0s.jpg)
Win10电脑字体发虚如何变清晰?Win10电脑字体发虚变清晰方法
2022-02-28 22:07:10
![](https://img.aspxhome.com/file/2023/26/a222744_0s.png)
wps文字怎么插入批注命令图文教程
2022-01-20 13:28:22
Win10系统下QQ传输文件卡住了怎么办?
2022-03-03 02:42:15
![](https://img.aspxhome.com/file/2023/26/a224911_0s.jpg)
excel中查找功能怎么使用?查找功能详细讲解
2023-09-03 12:57:23
![](https://img.aspxhome.com/file/2023/5/41715_0s.jpg)
Win7如何清理注册表?清理注册表的方法
2023-04-22 03:15:56
![](https://img.aspxhome.com/file/2023/27/a231593_0s.jpg)
word2010怎么设置文字横竖混排
2023-11-11 13:24:35
![](https://img.aspxhome.com/file/2023/3/17233_0s.jpeg)
PicsArt怎么换衣服颜色?
2022-03-09 11:51:08
什么是数据透视表?
2022-05-24 22:19:55
![](https://img.aspxhome.com/file/2023/5/a156505_0s.jpg)
WPS怎么设置每一页打印都显示打印表头
2022-10-22 20:51:50
PPT中设置让图片飞出画面的效果的方法
2022-10-26 02:42:16
![](https://img.aspxhome.com/file/2023/10/a351076_0s.jpeg)
Mac修改用户名图文教程 如何修改MAC用户名
2023-05-20 16:15:28
![](https://img.aspxhome.com/file/2023/0/a215420_0s.jpg)
熊猫动态壁纸怎么设置微信主题 熊猫动态壁纸设置微信主题的教程
2023-10-23 20:21:01
![](https://img.aspxhome.com/file/2023/8/a335965_0s.png)