HOUR function in Excel
HOUR returns the hour of a time, from 0 to 23.
Syntax
=HOUR(serial_number)
| Argument | Required? | What it is |
|---|---|---|
| serial_number | Required | The 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.
Related date functions
- DATEBuilds a date from year, month and day.
- TODAYReturns today's date.
- DATEDIFDifference between two dates in "Y", "M" or "D".
- DAYSNumber of days between two dates.
- EDATEDate a number of months before or after.
- EOMONTHLast day of the month, months away.
- WORKDAYDate a number of working days away.
- YEARReturns the year of a date.