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

In Excel: 11/4/2026 2:30:15 PM + 9:05:00 AM becomes 11/5/2026 9:05:00 AM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1INT(A8)The start date, with its time dropped.11/4/2026
2+B8Adds the end time to that date.11/4/2026 9:05:00 AM
3ROUND(B8*86400,0)The end time in whole seconds.32700
4ROUND(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.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. 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.
  3. 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