This post will guide you how to use Google Sheets HOUR function with syntax and examples.
Description
The Google Sheets HOUR returns the hour of a time value. Or returns an integer value that represent the hour component of a given time. And the return value is between 023.
For example, if you pass a time of 13:36 PM into HOUR function, and it will return 13. So you can use this function to extract the hour component from a time value.
The HOUR function can be used to get the hour component of a time as a number between 023 in google sheets. The purpose of this function is to get the hour as a number from a time and its returned values is a number between 0 and 23.
The HOUR function is a buildin function in Google Sheets and it is categorized as a Date function.
Syntax
The syntax of the HOUR function is as below:
=HOUR (serial_number)
Where the HOUR function arguments is:

Serial_text This is a required argument. The time from which you want to extract the hour component. it may be typed as text string within quotation marks (for example, “13:52 PM”), or it can be a decimal numbers(for example, 0.5), or the result of a formula (for example, TIMEVALUE(“13.54PM”))
Note:
 Time values are a portion of a date value and represented by a decimal number (for example, 12:00 PM is represented as 0.5 because it is half of a day).
 A serial date is how the Microsoft Excel stores dates and times and it represents the number of days since 19000101, so the January 1, 1900 date is serial number 1 by default.
 if the serial_number is not a valid Excel time, it will return #VALUE! error.
Google Sheets HOUR Function Examples
The below examples will show you how to use google sheets HOUR Function to return the hour of a given time value.
1# get the hour component of 25% of 24 hours,, enter the following formula in Cell B1.
=HOUR(0.25)
2# get the hour portion of the date and time value, enter the following formula in Cell B2.
=HOUR("11/10/2021 14:20")
3# Get the hour portion of the date with no time portion specified, enter the following formula in Cell B3.
=HOUR("2021/11/10")
so it will be considered 12:00AM or 0 hours.
Related Posts
Google Sheets INT Function
This post will guide you how to use Google Sheets INT function with syntax and examples. Description The Google Sheets INT function returns the integer portion of a given number. And it will round a given number down to the ...
Google Sheets FLOOR Function
This post will guide you how to use Google Sheets FLOOR function with syntax and examples. Description The Google Sheets FLOOR function returns a number rounded down to the nearest multiple of significance. So it will return a rounded number. ...
Google Sheets EXP Function
This post will guide you how to use Google Sheets EXP function with syntax and examples. Description The Google Sheets EXP function returns e raised to the power of a number. The constant e is equal to 2.71828182845904, and it ...
Google Sheets FACT Function
This post will guide you how to use Google Sheets FACT function with syntax and examples. Description The Google Sheets FACT function returns the factorial of a given number. The factorial of a given number is equal to 1*2*3…* number. ...
Google Sheets EVEN Function
This post will guide you how to use Google Sheets EVEN function with syntax and examples. Description The Google Sheets EVEN function rounds a given number up to the nearest even integer. You can use the EVEN function to return ...
Google Sheets COUNTBLANK Function
This post will guide you how to use Google Sheets COUNTBLANK function with syntax and examples. Description The Google Sheets COUNTBLANK function use to count the number of empty cells in a range of cells. You can use the COUNTBLANK ...
Google Sheets DEGREES Function
This post will guide you how to use Google Sheets DEGREES function with syntax and examples. Description The Google Sheets DEGREES function converts radians into degrees. And it will return a numeric value. For examples, if you pass the PI() function into ...
Google Sheets COSH Function
This post will guide you how to use Google Sheets COSH function with syntax and examples. Description The Google Sheets COSH function returns the hyperbolic cosine of a given angle. The purpose of this function is used to get hyperbolic ...
Google Sheets COS Function
This post will guide you how to use Google Sheets COS function with syntax and examples. Description The Google Sheets COS function returns the cosine of a given angle. If you want to supply an angle to COS function in ...
Google Sheets COMBINA Function
This post will guide you how to use Google Sheets COMBINA function with syntax and examples. Description The Google Sheets COMBINA function returns the number of combinations for a given number of items and it includes repetitions. You can use ...