跳到主要內容

excel從日期獲取日期名稱

doc將日期轉換為julia 1

在本教程中,它提供了從Excel中給定日期返回日期名稱的公式。

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

使用TEXT函數獲取通用日期名稱

 

通用公式:

查找每個組的最早日期

TEXT(date,”day_format”)

語法和參數

Date: the date that you want to get the day name from.
Day_format: the day format that you want to display in the result in.

日格式清單

日格式
 顯示(以6/03/2019為例)
 “ d”
3
 “ dd”
03 
“ ddd”
週一 
 “ dddd”
星期一 

這個公式如何運作

要從B3單元格中的日期獲取日期名稱,請使用以下公式:

查找最早的日期

=TEXT(B3,"ddd")

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

解釋

TEXT 功能:將數字轉換為具有特定格式的文本。 在Excel中,日期存儲為數字。

使用CHOOSE和WEEKDAY函數獲取自定義日期名稱

 

通用公式

CHOOSE(WEEKDAY(date),"Sun_format","Mon_format","Tue_format","Wed_format",
"Thu_format","Fri_format","Sat_format")

語法和參數

Date: the date that you want to get the day name from.
Sun_format, Mon_format…Sat_format: the weekday format that you want to display the result in.

公式如何運作

假設您要以以下格式顯示日期名稱:

星期日>蘇

 
 

星期一>星期一

 

星期二>土

 

星期三>我們

 

星期四>日

 

星期五> fr

 

星期六> sa

請使用以下公式從B4單元格中的日期獲取日期名稱:

=CHOOSE(WEEKDAY(B4),"su","mo","tu","we","th","fr","sa")

媒體推薦 Enter 獲得結果的關鍵。

doc將日期轉換為julia 1

解釋

平日 函數:從給定日期獲取星期幾作為數字(1到7)。

工作日號碼清單

平日   聯繫電話
 星期日 1
 星期一
 星期二
 星期三
 星期四
 星期五
星期六 

選擇 函數:通過給定的索引號從值參數列表中返回一個值。

= CHOOSE(WEEKDAY(B4),“ su”,“ mo”,“ tu”,“ we”,“ th”,“ fr”,“ sa”)
= CHOOSE(3,“ su”,“ mo”,“ tu”,“ we”,“ th”,“ fr”,“ sa”)
= tu


相對公式

相關功能


最佳辦公效率工具


Office Tab - 在 Microsoft Office(包括 Excel)中啟用分頁式閱讀和編輯

  • 一秒鐘即可在數十個打開的文檔之間切換!
  • 每天為您減少數百次鼠標單擊,告別鼠標手。
  • 查看和編輯多個文檔時,將您的工作效率提高 50%。
  • 為 Office(包括 Excel)帶來高效的選項卡,就像 Chrome、Edge 和 Firefox 一樣。
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations