Extract the hour in 24-hour numbering
Turn the time 2:30:15 PM into the hour 14. Midnight gives 0.
What you'll make

The formula

| Number | Part | What it does | For row 8 |
|---|---|---|---|
| 1 | A8 | The real clock time. | 2:30:15 PM |
| 2 | HOUR( … ) | Gives the hour as a number from 0 to 23. | 14 |
Hours use 24-hour numbering, so 2 PM gives 14 and midnight gives 0.
=HOUR(A8)How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- Use your own times. Paste real times into the green column of the Template tab. The hours fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
This is the hour on the clock, not total hours. A time past 24 hours starts again from 0.
Microsoft's help: HOUR function
OTHER ROUTES YOU MIGHT LIKE

Extract the minute component
2:30:15 PM → 30
Get the template →
Extract the seconds from a clock time
2:30:15 PM → 15
Get the template →
Combine a real date with a clock time
11/4/2026 + 2:30:15 PM → 11/4/2026 2:30:15 PM
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →