提示:其他語言是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 · 11 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 · 2 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 · 2 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 · 3 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 · 11 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.
        MAnis · 20 days ago
        Instead you can simply
        =TEXT(TODAY(),"MMM,YYYY")
      • 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 · 1 years 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 · 4 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 · 4 years ago
        Sorry, i forgot to reply once i got the answer.
        Final formula i used is:
        =IF(MONTH(TODAY())