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

In Excel: 2:30:15 PM becomes 14.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesFor row 8
1A8The real clock time.2:30:15 PM
2HOUR( … )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.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own times. Paste real times into the green column of the Template tab. The hours fill in by themselves.
  3. 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