跳到主要內容

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日,星期六

相對公式

相關功能


最佳辦公效率工具


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