Skip to content

HOUR function in Excel

HOUR returns the hour of a time, from 0 to 23.

Syntax

=HOUR(serial_number)
ArgumentRequired?What it is
serial_numberRequiredThe time (or date and time) to read from.

Example

Start 09:00 and end 17:30: =(C2-B2)*24 returns 8.5 hours.

From the lesson TIME, HOUR and MINUTE.

Common mistakes

  • Forgetting the *24, so 8 hours shows as 0.333.
  • A night shift (22:00 to 06:00) gives a negative number without MOD.
  • Typing 9.30 for half past nine: Excel reads it as a number, not a time. Type 9:30.

Practise HOUR in a live spreadsheet

Type the formula yourself and get it graded instantly, no Excel needed.