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.

傳回時間值的小時。小時必須用整數指定,有效範圍是 0 (12:00 A.M.) 到 23 (11:00 P.M.)。

語法

HOUR(serial_number)

Serial_number     您要尋找的時間 (包含小時)。時間可以在引號之內以文字字串輸入 (例如,"6:45 PM"),或以小數位數字輸入 (例如,0.78125,其表示 6:45 PM),或者以其他公式或函數輸入 (例如,TIMEVALUE("6:45 PM"))。

備註

時間值是日期值的一部分,而且它是由小數點數字來表示 (例如,因為 12:00 PM 為一天的一半,所以會以 0.5 來表示)。

範例

公式

說明 (結果)

=HOUR("3:30:30 AM")

時間的小時值 (3)

=HOUR("3:30:30 PM")

時間的小時值 (15)

=HOUR("15:30")

時間的小時值 (15)

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!

×