1. Home
  2. Functions
  3. Date and time
  4. HOUR

HOUR function

Returns the hour (0 to 23) of a time.

Syntax

=HOUR(serial_number)

Arguments

ArgumentRequiredDescription
serial_numberRequiredThe time or date and time

How to use HOUR

HOUR takes 1 required argument. Type =HOUR( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=HOUR(0.75)Result 18
=HOUR(TIME(7,45,0))Result 7

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.