=HOUR(serial_number)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
Need more than a single HOUR formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.
serial_number:
A valid Excel date and time value, or a reference to a cell containing such a value, from which the hour will be extracted. This can be a date-time value returned by a formula or a static date-time value.
The HOUR function in Excel is a simple yet effective tool that allows you to extract the hour from a given time value. It takes a time value as input and returns the hour component as a number between 0 (12:00 AM) and 23 (11:00 PM).
In simpler terms, the HOUR function helps you isolate the hour part of a time, making it easier to analyze time-based data.
Imagine you are tracking the time spent on various tasks throughout the day, and you have the following data in an Excel spreadsheet:
| Task | Start Time |
|---|---|
| Task A | 08:30 AM |
| Task B | 01:15 PM |
| Task C | 11:45 AM |
| Task D | 03:00 PM |
| Task E | 09:20 AM |
You want to find out the hour at which each task started.
To extract the hour from the Start Time for Task A, you would use the HOUR formula as follows:
=HOUR(B2)When you apply the formula to the Start Time for Task A, it returns the hour component. The output would be:
| Task A Start Hour |
|---|
| 8 |
Here, the hour extracted from 08:30 AM is 8.
The HOUR function is particularly useful when you need to analyze time data, such as calculating the number of tasks completed during specific hours of the day or summarizing activities based on the time they occurred. It allows you to work with time data more effectively.
Understanding how to use the HOUR function can significantly enhance your time data analysis capabilities in Excel, enabling you to derive meaningful insights from your time-based datasets.
Happy calculating!
You have a table where Column A contains timestamps of when employees clocked in for their shifts. You can use the HOUR function to extract the hour from each timestamp in order to analyze peak working hours. This allows for better workforce management and scheduling decisions, ensuring that adequate staff is present during the busiest times without the need for complex time analysis tools.
Beyond the HOUR function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.
Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.
Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.
Browse our complete library of Excel formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.