跳到主要內容

Excel公式:將日期轉換為文本

doc將日期轉換為julia 1

本教程提供了TEXT函數,用於將日期轉換為文本。

如果您想學習本教程,請下載示例電子表格。
doc將日期轉換為julia 1

通用公式:

TEXT(date,format)

參數

Date: the date you want to convert to text.
Format: the format you want the date displayed as.

回報值

TEXT函數返回到文本值。

這個公式如何運作

要將單元格B3中的日期轉換為文本值,請使用以下公式:

=TEXT(B3,"mm/dd/yyyy")

媒體推薦 Enter 獲得結果的關鍵。
doc將日期轉換為julia 1

解釋

TEXT功能:將數字轉換為特定格式的文本。

備註

格式代碼 公式 結果
YYYY = TEXT(B3,“ yyyy”) 2020
yy = TEXT(B3,“ yy”) 20
MMMMM = TEXT(B3,“ mmmmm”) S
MMMM = TEXT(B3,“ mmmm”) 九月
MMM = TEXT(B3,“ mmm”) 九月
mm = TEXT(B3,“ mm”) 09
m = TEXT(B3,“ m”) 9
DDDD = TEXT(B3,“ dddd”) 星期六
DDD = TEXT(B3,“ ddd”) 週六
dd = TEXT(B3,“ dd”) 12
d = TEXT(B3,“ d”) 12
mm/dd/yyy = TEXT(B3,“ mm / dd / yyyy”) 09/12/2020
m / d / y = TEXT(B3,“ m / d / y”) 9/12/20
ddd,mm y = TEXT(B3,“ ddd,mmm y”) 20月XNUMX日,星期六

相對公式

相關功能


最佳辦公效率工具

Kutools for Excel-幫助您從人群中脫穎而出

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

Kutools for Excel 擁有超過 300 個功能, 確保只需點擊一下即可獲得您所需要的...

產品描述


Office選項卡-在Microsoft Office(包括Excel)中啟用選項卡式閱讀和編輯

  • 一秒鐘即可在數十個打開的文檔之間切換!
  • 每天為您減少數百次鼠標單擊,告別鼠標手。
  • 查看和編輯多個文檔時,將您的工作效率提高 50%。
  • 為 Office(包括 Excel)帶來高效的選項卡,就像 Chrome、Edge 和 Firefox 一樣。
Comments (6)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
=text(B3,"mmm") 을 치면 Sep 이 나와야 하는데, 9가 나오는 경우는 어떤 경우인건가요?
=text(B4,"mmmm")을 치면 September가 나와야 하는데 9월 이라고 나옵니다.

뭐가 잘못된 건지...
This comment was minimized by the moderator on the site
Hi, formulas provided in the tutorial is working at English version, for Korean version, please try formula:
TEXT(B3;"MMM") or TEXT(B3;"MMMM")
This comment was minimized by the moderator on the site
I tried already to do the formula. But the result was the same.
This comment was minimized by the moderator on the site
Hi, please notice there is not a comma , in the formula, is semicolon ; in the formula.
This comment was minimized by the moderator on the site
Right. I used a comma. If semicolon is used, the error occurs.
This comment was minimized by the moderator on the site
I am confused, which formula you use will occur errors, what error shown? #N/A or #NAME? or #VALUE!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations