Extract the seconds from a clock time

Turn the time 2:30:15 PM into its seconds: 15. Midnight gives 0.

What you'll make

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

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesFor row 8
1A8The real clock time.2:30:15 PM
2SECOND( … )Gives the seconds as a number from 0 to 59.15

It reads only the seconds on the clock, so 2:30:15 PM gives 15.

=SECOND(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 seconds 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 seconds on the clock, not total seconds. A time with no seconds gives 0.

Microsoft's help: SECOND function