Build an end timestamp across midnight
Turn a start of 11/4/2026 2:30:15 PM and an end of 9:05:00 AM into 11/5/2026 9:05:00 AM.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | INT(A8) | The start date, with its time dropped. | 11/4/2026 |
| 2 | +B8 | Adds the end time to that date. | 11/4/2026 9:05:00 AM |
| 3 | ROUND(B8*86400,0) | The end time in whole seconds. | 32700 |
| 4 | ROUND(MOD(A8,1)*86400,0) | The start time in whole seconds. | 52215 |
| 5 | +IF( … ,1,0) | Adds one day when the end is earlier than the start. | 11/5/2026 9:05:00 AM |
Read it left to right. Excel stores a day as 1, so adding 1 moves to the next day.
=INT(A8)+B8+IF(ROUND(B8*86400,0)<ROUND(MOD(A8,1)*86400,0),1,0)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 dates and times. Paste start dates with times and end times into the green columns of the Template tab. The end dates and times fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
This assumes the end is less than a day after the start. The same time twice gives the start itself.
Microsoft's help: INT function
OTHER ROUTES YOU MIGHT LIKE

Join date and clock text into a timestamp
4-Nov-2026 + 2:30:15 PM → November 4, 2026 2:30:15 PM
Get the template →
Convert a four-digit hhmm clock code
0905 → 9:05 AM
Get the template →
Convert a six-digit hhmmss clock code
143015 → 2:30:15 PM
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →