By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Quickly Return Hour Values with Excel’s HOUR Function! | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Quickly Return Hour Values with Excel’s HOUR Function! | HackerNoon
Computing

Quickly Return Hour Values with Excel’s HOUR Function! | HackerNoon

News Room
Last updated: 2025/04/27 at 8:48 PM
News Room Published 27 April 2025
Share
SHARE

HOUR function is used to return the hour as a number between 0 and 23 from a given time.

Excel HOUR FunctionExcel HOUR Function

HOUR Function: A Brief

The HOUR function in Excel extracts the hour from a given time and returns a number between 0 and 23. For example, if the time is 10:30 AM, the HOUR function will return 10. You can use this function to return the hour value in a cell.

Objective

Value Returned by function

Aim to get the Hour value as Number

HOUR Function will return a numeric values from the input hour value.

HOUR Function: A Syntax:

=HOUR(hour_value)
  1. hour_value: It should be a valid excel hour value.

Important Notes About HOUR Function:

  • The HOUR function in Excel extracts the hour value from a given time and returns a number between 0 and 23.
    • For Example, if the time is 11:00 AM, the HOUR function will return the numeric value as 11. It requires only one argument, serial_number, which must be a valid Excel date or Excel time.

  • You can enter time values as text (e.g., “9:25 PM”) or as decimal numbers (e.g., 0.5, which equals 12:00 PM). The HOUR Function returns the equivalent numeric value.

HOUR Function returns the numeric value by ignoring the minutes from the given Hour valueHOUR Function returns the numeric value by ignoring the minutes from the given Hour value

HOUR Function returns the numeric value equivalent to the decimal value.HOUR Function returns the numeric value equivalent to the decimal value.

  • In the above image, The input value is 0.34 decimal value but the HOUR Function converts into a valid Excel time and returns the numeric value equivalent to the input hour value. So the HOUR function considers the decimal value as 08:09 AM and returns the numeric value as 8 in the output cell.

Decimal Values

Equivalent Hour Value in Excel

0.01

12:14 AM

0.02

12:29 AM

0.03

12:43 AM

0.04

12:57 AM

0.05

1:12 AM

0.06

1:26 AM

0.07

1:41 AM

0.08

1:55 AM

0.09

2:10 AM

0.10

2:24 AM

0.125

3:00 AM

0.15

3:36 AM

0.1667

4:00 AM

0.20

4:48 AM

0.25

6:00 AM

0.30

7:12 AM

0.3333

8:00 AM

0.375

9:00 AM

0.40

9:36 AM

0.50

12:00 PM (Noon)

0.55

1:12 PM

0.5833

2:00 PM

0.60

2:24 PM

0.625

3:00 PM

0.6667

4:00 PM

0.70

4:48 PM

0.75

6:00 PM

0.80

7:12 PM

0.8333

8:00 PM

0.875

9:00 PM

0.90

9:36 PM

0.9167

10:00 PM

0.95

11:24 PM

1.00

12:00 AM (Midnight)

From the above table, you can find the decimal values and equivalent hour values. The Decimal value should be lies between 0 to 1.

Example 1: Basic Example:

The below example will make you understand the HOUR Function easily.

Input Time

Formula Used

Final Result

Comments

10:45 AM

=HOUR(B3)

10

Returns 10 because the hour part is 10

5:30 PM

=HOUR(B4)

17

Returns 17 because 5 PM is represented as 17 in a 24-hour format

00:15

=HOUR(B5)

0

Returns 0, indicating midnight

23:59

=HOUR(B6)

23

Returns 23, indicating 11:59 PM

12:00 PM

=HOUR(B7)

12

Returns 12

Basic Example usage of HOUR Function with different Hour values.Basic Example usage of HOUR Function with different Hour values.

Example 2: Return Hour Values from Date & Time Values:

If you sheet contains both date and time values in the cells, you can use the HOUR function to extract the numeric values by ignoring the date values from the input cell.

Input Date and Time

Formula Used

Final Result

Comments

03-08-2025 10:30

=HOUR(B3)

10

Returns 10 because the time is 10:30 AM.

25-12-2024 00:01

=HOUR(B4)

Returns 0, as midnight is hour 0.

Example usage of HOUR function ignores, Dates and Minutes from given input values.Example usage of HOUR function ignores, Dates and Minutes from given input values.

Notes:

  • If the hour_value is not recognized by HOUR function then it will returns the #VALUE! error.
  • If the hour_value is out of given range and then the HOUR function will returns the #NUM! error.

That’s it. This tutorial is originally published on How to Use Excel HOUR Function?

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article This app turns your iPhone into a scanner, and it lasts for life
Next Article Starlink Mini Kit Deal: Speedy Wi-Fi in the Wilderness and a Sky-High 34% Price Cut
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

How to Automate Slack Messages (Step-by-Step) |
Computing
Acer Predator X32 X3 Review: With This OLED Panel, Pick Your Peak Refresh Rate
News
vnNnHh’s2025nnvss
News
You can still get a Samsung The Frame art TV for under $800 during the final hours of Prime Day
News

You Might also Like

Computing

How to Automate Slack Messages (Step-by-Step) |

23 Min Read
Computing

Linux 6.16 Ready With Fixes For Old AMD Hardware “Which Wasn’t Even Supposed To Run Linux”

3 Min Read
Computing

Only 73% of Individuals on the Internet are Real | HackerNoon

4 Min Read
Computing

The TechBeat: The TechBeat: I Built an AI Copilot That Thinks in Exploits, Not Prompts (7/4/2025) (7/13/2025) | HackerNoon

5 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?