跳到主要内容

如何将当前的日期,月份或年份插入Excel中的单元格?

如果要在Excel中快速插入当前月份或当前日期,该如何插入? 下面的方法将帮助您快速将当前月份或日期插入到单元格或工作表的页眉/页脚中。


在Excel中通过公式和热键插入当前年,月或日

在Excel中,您可以轻松插入带有公式的当前年,月,日和时间戳。

以插入当前月份为例,请输入公式 = MONTH(TODAY()) 在要插入当前月份的单元格中,然后按 输入.

  公式  公式返回
插入当前月份 = MONTH(TODAY()) 8
插入当前月份 = TEXT(TODAY(),“ MMMM”) 八月
插入当前年份 = YEAR(TODAY()) 2015
插入当前日期 = TODAY() 2015/8/20
插入当前日期和时间 =现在() 2015/8/20 9:41

热键还可以帮助您轻松插入当前日期和时间:

(1)按 CTRL +; 插入当前日期的键。

(2)按 CTRL +; 首先插入当前日期并释放键,然后按 太空 按钮插入一个空格,最后按下 CTRL + SHIFT +; 插入当前时间。

注意丝带 公式太难记了吗? 将公式另存为自动文本条目,以供日后再次使用!
阅读全文...     免费试用

插入具有特殊日期格式的当前年,月或日

如果你有 Kutools for Excel 安装,其 插入日期 实用程序可以帮助您在Excel中单击几下,以各种日期格式快速插入当前月份或日期。

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

安装 Kutools for Excel 后,请执行以下步骤:

1。 选择要插入当前年,月或日的单元格,然后单击 库工具 > 插页 > 插入日期,请参见屏幕截图:

2。 在 插入日期 对话框中,检查 使用格式 选项,然后双击右窗格中的日期格式。 参见上面的截图:

现在,以指定的日期格式将当前日期插入活动单元格。

备注:默认情况下,在“插入日期”对话框的日历中选择当前日期。 如果需要插入其他日期,则需要首先在日历中选择日期。

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


使用 Kutools for Excel 在单元格/页眉/页脚中插入当前日期和时间

如果您安装了 Kutools for Excel, 插入工作簿信息 实用程序使您可以轻松地将当前日期和时间插入单元格/页眉/页脚中。 请执行以下操作:

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

1。 点击 Kutools Plus>工作簿 > 插入工作簿信息.

2。 在打开的“插入工作簿信息”对话框中,选中 当前日期和时间 选项,在 插入于 部分指定职位,然后点击 Ok 按钮。 参见上面的截图:

然后,将当前日期和时间立即插入到指定的单元格,页眉或页脚中。

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


演示:将当前日期,月份或年份插入Excel中的单元格/页眉/页脚


Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 30 天免费试用,没有任何功能限制。 立即下载!

相关文章:

快速插入具有特定日期格式的当前日期

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (27)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
In EXCEL 365, I want to insert the month based on cell A2 along with a text string in the header.
This comment was minimized by the moderator on the site
Hi Larry,
Do you want to extract the month name from Cell A2 which is filled with date and text string? Or extract month name from Cell A2 and output the month nae and text string together?
This comment was minimized by the moderator on the site
I want to insert the month based on cell A2 along with a text string.
This comment was minimized by the moderator on the site
=TEXT(MONTH(TODAY()),"mmmm") gives me January, although it is now February. What is wrong with this formula?
This comment was minimized by the moderator on the site
Take MONTH out of the formula:
=TEXT(TODAY(),"MMMM")
This comment was minimized by the moderator on the site
how to get current month only in header/footer
This comment was minimized by the moderator on the site
No normal ways can get current month in header or footer in Excel. But VBA can:

Sub add_date_header()
ActiveSheet.PageSetup.CenterHeader = Format(Date, "mmmm")
End Sub
This comment was minimized by the moderator on the site
Hi all, I need a formula to COUNT all the records from previous months and years from a single column source. Can someone please help me for this?
For Example, I have dates in A column, but I want to get the COUNT not sum, of the only dates which are from previous month or year.
This comment was minimized by the moderator on the site
Hi,
The topic of this article is about inserting the current date, month, or year.
This comment was minimized by the moderator on the site
HOW DO I GET THE PREVIOUS MONTH AND YEAR IN THE SAME CELL
This comment was minimized by the moderator on the site
Hi,
=YEAR(TODAY())&"/"&(MONTH(TODAY())-1)

This formula will return year and previous month in the formatting of “2017/8”
This comment was minimized by the moderator on the site
how do I get Current Month and Year in the same cell =TEXT(TODAY(),"MMMM") August =YEAR(TODAY()) So using the Above how would I get December, 2016 format?
This comment was minimized by the moderator on the site
=+TEXT(TODAY(),"mmm")&"-"&(YEAR(TODAY()))
This comment was minimized by the moderator on the site
=CONCATENATE(TEXT(TODAY()," MMMM"), ", ", YEAR(TODAY()))
This comment was minimized by the moderator on the site
Instead you can simply
=TEXT(TODAY(),"MMM,YYYY")
This comment was minimized by the moderator on the site
thanks a lot..this formula works exactly what we need
This comment was minimized by the moderator on the site
This formula worked great, but one question how would I adjust this formula to show the previous month and year instead of the current month and year.=CONCATENATE(TEXT(TODAY()," MMMM"), ", ", YEAR(TODAY()))
This comment was minimized by the moderator on the site
#1: Check your machine date #2: check =TODAY()
This comment was minimized by the moderator on the site
[quote]#1: Check your machine date #2: check =TODAY()By Jayadev BS[/quote] ^^ this returns the correct date but I still have the issue with =year(today()) it returns a full date but in 1905 (eg. 07/08/1905)
This comment was minimized by the moderator on the site
year(today()) formula return a date in 1905... Send Help!
This comment was minimized by the moderator on the site
I am trying to use this function to return values for projected month sales. I have tried to use this formula to return a value for two months past the current month but it is only returning the value for Dec when Nov is the current month rather than January. Can somebody please help? =VLOOKUP(MONTH(current_date+2),MA_Prod_Forecasting,5)
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations