WPS Excel 中如何计算两个日期和时间的间隔
时间:2023-10-06 16:26:23
相信很多人计算时,不止是用计算器帮忙,很多时候Excel表格来计算是更简便的事。今天跟大家分享的就是Excel 中如何计算两个日期和时间间隔。
在excel中,两个日期直接相减就可以得到两个日期间隔的天数,如下图【B2】与【A2】之间的时间差只需要在【C3】中输入=B2-A2就得出了在职时间的天数。
或者输入天数间隔差函数=DATEDIF(A2,B2,”d”),也可得到在职时间的天数。
在职时间如果想用月数来表示,输入函数=DATEDIF(A2,B2,”m”)即可。
输入函数=DATEDIF(A2,B2,”y”),在职时间用就是用年数来表示了。
同理,两个时间直接相减就可以得到两个时间间隔,如下图所示:
时间间隔注意设置下单元格格式设置时间表示格式。
总结,用Excel 来计算两个日期和时间间隔比计算器简单很多。
WPS Excel 中如何计算两个日期和时间的间隔的下载地址:
标签:WPS,Excel,中,如何,计算,两个,日期,和,时,间的
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何用PPT绘制时钟表面刻度?
2022-07-28 11:48:20
![](https://img.aspxhome.com/file/2023/10/a352850_0s.jpg)
IE浏览器收藏夹中链接文件夹无法删除的解决方法
2023-06-13 18:35:41
![](https://img.aspxhome.com/file/2023/3/a299369_0s.jpg)
免费送福利秒杀得李子柒食品!qq音乐积分秒杀物品的方法
2022-11-16 06:23:46
![](https://img.aspxhome.com/file/2023/7/a329326_0s.jpg)
Win10安装KB3122947更新失败错误代码0x80070643
2022-01-17 05:35:58
![](https://img.aspxhome.com/file/2023/30/a263460_0s.png)
如何在wps表中设置数据对齐
2022-11-24 10:26:28
![](https://img.aspxhome.com/file/2023/1/a170461_0s.jpg)
Word段落设置首行缩进的方法
2023-04-04 22:07:47
鼠标乱动怎么办 电脑鼠标总是跳动的解决方法
2023-06-28 08:40:22
![](https://img.aspxhome.com/file/2023/3/a292546_0s.jpg)
网易云跟帖宣布2017年8月1日停止服务
2023-12-16 15:44:44
![](https://img.aspxhome.com/file/2023/4/a306533_0s.jpg)
神舟战神Z9笔记本如何重装系统win10?石大师一键重装系统教程
2022-05-03 05:36:19
![](https://img.aspxhome.com/file/2023/30/a270494_0s.png)
雷神911星战2022如何重装系统?雷神911笔记本重装系统教程
2022-11-04 22:52:22
![](https://img.aspxhome.com/file/2023/27/a234652_0s.png)
115怎么找资源的?115去哪里可以找到资源?
2023-07-27 21:18:33
![](https://img.aspxhome.com/file/2023/30/a265272_0s.png)
Windows10投影不能全屏 Win10投影仪怎么铺满全屏
2022-12-27 20:46:34
![](https://img.aspxhome.com/file/2023/25/a218105_0s.jpg)
win10系统玩荒野大镖客2间歇性卡顿怎么解决?
2023-07-28 18:14:31
![](https://img.aspxhome.com/file/2023/30/a267641_0s.jpg)
win7升级win10后设置打不开显示个性化出错怎么办?
2023-04-22 11:11:06
![](https://img.aspxhome.com/file/2023/29/a261236_0s.jpg)
KB5006746无法安装提示0x8007000d怎么办??
2022-11-25 15:03:10
![](https://img.aspxhome.com/file/2023/27/a237321_0s.png)
系统之家一键重装win11教程
2023-02-03 21:34:20
![](https://img.aspxhome.com/file/2023/1/a275233_0s.png)
如何利用Excel的 ZTEST函数 计算z检验的单尾概率值
2023-07-08 19:55:58
![](https://img.aspxhome.com/file/2023/3/a161433_0s.jpg)
word2007中怎么设置首字下沉
2023-11-22 07:27:02
![](https://img.aspxhome.com/file/2023/6/18106_0s.jpg)
Win10设置任务栏位置图标以保护我们的隐私
2022-11-17 02:58:36
![](https://img.aspxhome.com/file/2023/28/a249497_0s.jpg)
Win7旗舰版系统删除文件垃圾时不可遗漏清理的位置有哪些?
2022-12-26 09:54:29
![](https://img.aspxhome.com/file/2023/27/a229554_0s.jpg)