HOUR function - The function returns the hour of a time value in Excel

HOUR function: The function returns the hour value of a time value, the hour is returned as an integer. Syntax: HOUR (serial_number)

The following article introduces you to the HOUR function - one of the functions in the date and time group is very popular in Excel.

images 1 of HOUR function - The function returns the hour of a time value in Excel
Images 1 of HOUR function - The function returns the hour of a time value in Excel

Description: The function returns the hour value of a time value, the hour is returned as an integer.

Syntax : HOUR (serial_number)

Where: serial_number is the time value want to count, is a required parameter.

Attention:

- Where serial_number value is a date value does not specify the time the function will return the value #VALUE !.

- The time value is part of the date value and it is expressed as a decimal.

For example:

Calculate the hour value in the time value in the following table:

images 2 of HOUR function - The function returns the hour of a time value in Excel
Images 2 of HOUR function - The function returns the hour of a time value in Excel

- In the cell to calculate enter the formula : = HOUR (E7).

images 3 of HOUR function - The function returns the hour of a time value in Excel
Images 3 of HOUR function - The function returns the hour of a time value in Excel

- Press Enter -> 25% of 24 hours is:

images 4 of HOUR function - The function returns the hour of a time value in Excel
Images 4 of HOUR function - The function returns the hour of a time value in Excel

- Similarly copying the formula for the remaining values ​​results:

images 5 of HOUR function - The function returns the hour of a time value in Excel
Images 5 of HOUR function - The function returns the hour of a time value in Excel

- Where the value seri_number does not contain the hour unit -> the function returns the #VALUE! Error value

images 6 of HOUR function - The function returns the hour of a time value in Excel
Images 6 of HOUR function - The function returns the hour of a time value in Excel

Above are instructions and some specific examples in working with HOUR function in Excel.

Good luck!

4.5 | 2 Vote
« PREV : ISOWEEKNUM function...
EOMONTH function -... : NEXT »