在Excel单元格中输入日期与时间的几种方法
时间:2023-10-02 11:11:56
一、插入静态的日期和时间
当前日期 选取一个单元格,并按 Ctrl+;
当前时间 选取一个单元格,并按 Ctrl+Shift+;
当前日期和时间 选取一个单元格,并按 Ctrl+;,然后按空格键,最后按 Ctrl+Shift+;
二、插入会更新的日期和时间
在单元格中输入以下函数
=TODAY() 当前日期(可变)
=NOW() 当前日期和时间(可变)
注释 NOW() 和 TODAY() 函数只有当工作表进行计算,或包含该函数的宏运行时才进行更新。它们不持续更新。所使用的日期和时间取自计算机的系统时钟。
TODAY
返回当前日期的序列号。序列号是 Microsoft Excel 日期和时间计算使用的日期-时间代码。如果在输入函数前,单元格的格式为“常规”,则结果将设为日期格式。 ( 教程 )
语法
TODAY( )
说明
Microsoft Excel 可将日期存储为可用于计算的序列号。默认情况下,1900 年 1 月 1 日的序列号是 1 而 2008 年 1 月 1 日的序列号是 39448,这是因为它距 1900 年 1 月 1 日有 39448 天。Microsoft Excel for the Macintosh 使用另外一个默认日期系统。
NOW
返回当前日期和时间所对应的序列号。如果在输入函数前,单元格的格式为“常规”,则结果将设为日期格式。
语法
NOW( )
说明
* Microsoft Excel 可将日期存储为可用于计算的序列号。默认情况下,1900 年 1 月 1 日的序列号是 1 而 2008 年 1 月 1 日的序列号是 39448,这是因为它距 1900 年 1 月 1 日有 39448 天。Microsoft Excel for the Macintosh 使用另外一个默认日期系统。
* 序列号中小数点右边的数字表示时间,左边的数字表示日期。例如,序列号 .5 表示时间为中午 12:00。
* 函数 NOW 只有在重新计算工作表,或执行含有此函数的宏时改变。它并不会随时更新。
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
爱拍剪辑怎么剪辑视频?
![](https://img.aspxhome.com/file/2023/1/a274022_0s.jpg)
round函数怎么用?
![](https://img.aspxhome.com/file/2023/1/a167941_0s.jpg)
WPS文件怎么隐藏music图标?
![](https://img.aspxhome.com/file/2023/7/a167327_0s.png)
win101909版本Explorer.EXE错误ntdll.dll模块
![](https://img.aspxhome.com/file/2023/3/a297241_0s.png)
KB4493436更新了什么_KB4493436更新内容
![](https://img.aspxhome.com/file/2023/3/a292887_0s.jpg)
PPT异形图表中怎么做出来的
![](https://img.aspxhome.com/file/2023/10/a351814_0s.png)
win7计算器怎么计算正弦余弦值?
![](https://img.aspxhome.com/file/2023/29/a260326_0s.jpg )
Excel表格怎么将分隔符号清除
在Word中加页码的三种常用方法
![](https://img.aspxhome.com/file/2023/3/30043_0s.jpg)
全民k歌如何删除评论?全民k歌删除评论的方法教程
![](https://img.aspxhome.com/file/2023/8/a332765_0s.jpg)
win10日历无法同步怎么办_ win10日历无法同步解决教程
![](https://img.aspxhome.com/file/2023/4/a310927_0s.jpg)
打印机提示该文档未能打印的原因及其解决办法
![](https://img.aspxhome.com/file/2023/3/a293885_0s.jpg)
如何利用 excel 公式条件格式 快速找到excel每行记录的最小值
![](https://img.aspxhome.com/file/2023/3/a163313_0s.jpg)
升级iOS 12.3 beta 2后还能降级吗?可降到哪些版本?
![](https://img.aspxhome.com/file/2023/5/a198045_0s.jpg)
联想miix510支持Win11吗?联想miix510是否支持Win11详细介绍
![](https://img.aspxhome.com/file/2023/27/a238255_0s.jpg)
Win7右下角没有英特尔核芯显卡设置图标怎么办
![](https://img.aspxhome.com/file/2023/26/a227893_0s.png)
Office 2016出现错误无法启动怎么办?
![](https://img.aspxhome.com/file/2023/9/16789_0s.png)
桌面图标变大了怎么还原_电脑桌面图标变大解决方法
![](https://img.aspxhome.com/file/2023/3/a297269_0s.png)
Excel合并单元格的那些事
![](https://img.aspxhome.com/file/2023/9/a154069_0s.jpg)
Win10 S与普通版Win10有什么区别?Windows10 S操作系统新特性剖析
![](https://img.aspxhome.com/file/2023/29/a260590_0s.jpg)