ExcelRibbon.Tips.Net ExcelTips (Ribbon Interface)

Rounding to the Nearest Quarter Hour

Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Rounding to the Nearest Quarter Hour.

Lisa is trying to set up a timesheet. It needs to go by the seven-minute rule. If it is 7 minutes till the hour it rounds to, say, 8:00 am; if it is 10 till it rounds to 7:45. If it is 7 minutes after it would be 8:00, and 8 minutes after would be 8:15 am. In other words, whatever time is entered needs to be rounded to the nearest quarter hour.

The full name of the rule that Lisa mentions is the "7/8 minute rule." It's a throwback to when timecards were processed manually. Depending on the particular time clock, the rule may not have the same result as quarter-hour rounding. Consider that the 7/8 rule rounds down all the way to 7 minutes and 59.9 seconds whereas quarter-hour rounding rounds down only to 7 minutes and 29.9 seconds. It's not a huge difference, but the 7/8 minute rule in a payroll context gives employers a 30 second freebie.

If Lisa is only entering hours and minutes, then quarter-hour rounding is just fine. This can be handled in a number of different ways. For instance, you could create a lookup table that shows what the rounded time would be for each time within the hour, and then—based on the number of minutes in the original time—use VLOOKUP (or one of the other lookup functions) to determine the correct minutes.

A better way, however, is to remember that Excel stores times as a fraction of a day, so to convert any given time to minutes you simply multiply a time value by the number of minutes in a day (24 * 60 = 1440). You can then divide by the desired time interval, in this case 15. This means that you can use any of the following equivalent formulas, if the time you want to round is in cell A1:


If you prefer, you can also "reverse" the formula by using any of these equivalent formulas:


If you have the Analysis ToolPak enabled on your system, you could also use the MROUND function to determine the rounded time. The following are equivalent formulas that use the MROUND function:


If you are not comfortable figuring out the number that Excel uses to represent 15 minutes (as is done in these formulas), you could combine MROUND with the TIME function, in this manner:


As mentioned, all the formulas presented so far assume that seconds are not being entered into the original value. If they are being entered and you want to use the 7/8 rule exactly (favoring the employer for that half minute), then you need to use an adapted formula, in this manner:


ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9360) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Rounding to the Nearest Quarter Hour.

Related Tips:

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!


Leave your own comment:

  Notify me about new comments ONLY FOR THIS TIP
Notify me about new comments ANYWHERE ON THIS SITE
Hide my email address
*What is 5+3 (To prevent automated submissions and spam.)
           Commenting Terms

Comments for this tip:

Michael (Micky) Avidan    03 Nov 2016, 16:28

Try: =FLOOR(A1,15/24/60)

Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2017)
Samantha    02 Nov 2016, 16:44
Hi this formula is what I am looking for however, I need the formula to calculate backwards for example
if an employee clocks in in between

8:00 and 8:15 then the clock in time should read 8:00
8:15 and 8:30 then the clock in time should read 8:15
8:30 and 8:45 then the clock in time should read 8:30
8:45 and 9:00 then the clock in time should read 8:45
Kari    02 Nov 2016, 11:44

Thanks-worked perfect.
Willy Vanhaelen    01 Nov 2016, 14:20

I overlooked the round part.

Here is the formula: =ROUND((C2-B2)*96,0)/4
Willy Vanhaelen    01 Nov 2016, 13:37

This formula will do =(C2-B2)*24

See to it that the cell isn't formatted as a date.
A number format or General will do.
Kari    31 Oct 2016, 11:38
I am trying to add hours and round them to the nearest .25. If an employee works from 12:30 pm- 5:00 pm, I need the answer to be 4.5 hours. If I use =sum(c2-b2), I get 4:30, but I am wondering how to get 4.5 hours instead.
MICHELLE HANSEN    16 May 2016, 12:03
I am trying to enter a rounding formula for a time sheet. With a start time of 07:53, lunch 12:00 - 13:00, time out @ 17:01. I need it to round to the nearest quarter of an hour but the formula I am using is still giving the employee and extra 0.25. The formula I have is =ROUND((D8-B8+H8-F8)*96,0)/4. What formula can I use so that the total hours is 8 and not 8.25?

Thank you
Dan    31 Jul 2015, 08:34
Genius! Thank you! Is exactly what I needed
Juan    01 Feb 2014, 10:57
How does the first formula: =ROUND(A1*(24*60/15),0)/(24*60/15)
reflect all the conditions expressed in the first paragraph?

Our Company

Sharon Parq Associates, Inc.

About Tips.Net

Contact Us


Advertise with Us

Our Privacy Policy

Our Sites


Beauty and Style




DriveTips (Google Drive)

ExcelTips (Excel 97–2003)

ExcelTips (Excel 2007–2016)



Home Improvement

Money and Finances


Pests and Bugs

Pets and Animals

WindowsTips (Microsoft Windows)

WordTips (Word 97–2003)

WordTips (Word 2007–2016)

Our Products

Helpful E-books

Newsletter Archives


Excel Products

Word Products

Our Authors

Author Index

Write for Tips.Net

Copyright © 2017 Sharon Parq Associates, Inc.