Excel HOUR function

Returns the hour of a time value, from 0 to 23. In Spanish Excel it is called HORA.

Syntax

English Excel

=HOUR(serial_number)

Spanish Excel (Mexico)

=HORA(núm_de_serie)

Spanish Excel (Spain, Latin America)

=HORA(núm_de_serie)

ArgumentWhat it is
serial_numberThe time or date-time.

Example

HOUR and MINUTE pull the hour and minutes out of a time or date-time. TIME(hour, minute, second) builds a time to compare with: TIME(9, 0, 0) is 9:00.

=HOUR(B2)

Common mistake

For hours worked do not use HOUR(out-in): it wraps after 23. Multiply the difference by 24.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice HOUR

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

HOUR, MINUTE and TIME

HOUR and MINUTE pull the hour and minutes out of a time or date-time. TIME(hour, minute, second) builds a time to compare with: TIME(9, 0, 0) is 9:00.

Step 1/3

In C2, extract the arrival hour.

C2
ABCDEF
1EmployeeArrivalHourMinutesOn time?
2Carmen08:52
3Jorge09:17
4Lucía08:59
5Andrés09:04
6Paola08:41
7

Tip: while typing, click a cell or drag across several to insert their reference. F4 anchors the reference with $.

Frequently asked questions

What is HOUR called in Spanish?
In Spanish Excel it is HORA. The formula =HOUR(B2) is written =HORA(B2) (or with commas in Mexico).
Why does HOUR use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common HOUR mistake?
For hours worked do not use HOUR(out-in): it wraps after 23. Multiply the difference by 24.