- Advanced Excel Functions Tutorial
- Advanced Excel Functions - Home
- Compatibility Functions
- Advanced Excel Functions - Cube
- Database Functions
- Date & Time Functions
- Engineering Functions
- Financial Functions
- Information Functions
- Advanced Excel Functions - Logical
- Lookup & Reference Functions
- Math & Trignometric Functions
- Statistical Functions
- Useful Resources
- Quick Guide
- Useful Resources
- Discussion
Date and Time - HOUR Function
Description
The HOUR function returns the hour of a time value. The hour is given as an integer, ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.).
Syntax
HOUR (serial_number)
Arguments
Argument | Description | Required/ Optional |
---|---|---|
Serial_number | The time that contains the hour, you want to find. Times can be entered
|
Required |
Notes
Time values are a portion of a date value and represented by a decimal number (E.g., 12:00 PM is represented as 0.5 because it is half of a day).
If the supplied serial_number is not a valid Excel time, HOUR returns the #VALUE! Error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
advanced_excel_date_time_functions.htm
Advertisements