Excel Round Time to Nearest Hour or Minute
In this article
You can round a time value in Excel to the nearest hour or minute using the MROUND, ROUND, CEILING, or FLOOR functions, depending on whether you want standard rounding, rounding up, or rounding down. For nearest hour, use =MROUND(A1,"1:00"); for nearest minute, use =MROUND(A1,"0:01"). This article explains the formulas, how they work, and common pitfalls.
How Excel Stores Time
Excel stores dates and times as decimal numbers. A full day equals 1, so 6:00 AM is 0.25, 12:00 PM is 0.5, and 6:00 PM is 0.75. Minutes and hours are fractions of that day. One hour is 1/24 (approximately 0.0416667), and one minute is 1/1440 (approximately 0.00069444).
This numeric representation is why rounding functions work on time values. When you round a time, you are really rounding a decimal number to a specified multiple. The result still displays as a time if the cell is formatted as time, but the underlying value is numeric.
Rounding to the Nearest Hour or Minute
The most direct way to round to a specific time unit is the MROUND function. It rounds a number to the nearest multiple of a given value. For time, you supply the time value and the rounding unit as a time string or as a fraction of a day.
- Nearest hour:
=MROUND(A1,"1:00")or=MROUND(A1,1/24) - Nearest minute:
=MROUND(A1,"0:01")or=MROUND(A1,1/1440) - Nearest 15 minutes:
=MROUND(A1,"0:15")or=MROUND(A1,1/96)
MROUND rounds half away from zero. For example, 8:30 AM rounds to 9:00 AM when rounding to the nearest hour. 8:29 AM rounds to 8:00 AM. The same logic applies to minutes: 8:30:30 rounds to 8:31 AM, while 8:30:29 rounds to 8:30 AM.
Rounding Up or Down with CEILING and FLOOR
Sometimes you need to always round up (e.g., billing time in full hours) or always round down (e.g., calculating elapsed whole minutes). Use CEILING to round up and FLOOR to round down.
- Round up to the next hour:
=CEILING(A1,"1:00") - Round down to the previous hour:
=FLOOR(A1,"1:00") - Round up to the next minute:
=CEILING(A1,"0:01") - Round down to the previous minute:
=FLOOR(A1,"0:01")
CEILING always rounds away from zero, so a time like 8:00:01 becomes 9:00 AM when rounding to the hour. FLOOR always rounds toward zero, so 8:59:59 becomes 8:00 AM. These functions ignore the fractional part of the time value, so they are ideal when you need to count full intervals.
Using ROUND, ROUNDUP, and ROUNDDOWN
You can also use the standard ROUND family, but you must convert the time to hours or minutes first. For example, to round to the nearest hour, multiply the time by 24, round, then divide by 24:
=ROUND(A1*24,0)/24
For minutes, multiply by 1440:
=ROUND(A1*1440,0)/1440
ROUNDUP and ROUNDDOWN work similarly. This method gives you more control if you need to round to a specific number of decimal places (e.g., round to the nearest 0.5 hour).
Formatting the Result
After rounding, the cell may display a date or a decimal number if the format is not set to time. To fix this, select the cell and apply a time format: right-click, choose Format Cells, then select Time and pick the desired format (e.g., 1:30 PM or 13:30). If you want to see the underlying decimal, change the format to Number.
If the result shows a date (like 1/1/1900), it means the cell format is date. Change it to time, and the value will display correctly. Remember that times after midnight roll over to the next day, so a result like 00:30 is 12:30 AM.
Common Mistakes and Pitfalls
- Using text strings incorrectly: The rounding unit must be in quotes as a time string (e.g., "1:00") or as a fraction (1/24). If you use a plain number like 1, you will round to the nearest whole day.
- Forgetting to format the result: Without a time format, you will see a decimal like 0.375 instead of 9:00 AM.
- Rounding to the nearest hour vs. nearest hour of the day: MROUND rounds to the nearest multiple of the unit from zero. So 12:45 PM rounds to 1:00 PM, not to 12:00 PM. If you need to round to the nearest hour of the day, use MROUND with "1:00" and then format as time.
- Not accounting for negative times: Excel handles negative times poorly unless you use the 1904 date system. If you work with negative time differences, consider using a different approach.
When to Use Each Function
- MROUND: Use for standard rounding to the nearest unit (e.g., time sheets, scheduling).
- CEILING: Use when you need to round up, such as calculating overtime in full hours or billing in 15-minute increments.
- FLOOR: Use when you need to round down, such as counting complete minutes for elapsed time.
- ROUND/ROUNDUP/ROUNDDOWN: Use when you need to round to a decimal number of hours (e.g., 0.5 hours) rather than a time unit.
Frequently Asked Questions
How do I round time to the nearest 15 minutes in Excel?
Use =MROUND(A1,"0:15") or =MROUND(A1,1/96). This rounds to the nearest quarter hour. For example, 8:07 becomes 8:00, 8:08 becomes 8:15.
Why does my rounded time show as a date?
Excel is treating the result as a date because the cell format is General or Date. Change the cell format to Time (e.g., 1:30 PM) to display correctly. The underlying value is still a fraction of a day.
Can I round time to the nearest hour without using MROUND?
Yes. Use =ROUND(A1*24,0)/24 to round to the nearest hour. For rounding up or down, replace ROUND with ROUNDUP or ROUNDDOWN.
How do I round a time to the nearest minute in Excel?
Use =MROUND(A1,"0:01") or =ROUND(A1*1440,0)/1440. This will round to the nearest minute, so 8:30:45 becomes 8:31 AM.
What is the difference between MROUND and CEILING for time?
MROUND rounds to the nearest multiple (half rounds up), while CEILING always rounds up to the next multiple. For example, 8:29 AM rounded to the hour with MROUND is 8:00, but with CEILING it is 9:00.
Can I round a time to the nearest hour in a formula that also calculates duration?
Yes. You can nest the rounding function inside other formulas. For instance, to round the difference between two times to the nearest hour, use =MROUND(B1-A1,"1:00"). Ensure the result is formatted as time or as a number of hours.