Rounding time to the nearest 15 minutes MROUND, FLOOR or CEILING functions

Do you want to round the work­ing time to the near­est 15 min­utes? I will show you how to do it.

Round time to near­est 15 min­utes MROUND, FLOOR or CEILING functions

We can round our work­ing time to the near­est mul­ti­ple of 15 min­utes. In most cas­es, when we round in Excel and reach the mid­dle point, we start to round up. In the case of 15 min­utes, the mid­dle point is 7.5 minute. Now, let’s start the round­ing. It’s a sim­ple task. We can just use the MROUND func­tion, write the num­ber, which in our case will be the time, and then write the mul­ti­ple as time, i.e. in dou­ble quotes. In this case, the first two dig­its cor­re­spond to hours, and the last two ones cor­re­spond to min­utes. If we need sec­onds, we just write them fur­ther (Fig. 1)

=MROUND(A2,“00:15:00”)

MROUND function
Fig. 1 MROUND function

Now, let’s check our time. In the first three exam­ples, we did­n’t reach the mid­dle point, so we go down. How­ev­er, after we pass the mid­dle point, which is shown as a thresh­old, we start round­ing up. In the last but one exam­ple, we have exact­ly the same val­ue, so we leave it just as it is. How­ev­er, in the very last exam­ple, we did­n’t reach the next mid­dle point, so we still round down (Fig. 2)

Rounding with the MROUND function
Fig. 2 Round­ing with the MROUND function

Some­times, we always want to round down. In this case, we can use the FLOOR func­tion. In the first argu­ment, we have to write the time. In the sec­ond one, which is called sig­nif­i­cance, we write the same mul­ti­ple as in the MROUND func­tion, which is time in dou­ble quotes (Fig. 3)

=FLOOR(D2,“00:15”)

FLOOR function
Fig. 3 FLOOR function

In this case, we always want to round down. It means that even when we go to halfway, we still go down. What’s more, even if we are very close to the next mul­ti­ple, like in the last but one exam­ple, we still round down. Even, when we pass the mul­ti­ple, we still round down, but this time to the next mul­ti­ple, as in the last exam­ple (Fig. 4)

Rounding with the FLOOR function
Fig. 4 Round­ing with the FLOOR function

When we want to round up, we can use the CEILING func­tion. We write the same argu­ments as in the pre­vi­ous func­tions. In this case, it’s enough if we pass the pre­vi­ous mul­ti­ple by only one sec­ond, and the round­ing will go up. More­over, when we pass the next mul­ti­ple by only a tiny bit, let’s say one hun­dredth of a sec­ond, we will go up to the next mul­ti­ple (Fig. 5)

Rounding with the CEILING function
Fig. 5 Round­ing with the CEILING function

Sum­ming up, when we use the CEILING func­tion, we always go up. When we use the FLOOR func­tion, we always go down. And when we use the MROUND func­tion, we go to the near­est mul­ti­ple. The most impor­tant is the mid­dle point. We can, of course, write any time we want in the sec­ond argu­ment of those functions.

https://www.youtube.com/watch?v=9cef0-9mkBI

Round to nearest multiple MROUND, FLOOR or CEILING functions

Do you want to know how to round num­bers? Fol­low me.

Round to near­est mul­ti­ple MROUND, FLOOR or CEILING functions

Let’s assume I get paid for cor­rect­ing text and I don’t want to work with tiny amounts, like indi­vid­ual cents. What may help me is round­ing the num­ber of char­ac­ters checked by me in a giv­en text. When I round it, my income will be round­ed as well. Let’s assume that I want to round to the near­est mul­ti­ple of 200. In stan­dard Excel round­ing, when we go to the mid­dle of the num­ber, which in our case is 100, the round­ing starts to go up. It means that when we use, e.g. the MROUND func­tion to round the near­est mul­ti­ple of 200, in the case of 2349 we go up because we passed the thresh­old of 2300. How­ev­er, in the case of 2499, we go down. Why? Because we haven’t reached the mid­dle point. But when we reach the mid­dle point, which in this exam­ple is exact­ly 2500, we go up. In order to go up, we only have to reach the mid­dle point, and when we don’t reach this point we go down. It means that it’s even for me and for my cus­tomer (Fig. 1) 

Threshold and rounding
Fig. 1 Thresh­old and rounding 

Some­times, there are sit­u­a­tions that I always want to round down or always round up. Let’s assume that round­ing down will be a lit­tle bit nicer to my cus­tomer, and round­ing up will be nicer for me. How can we do it? In Excel, when we always want to round down, we can use the FLOOR func­tion (Fig. 2)

=FLOOR(D2,200)

FLOOR function
Fig. 2 FLOOR function

We have to remem­ber that we are still using the round­ing to the near­est mul­ti­ple of 200. Our round­ing goes down even if we passed the halfway. Even, when we are very near and almost reached the point of the mul­ti­ple, and even if the dif­fer­ence is a very small frac­tion of an inte­ger, like in 2599.999, we still go down. And when we reach the near­est mul­ti­ple, which is 3000 in our case, it becomes our base and we will still go to this base until we reach the next base, which is the next mul­ti­ple of 200 (Fig. 3)

Rounding down
Fig. 3 Round­ing down

When we want to always go up, we can use the CEILING func­tion, where we also give it a num­ber and sig­nif­i­cance, i.e. a mul­ti­ple, as it was with the FLOOR func­tion (Fig. 4)

=CEILING(G2,200)

CEILING function
Fig. 4 CEILING function

When we pass our next mul­ti­ple, we always go up. Even if the num­ber passed the near­est mul­ti­ple by only a small frac­tion, like 30000.0001, we still go up (Fig. 5)

 Rounding up
Fig. 5 Round­ing up

Of course, 200 is only an exam­ple of a mul­ti­ple for those func­tions. We can write there 500, or use even dec­i­mal num­bers, like 0.5 or 1.5. How­ev­er, the exam­ple above used sim­ple, hole numbers.

https://www.youtube.com/watch?v=7M72csPv36Q