Show a 24-hour time including seconds
Turn the time 2:30:15 PM into the text 14:30:15. Missing times stay blank.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | A8="" | Checks for an empty cell. | No |
| 2 | A8 | The real clock time. | 2:30:15 PM |
| 3 | "hh:mm:ss" | The pattern: hours 00 to 23, minutes, seconds. | "hh:mm:ss" |
| 4 | TEXT( … ) | Writes the time in that pattern as text. | "14:30:15" |
| 5 | IF( … ) | Leaves the cell blank if part 1 says yes. | "14:30:15" |
Read it left to right. With no AM or PM in the pattern, 2 PM shows as 14.
=IF(A8="","",TEXT(A8,"hh:mm:ss"))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 24-hour times fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Midnight shows as 00:00:00; it's a real time, not a missing one. The result is text, so sort by the original time.
Microsoft's help: TEXT function
OTHER ROUTES YOU MIGHT LIKE

Show a 24-hour time like 14:30
2:30 PM → 14:30
Get the template →
Write a duration past 24 hours as text
Duration 49:30 → text 49:30, not 1:30
Get the template →
Write elapsed hours with seconds
49:30:15 → text 49:30:15, not 1:30:15
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →