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

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | 24* | Times 24, because Excel counts time in days. | 24 × … |
| 2 | B8 | The end date and time. | 11/6/2026 4:00:15 PM |
| 3 | -A8 | Takes 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.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- 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.
- 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
OTHER ROUTES YOU MIGHT LIKE

Count minutes between timestamps
11/4/2026 2:30:15 PM to 11/6/2026 4:00:15 PM → 2970 minutes
Get the template →
Count seconds between timestamps
11/4/2026 2:30:15 PM to 11/6/2026 4:00:15 PM → 178200 seconds
Get the template →
Calculate clock time across midnight
11:30 PM to 7:15 AM → 7:45
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →