Google Sheets
HOUR function in Google Sheets
Returns the hour component of a specific time, in numeric format.
=HOUR(time)HOUR syntax and parameters
One argument, one required.
- timeanyRequired
The time from which to calculate the hour component. Must be a reference to a cell containing a date/time, a function returning a date/time type, or a number.
HOUR examples
Formulas you'll actually reuse.
The hour a shift ended, from a 17:15 clock-out time:
=HOUR(C2)Result
17Hours worked as a decimal — 08:30 to 17:15:
=HOUR(C2 - B2) + MINUTE(C2 - B2) / 60Result
8.75
HOUR in Excel
Same name — your formula ports as-is.
Try HOUR in the playground
Edit the example — nothing to install.
Preloaded with the HOUR formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Google Sheets gets this done.
- DATEConverts a provided year, month, and day into a date.DateExcel
- DATEDIFCalculates the number of days, months, or years between two dates.DateExcel
- DATEVALUEConverts a provided date string in a known format to a date value.DateExcel
- DAYReturns the day of the month that a specific date falls on, in numeric format.DateExcel
- DAYSReturns the number of days between two dates.DateExcel
- DAYS360Returns the difference between two days based on the 360 day year used in some financial interest calculations.DateExcel