Rewrite clock text in a chosen format
Turn clock text like 6:45 PM into 18:45:00, using the format typed in column B.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | TIMEVALUE(A8) | Reads the clock text as a real time. | 2:30:15 PM |
| 2 | B8 | The format to write the time in. | "hh:mm:ss" |
| 3 | TEXT( … ) | Writes the time in that format as text. | "14:30:15" |
Read it left to right. Part 1 sits inside part 3, so Excel reads the time first.
=TEXT(TIMEVALUE(A8),B8)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. On the Template tab, paste clock text like 6:45 PM into column A. Put a format like hh:mm:ss into column B. The results fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Times typed without seconds get :00 in hh:mm:ss. Those zeros are filled in, not measured.
Microsoft's help: TEXT function
OTHER ROUTES YOU MIGHT LIKE

Write a time as hhmm or hhmmss
12:00:00 AM, pattern hhmmss → 000000, not 0
Get the template →
Omit a known missing timestamp
0001-01-01T00:00:00 → blank; 2026-11-04T14:30:15 → 11/4/2026 14:30:15
Get the template →
Read exact four- or six-digit clock codes
143015 → 2:30:15 PM and 2330 → 11:30:00 PM
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →