Round a timestamp up to the next step

Turn 11/4/2026 2:30:15 PM into 2:35:00 PM on a 5-minute schedule. The date can move too.

What you'll make

In Excel: 7/4/2026 11:59:59 PM up to 15 minutes becomes 7/5/2026 12:00:00 AM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The date and time.11/4/2026 2:30:15 PM
2B8/1440Turns 5 minutes into part of a day.0.00347
3CEILING.MATH( … )Rounds up to the next 5-minute mark.11/4/2026 2:35:00 PM

Excel stores a day as 1, and a day has 1,440 minutes. Use a step that fits evenly into a day: 5, 10, 15, 30 or 60.

=CEILING.MATH(A8,B8/1440)

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 dates with times and a step in minutes into the green columns of the Template tab. The rounded times fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

A time already on a mark stays the same. Close to midnight, rounding up moves the date to the next day.

Microsoft's help: CEILING.MATH function