提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

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

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

按公式和热键插入当前年份,月份或日期

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

在单元格/页眉/页脚中插入当前日期和时间

双击将当前日期的星期几/星期几/月/年插入活动单元格

Office选项卡在Office中启用选项卡式编辑和浏览,使您的工作更轻松......
Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%
  • 重用任何东西: 将最常用或最复杂的公式,图表和其他任何内容添加到您的收藏夹中,并在将来快速重复使用它们。
  • 超过20文本功能: 从文本字符串中提取数字; 提取或删除部分文字; 将数字和货币转换为英文单词。
  • 合并工具:将多个工作簿和工作表合二为一; 合并多个单元格/行/列,而不会丢失数据; 合并重复的行和总和。
  • 拆分工具:根据价值将数据分割成多个工作表; 一本工作簿可转换为多个Excel,PDF或CSV文件; 一列到多列。
  • 粘贴跳过 隐藏/过滤行; 数和总和 按背景颜色; 将个性化电子邮件批量发送给多个收件人。
  • 超级过滤器: 创建高级过滤方案并应用于任何工作表; 排序 按周,日,频率等; 筛选 通过大胆,公式,评论......
  • 超过300强大的功能; 与Office 2007-2019和365一起使用; 支持所有语言; 在您的企业或组织中轻松部署。

箭头蓝色右泡 通过公式和热键在Excel中插入当前的年,月或日期


在Excel中,您可以轻松地使用公式插入当前年份,月份,日期和时间戳。

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

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

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

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

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

注意丝带 公式太难记了? 将公式保存为自动文本条目,以便将来只需点击一下即可重复使用!
阅读全文... 免费试用

箭头蓝色右泡 插入具有特殊日期格式的当前年份,月份或日期

如果你有 Kutools for Excel 安装好了 插入日期 实用程序可以帮助您快速插入当前月份或日期以及在Excel中只需点击几次日期格式。

安装Kutools for Excel后,请按以下步骤操作:

1。 选择要插入当前年份,月份或日期的单元格,然后单击 Kutools > 插页 > 插入日期,看截图:

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

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

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

Kutools for Excel -包括多个用于Excel的300便捷工具。 全功能免费试用30天,无需信用卡! 现在加入


箭头蓝色右泡 使用Kutools for Excel在单元格/页眉/页脚中插入当前日期和时间

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

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

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

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

Kutools for Excel -包括多个用于Excel的300便捷工具。 全功能免费试用30天,无需信用卡! 现在加入


箭头蓝色右泡演示:在Excel中将当前日期,月份或年份插入单元格/页眉/页脚中

Kutools for Excel 包含多个用于Excel的300便捷工具,可以在30天内不受限制地免费试用。 立即下载并免费试用!

箭头蓝色右泡相关文章:

以特定日期格式快速插入当前日期


Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能30天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Larry Kiser · 1 years ago
    In EXCEL 365, I want to insert the month based on cell A2 along with a text string in the header.
    • To post as a guest, your comment is unpublished.
      kellytte · 10 months ago
      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?
  • To post as a guest, your comment is unpublished.
    Larry Kiser · 1 years ago
    I want to insert the month based on cell A2 along with a text string.
  • To post as a guest, your comment is unpublished.
    Nina · 1 years ago
    =TEXT(MONTH(TODAY()),"mmmm") gives me January, although it is now February. What is wrong with this formula?
    • To post as a guest, your comment is unpublished.
      Julia · 1 years ago
      Take MONTH out of the formula:
      =TEXT(TODAY(),"MMMM")
  • To post as a guest, your comment is unpublished.
    nu · 1 years ago
    how to get current month only in header/footer
    • To post as a guest, your comment is unpublished.
      kelly001 · 1 years ago
      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
  • To post as a guest, your comment is unpublished.
    riz · 1 years ago
    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.
    • To post as a guest, your comment is unpublished.
      Tang Kelly · 1 years ago
      Hi,
      The topic of this article is about inserting the current date, month, or year.
  • To post as a guest, your comment is unpublished.
    MR CK YEOH · 2 years ago
    HOW DO I GET THE PREVIOUS MONTH AND YEAR IN THE SAME CELL
    • To post as a guest, your comment is unpublished.
      · 2 years ago
      Hi,
      =YEAR(TODAY())&"/"&(MONTH(TODAY())-1)

      This formula will return year and previous month in the formatting of “2017/8”
  • To post as a guest, your comment is unpublished.
    May · 2 years ago
    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?
    • To post as a guest, your comment is unpublished.
      Satyam MISHRA · 10 months ago
      =+TEXT(TODAY(),"mmm")&"-"&(YEAR(TODAY()))
    • To post as a guest, your comment is unpublished.
      Jayadev BS · 2 years ago
      =CONCATENATE(TEXT(TODAY()," MMMM"), ", ", YEAR(TODAY()))
      • To post as a guest, your comment is unpublished.
        abhay · 2 years ago
        thanks a lot..this formula works exactly what we need
        • To post as a guest, your comment is unpublished.
          Brad · 11 months ago
          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()))
  • To post as a guest, your comment is unpublished.
    Jayadev BS · 3 years ago
    #1: Check your machine date
    #2: check =TODAY()
    • To post as a guest, your comment is unpublished.
      Sarah · 3 years ago
      [quote name="Jayadev BS"]#1: Check your machine date
      #2: check =TODAY()[/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)
  • To post as a guest, your comment is unpublished.
    Sarah · 3 years ago
    year(today()) formula return a date in 1905...
    Send Help!
  • To post as a guest, your comment is unpublished.
    purchasing · 3 years ago
    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)
  • To post as a guest, your comment is unpublished.
    IOANNIS CHATZIS · 4 years ago
    how the next formula works in microsoft office 2007 =DAYS(TODAY();"31/12/14")
    this formula works normally in office 20013 but no 2007.
    I want to calculate the number of days that passed from a set date.

    Thank
    • To post as a guest, your comment is unpublished.
      Deepak · 2 years ago
      Thanks dear , your suggestion was helpful. Solved my purpose perfectly.
      God bless you.
  • To post as a guest, your comment is unpublished.
    nonamexxx · 4 years ago
    ups
    less than 10...

    =IF(MONTH(TODAY()) < 10, "0" & MONTH(TODAY()), MONTH(TODAY()))
  • To post as a guest, your comment is unpublished.
    Jayadev BS · 4 years ago
    How to add '0' if month/date is less than 10.
    Ex:
    =MONTH(TODAY()) is result '3'

    But i want 03

    -Jayadev
    • To post as a guest, your comment is unpublished.
      nonamexxx · 4 years ago
      ="0" & MONTH(TODAY())
      • To post as a guest, your comment is unpublished.
        Jayadev BS · 3 years ago
        Sorry, i forgot to reply once i got the answer.
        Final formula i used is:
        =IF(MONTH(TODAY())