この関数は Google スプレッドシートでも Excel と同じように機能します。構文も引数も同じです。
HOUR(serial_number)The HOUR function extracts the hour component from a given time value. The result is an integer ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.).
=HOUR("15:30")結果: 15
Extracts the hour from the time 3:30 PM.
If the date does not include a time component, it returns 0.