Date and time

HOUR

Extract the hour component of a time, from 0 through 23.

Syntax

=HOUR(serial_number)

Worked example

Extract the hour using the 24-hour clock.

=HOUR(TIME(16,45,12))

Result 16

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor