跳到主要內容

如何將當前的日期,月份或年份插入Excel中的單元格?

當您想在Excel中快速插入當前月份或當前日期時,如何插入? 下面的方法將幫助您快速將當前月份或日期插入單元格或工作表的頁眉/頁腳中。


在Excel中通過公式和熱鍵插入當前年,月或日

在Excel中,您可以輕鬆插入帶有公式的當前年,月,日和時間戳。

以插入當前月份為例,請輸入公式 = MONTH(TODAY()) 在要插入當前月份的單元格中,然後按 Enter.

  公式  公式返回
插入當前月份 = MONTH(TODAY()) 8
插入當前月份 = TEXT(TODAY(),“ MMMM”) 八月
插入當前年份 = YEAR(TODAY()) 2015
插入當前日期 =今天() 2015/8/20
插入當前日期和時間 =現在() 2015/8/20 9:41

熱鍵還可以幫助您輕鬆插入當前日期和時間:

(1)按 CTRL +; 插入當前日期的鍵。

(2)按 CTRL +; 首先插入當前日期並釋放鍵,然後按 宇宙 按鈕插入一個空格,最後按下 CTRL + SHIFT +; 插入當前時間。

注意絲帶 公式太難記了嗎? 將公式另存為“自動文本”條目,以供日後再次使用!
閱讀全文...     免費試用

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

如果你有 Excel的Kutools 安裝,其 插入日期 實用程序可以幫助您在Excel中單擊幾下,以各種日期格式快速插入當前月份或日期。

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!

安裝Kutools for Excel之後,請執行以下步驟:

1。 選擇要插入當前年,月或日的單元格,然後單擊 庫工具 > 插入 > 插入日期,請參見屏幕截圖:

2。 在 插入日期 對話框中,檢查 使用格式 選項,然後雙擊右窗格中的日期格式。 參見上面的截圖:

現在,以指定的日期格式將當前日期插入活動單元格。

備註:默認情況下,在“插入日期”對話框的日曆中選擇當前日期。 如果需要插入其他日期,則需要首先在日曆中選擇日期。

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!


使用Kutools for Excel在單元格/頁眉/頁腳中插入當前日期和時間

如果您已安裝Kutools for Excel,則其 插入工作簿信息 實用程序使您可以輕鬆地將當前日期和時間插入單元格/頁眉/頁腳。 請執行以下操作:

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!

1。 點擊 Kutools Plus>工作簿 > 插入工作簿信息.

2。 在打開的“插入工作簿信息”對話框中,選中 當前日期和時間 選項,在 插入於 部分指定職位,然後點擊 Ok 按鈕。 參見上面的截圖:

然後,將當前日期和時間一次插入到指定的單元格,頁眉或頁腳中。

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!


演示:將當前的日期,月份或年份插入Excel中的單元格/頁眉/頁腳


Excel的Kutools:超過 300 個方便的工具觸手可及! 立即開始 30 天免費試用,沒有任何功能限制。 現在就下載!

相關文章:

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

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為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