How to Round Time to Nearest Hour or Minute or Second in Excel

This post will guide you how to round time to nearest hour with a formula in Excel. How do I round off time values using the MROUND function in Excel. How to round time to the nearest minute or quarter hour in Excel.

Round Time Values to Nearest 15 minutes


Assuming that you have a list of data in range B1:B4, in which contain time values. And if you want to round those time values to the nearest 15 minute interval, you can use a formula based on the MROUND function. Like this:

=MROUND(B1,"0:15")

Or

=MROUND(B1,15/60/24)

Type this formula into a cell C1, and press Enter key. Then drag the AutoFill Handle over to other cells.

round time to nearest hour1

Note: the MROUND function will round to nearest values based on a supplied multiple.

Round Time Values to Nearest 1 Hour


If you want to round time values to the nearest 1 hour, you can use the following formula based on the MROUND function. Like this:

=MROUND(B1,"1:00")

Type this formula into a cell D1, and press Enter key. Then drag the AutoFill Handle over to other cells.

round time to nearest hour2

Round Time Values to Nearest 15 seconds


If you want to round time values to the nearest 15 seconds, you can use the following formula based on the MROUND function. Like this:

=MROUND(B2, 15/86400)

Type this formula into a cell E1, and press Enter key. Then drag the AutoFill Handle over to other cells.

round time to nearest hour3

Related Posts

Excel Array Construction

This article will talk about how to create one-dimensional array or two-dimensional array by using some functions in Excel. When using array formulas in Excel, we often use functions to construct arrays. Generate Array with ROW or COLUMN Functions Array ...

Excel Array Operation

We have all heard of arrays. Depending on the dimensionality, they are divided into one-dimensional arrays and two-dimensional arrays. Depending on the data type, they can also be divided into numeric arrays, logical arrays, and so on. The concatenation and ...

Excel Array Matrix Operation

In Excel, we have a built-in function used to perform matrix operations. It is the MMULT function. This function accepts two arrays as parameters and returns the product of the two arrays. However, this function has a prerequisite that the ...

A1 Reference Style and R1C2 Reference in Excel

In Excel, there are two reference styles. A1 reference style and R1C2 reference style. These two reference styles can help us find the cell by the cell address. Some functions return these two addresses through the argument settings. A1 Reference ...

Excel Structure Reference

This tutorial introduces the basics of structured referencing in Excel and shows you how to use structured referencing in a table with examples. When you use formulas that reference tables, whether the formula references a part of the table or ...

Comments

So empty here ... leave a comment!

Leave a Reply

Sidebar