Calculate hours between timestamps

Turn 11/4/2026 2:30:15 PM to 11/6/2026 4:00:15 PM into 49.5 hours.

What you'll make

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

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
124*Times 24, because Excel counts time in days.24 × …
2B8The end date and time.11/6/2026 4:00:15 PM
3-A8Takes away the start date and time.49.5

Read it left to right. The brackets work out the time between first, in days, then times 24 gives hours.

=24*(B8-A8)

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 hours 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