Returns the hour of given time as a number. Its value lies between 0 - 23.
Syntax
Remarks
Date formats without the time specified will have the time considered as 00:00:00.
Examples
Formula | Result |
=HOUR("12:30:00") | 12 |
=HOUR("3:30PM") | 15 |
=HOUR("11:45pm") | 23 |
Possible Errors
Errors | Meaning |
#N/A! |
|
#NAME! |
|
#VALUE! |
|
#REF! |
|
Similar Functions