Excel中的TODAY和NOW函数使用基础教程
时间:2023-07-07 01:33:40
TODAY和NOW都是Excel中与日期时间相关的函数,二者的不同之处是:
TODAY函数仅插入当前的日期,如:
=TODAY()
会在所输入的单元格中显示当前日期,如“2009/5/14”。
而NOW函数同时插入日期和时间,如:
=NOW()
单元格中显示为:“2009/5/14 16:06”
因此,当需要计算某日期距今天有多少整数天时,应使用TODAY函数。例如今天为2009年5月14日,计算上海世博会距今有多少天:
=DATE(2010,5,1)-TODAY()
公式返回352天。如果用NOW函数:
=DATE(2010,5,1)-NOW()
公式运算结果为:351.3077263
二者的共同点是:利用这两个函数所输入的日期或时间是可以更新的,当重新打开工作簿或重新计算工作表,如按F9键时,会更新为当前最新的日期或时间。
如果要获得静态的当前日期或时间,可以使用快捷键。
插入当前日期:Ctrl+;
插入当前时间:Ctrl+Shift+;
还可以使用复制粘贴的方法获取静态时间,方法是:
1.在单元格中输入:
=NOW()
获得当前日期和时间。
2.选择该单元格,复制。
3.鼠标右击该单元格,在弹出的快捷菜单中选择“选择性粘贴”,在“选择性粘贴”对话框中选择“数值”,单击“确定”。
4.设置该单元格为日期或时间格式。
标签:函数,单元格,日期,时间,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何使用 Excel 管理事务优先级
2022-03-11 09:43:56
![](https://img.aspxhome.com/file/2023/7/a141877_0s.jpg)
Win10 21H1无限重启怎么办 Win10 21H1无限重启的解决方法
2022-05-07 00:31:48
![](https://img.aspxhome.com/file/2023/26/a221621_0s.jpg)
u盘怎么做开机锁,详细教您如何制作
2022-02-21 05:12:23
![](https://img.aspxhome.com/file/2023/4/a309167_0s.png)
Win10专业版安装英伟达显卡驱动失败怎么办
2023-11-16 06:07:53
![](https://img.aspxhome.com/file/2023/1/49591_0s.png)
Win10电脑出现橙屏卡死怎么办?Win10橙屏卡死的解决方法
2022-04-04 08:22:45
如何禁用Win10的资讯和兴趣功能?禁用Win10的资讯和兴趣功能
2023-03-28 21:44:04
![](https://img.aspxhome.com/file/2023/1/a276525_0s.jpg)
Word批注框文字很小看是不全该怎么办?
2022-11-15 02:47:20
![](https://img.aspxhome.com/file/2023/1/22891_0s.png)
微信电脑上登录不了怎么回事?
2023-08-23 00:43:02
![](https://img.aspxhome.com/file/2023/7/a327752_0s.png)
电脑系统总提示windows检测到一个硬盘硬件问题的解决方法
2023-07-14 01:21:13
![](https://img.aspxhome.com/file/2023/3/a298723_0s.jpg)
WPS表格怎么使用SUMIF公式求和?
2022-07-24 02:19:51
![](https://img.aspxhome.com/file/2023/3/a170793_0s.png)
安装Win11一定要用U盘吗?不用U盘安装Win11系统的方法
2022-04-28 10:55:41
![](https://img.aspxhome.com/file/2023/27/a234793_0s.png)
Win11系统分区怎么操作 Win11系统硬盘分区方法教程
2022-08-10 16:50:42
![](https://img.aspxhome.com/file/2023/27/a236178_0s.png)
为什么Win10应用商店下载的游戏安装不了?
2022-10-11 18:24:57
![](https://img.aspxhome.com/file/2023/25/a218373_0s.jpg)
Win11资源管理器一直重启如何解决?三种有效方法介绍
2022-09-08 04:29:02
![](https://img.aspxhome.com/file/2023/27/a235900_0s.jpg)
理工试卷编辑让人头大——MathType借你洪荒之力!
2023-05-09 17:24:09
![](https://img.aspxhome.com/file/2023/3/a211673_0s.jpeg)
360文件恢复教程
2023-05-09 20:21:16
![](https://img.aspxhome.com/file/2023/1/a273619_0s.jpg)
win10怎么快速截屏?
2022-11-29 01:38:02
![](https://img.aspxhome.com/file/2023/1/a278087_0s.jpg)
Win10通过BIOS禁用集成显卡的方法?
2023-10-24 20:35:30
![](https://img.aspxhome.com/file/2023/3/a299346_0s.jpg)
Word文档中怎么将拼音加到字体的右边?
2022-12-29 15:28:17
![](https://img.aspxhome.com/file/2023/2/26912_0s.jpg)
win8.1 32位下无线网卡驱动装不上的解决方法
2023-07-12 20:25:13
![](https://img.aspxhome.com/file/2023/2/a288232_0s.jpg)