跳到主要內容

如何在Excel中將日期轉換為工作日,月份,年份名稱或數字?

假設您在儲存格中輸入日期,它顯示為 12/13/2015。 有沒有辦法只顯示月份或工作日,或者可能顯示月份名稱或工作日名稱的文本,例如“十二月“, 要么 ”星期日以下概述的方法可以幫助您輕鬆轉換任何類型的日期或設定其格式,以便在 Excel 中僅顯示工作日名稱或月份名稱。

  1. 使用格式單元格將日期轉換為工作日/月/年名稱或數字
  2. 使用TEXT函數將日期轉換為工作日/月份名稱
  3. 使用CHOOSE函數將日期轉換為工作日/月名
  4. 使用出色的工具將日期轉換為工作日/月/年的名稱或數字

使用格式單元格將日期轉換為工作日/月/年名稱或數字

我們可以自訂日期格式並將日期僅在 Excel 中顯示為工作日名稱或月份名稱。

1。 選擇要轉換為星期、月份或年份名稱/數字的日期儲存格,右鍵並選擇 單元格格式 從右鍵單擊菜單中。

Excel的Kutools

在人群中脫穎而出

300+ 便利工具
解決 Excel 中 80% 的問題
立即免費試用

告別繁瑣的 VBA 和公式!

2。 在開幕 單元格格式 對話框中的 聯繫電話 標籤,點擊 習俗 ,在 類別 框,然後輸入“DDD“ 進入 類別 框。

備註:“DDD" 將日期顯示為簡短的工作日名稱,例如 "週六“。拿日期 3/7/2019 例如,下表說明了各種自訂日期格式選項:

  A B C
1 將“3/7/2019”顯示為 格式代碼 格式化結果
2 工作日(名稱) DDD 週四
3 DDDD 星期四
4 月份(姓名) MMM
5 MMMM 遊行
6 月份(數位) m 3
7 mm 03
8 年份(數字) yy 19
9 YYYY 2019
10 該月的第幾天(數字) d 7
11 dd 07

3。 點擊 OK 按鈕以應用自定義日期格式。

一鍵式將多個日期轉換為Excel中的周/月/年名稱或數字

您是否仍在透過右鍵單擊並在「設定儲存格格式」對話方塊中指定格式代碼來手動將日期轉換為一週中對應的一天?使用 Kutools for Excel 的 套用日期格式 功能,您只需在 Excel 中單擊即可輕鬆將一系列日期顯示為月份名稱或星期幾!

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

使用TEXT函數將日期轉換為工作日/月的名稱或數字

Microsoft Excel的 TEXT 函數可以幫助您使用指定的格式代碼輕鬆地將日期轉換為其對應的月份名稱或工作日名稱。

請輸入公式 = TEXT(A2,“ mmmm”) 在空白儲存格(本例中為儲存格 C2)中,然後按 Enter 鑰匙。 然後拖曳該單元格的填充手柄,根據需要將公式套用到該範圍。

日期會立即轉換為其對應的月份名稱。 看截圖:

小提示: 你可以改變 “嗯嗯” 根據以下格式轉換為其他格式代碼 以上格式代碼表。 例如,您還可以使用以下公式將日期轉換為工作日名稱 = TEXT(A2,“ dddd”).

想要脫穎而出? 立即使用 30 多個 Excel 日期功能提升您的專業知識!

使用 Kutools 的 30 多個日期功能增強您的 Excel 技能! 只需 3 分鐘即可獲得實用的日期處理專業知識,超越您的同事,並輕鬆獲得加薪和晉升!

提高好感度

有效率地解決 Excel 日期問題,在工作中獲得認可和讚賞。

家庭時光

告別 Excel 中重複且瑣碎的日期任務,節省更多時間享受家庭時光。

為了更健康的生活

輕鬆批量插入、修改或計算日期,最大限度地減少每日點擊次數並避免滑鼠疲勞。

永遠不用擔心裁員

工作效率提升91%,解決Excel日期問題95%,提前完成任務。

放鬆心情

使用Kutools的13個日期公式,忘記複雜的公式和VBA程式碼,並簡化您的工作。

獲得 300+ 強大的力量 Excel的Kutools 適用於 1500 多種工作場景的工具僅需 $49.0 - 價值超過 4000 美元的傳統 Excel 培訓,為您節省大量費用。

使用CHOOSE函數將日期轉換為工作日/月名

如果您發現難以記住並在公式中使用這些特定的格式程式碼,Excel 還允許您使用 選擇 用於將日期轉換為月份名稱或工作日名稱的函數。 您可以這樣做:

在空白單元格中,請輸入公式 = CHOOSE(WEEKDAY(B1),“ Sun”,“ Mon”,“ Tue”,“ Wed”,“ Thu”,“ Fri”,“ Sat”),然後按 Enter 鑰匙。 此公式會將儲存格 B2 中的日期轉換為星期幾,如下圖所示。

小提示: 若要將日期轉換為月份名稱,請套用下列公式: = CHOOSE(MONTH(B1),“ Jan”,“ Feb”,“ Mar”,“ Apr”,“ May”,“ Jun”,“ Jul”,“ Aug”,“ Sep”,“ Oct”,“ XNUMX月” “,” Dec“).

使用Kutools for Excel將日期轉換為工作日/月/年的名稱或數字

雖然 Excel 中的 TEXT 函數可以有效地將日期轉換為您想要的格式,但當日期分散在工作表中時,它就不太方便了。在這種情況下,Kutools for Excel's 套用日期格式 工具提供了卓越的解決方案,讓您只需單擊幾下即可處理多個選擇,並輕鬆將選擇中的所有日期轉換為其相應的月份或工作日名稱。

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

1。 選擇一個或多個包含您將使用的日期的範圍,然後按一下 庫工具 > 格式 > 套用日期格式.

2。 在 套用日期格式 對話方塊中,請選擇日期格式 日期格式 框中,然後單擊 Ok 按鈕。

提示:
  • 通過選擇 03, or 遊行 ,在 日期格式 在方塊中,您可以將日期轉換為月份名稱或月份數字。
  • 通過選擇 週三 or 星期三,您可以將日期轉換為工作日名稱。
  • 通過選擇 01 or 2001,您可以將日期轉換為年份數字。
  • 通過選擇 14,您可以將日期轉換為天數。

現在,所有選定的日期都已轉換為您指定的日期格式,無論是月份名稱、星期幾還是您選擇的任何其他格式。

筆記:

  • 套用日期格式 工具修改顯示格式而不改變實際值,並且您可以按輕鬆恢復更改 按Ctrl + Z 撤銷。
  • 想要訪問 套用日期格式 特徵? 下載 Excel的Kutools 現在! 除此之外,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 (51)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
gostaria de uma maneira (fç) para formatar uma data pelo formato de número da semana.
Por exemplo: 04/10/22 seria a W40 ou 40a. semana do ano.
obg
This comment was minimized by the moderator on the site
Hi there,

Suppose the date is in the cell A1, you can enter the formula in another cell to get the week number from the given date quickly: =WEEKNUM(A1)
If you want to add the date in the formula, you can use the following: =WEEKNUM(DATE(2022,10,4))

Amanda
This comment was minimized by the moderator on the site
In Cell 1, Month is mentioned in Text format and how do I find the number of days for the same month in Cell 2
This comment was minimized by the moderator on the site
HOW DO I CONVERT 2ND MONDAY 2019 TO A DATE?
This comment was minimized by the moderator on the site
Suppose today is 25.10.19 that is Friday and I have to make any kind of statement in excel where I need every day to enter previous day date or you can say one day back date that is 24.10.19 which is Thursday in one of the cell in excel. So I tried for date one formula that is =Today()-1 ,so it becomes 24.10.19 but I don't know how to put formula for weekly day ,Can Anyone help me out
This comment was minimized by the moderator on the site
=CHOOSE(WEEKDAY(TODAY()-1),"Sun","Mon","Tue","Wed","Thu","Fri","Sat")
This comment was minimized by the moderator on the site
if I have 4th Thursday of Dec 2019, how would I calculate the date in excel , what will be the formulla
This comment was minimized by the moderator on the site
Hi Daniel,
First, define the day of weekday. In general, we can use 1 represents Sun, 2 represents Mon, …, and 7 for Sat.
Second, the Year and Month are fixed (2019 Dec)
Now we can use the formula =DATE(B3,C3,1+E3*7)-WEEKDAY(DATE(B3,C3,8-VLOOKUP(D3,B6:C12,2,FALSE))) to return the specified date. See screenshot:
Note: B3 is the year, C3 is Month, E3 indicates the nth day of week, D3 is the day of week, B6:C12 is the table where we define the day of weeks.
This comment was minimized by the moderator on the site
Hi,
How can I convert day and time (IST) to PST? For example, SUN 6:00 AM (IST) in column A2, I need the value for PST which is SUN 7:30 PM.
This comment was minimized by the moderator on the site
Hi Saran,
You can use Kutools formula – Add minutes to date: add 810 minutes (13.5 hours) to the IST time, and get the PST time.
This comment was minimized by the moderator on the site
02/01/2016 00:00 i Have date in this format and i want to convert it to the days of the week.....monday tuesday,wednesday etc. Kindly help
This comment was minimized by the moderator on the site
Hi,
Both =TEXT(A1,"dddd") and =TEXT(A1,"ddd") can convert the dates with time to days of week. Try them!
This comment was minimized by the moderator on the site
If I have a date in a1 (1/25/18) and I want a2 to give the month (Jan) but my months from the 25th - 26th of next month, ie; 12/26/17 - 1/25/17 would be Jan, and 1/26/18 - 2/25/18 would be Feb. So in my case if a1 is 1/27/18 would make a2 say Feb. What formula could I use? I can't find anything about setting your own date range to reflect a certain month, for like billing cycles for instance. Please help!!
This comment was minimized by the moderator on the site
Hi,

you can try this formula =IF(DAY(A1)>25,TEXT(DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)),"MMMM"),TEXT(A1,"MMMM"))
This comment was minimized by the moderator on the site
id like to ask, how to compute for the # of days outstanding based on the cut off date : e.g. 07.21.17 ( cutt off date
This comment was minimized by the moderator on the site
Hi Owen,


Do you mean calculate days from today to the deadline? If so, you can try this formula =deadline date -TODAY()
This comment was minimized by the moderator on the site
hello, how can be show month period in this formate like 1 march 2017 to 31 march 2017, pls help
This comment was minimized by the moderator on the site
maybe this formula =TEXT(A1,"d mmmm yyyy") can help you
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