Count seconds between timestamps

Turn 11/4/2026 2:30:15 PM to 11/6/2026 4:00:15 PM into 178200 seconds, counting every day.

What you'll make

In Excel: 11/4/2026 2:30:15 PM to 11/6/2026 4:00:15 PM becomes 178200 seconds.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1B8The end date and time.11/6/2026 4:00:15 PM
2-A8Takes away the start date and time.2.0625 days
3*86400Times 86400, the seconds in one day.178200
4ROUND( … ,0)Rounds to the nearest whole second.178200

Excel counts time in days. The brackets work out the days between first, then times 86400 gives seconds.

=ROUND((B8-A8)*86400,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 and end dates with times into the green columns 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

Use the same time zone for both cells, and put the earlier one in Start. Daylight saving changes aren't counted.

Microsoft's help: ROUND function