Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

會傳回對應於日期的年份。

語法

YEAR(serial_number)

Serial_number     為您要尋找其年份的日期。

備註

以序號儲存日期,這樣它們可以用於計算。依預設,1899 年 12 月 31 日的序號為 1,而 2008 年 1 月 1 日的序號為 39448,因為它是 1900 年 1 月 1 日後的第 39,448 天。

無論所提供日期值的顯示格式為何,YEAR、MONTH 及 DAY 函數傳回的都是西曆日期值。例如,如果提供日期的顯示格式為回曆,則 YEAR、MONTH 及 DAY 函數傳回的值會轉換為相應的西曆日期值。

範例

公式

說明 (結果)

=YEAR("7/5/2008")

第一個日期的年份 (2008)

=YEAR("7/5/10")

第二個日期的年份 (2010)

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×