Modified Rounding

Written by Allen Wyatt (last updated February 5, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


Samantha needs a formula that will round a value based on whether it is less than or equal to .25. So, for instance, 3.24 would round down to 3 and 3.25 (or greater) would round up to 4.

Rounding at the normal place (.5) is rather easy in Excel, as the program provides the ROUND worksheet function. When you want the "break point" for the rounding to be something other than .5, you'll need to rely on a formula and not on a simple worksheet function.

There are (literally) dozens of formulas you can devise to get the result you need. As with many things in Excel, the solution depends on the nature of your data. If the value to be rounded is always going to be positive, then the following formulas will work just fine. (I didn't include these formulas in any particular order other than sorting them alphabetically.)

=FLOOR(A1+0.75,1)
=IF(A1-INT(A1)<0.25,FLOOR(A1,1),CEILING(A1,1))
=IF(A1-INT(A1)<0.25,INT(A1),INT(A1)+1)
=IF(A1-INT(A1)<0.25,ROUNDDOWN(A1,0),ROUNDUP(A1,0))
=IF(INT(A1)=INT(A1+0.75),INT(A1),INT(A1)+1)
=IF(MOD(A1,1)<0.25,INT(A1),INT(A1)+1)
=IF(MOD(A1,1)<0.25,ROUNDDOWN(A1,0),ROUNDUP(A1,0))
=IF(MOD(A1,1)<0.25,TRUNC(A1,0),TRUNC(A1,0)+1)
=IF(MOD(A1,SIGN(A1))<0.25,ROUNDDOWN(A1,0),ROUNDUP(A1,0))
=IF(MOD(A1*100,100)>=25,ROUNDUP(A1,0),ROUNDDOWN(A1,0))
=INT(A1)+IF(A1-INT(A1)>=.25,1,0)
=INT(A1)+IF(MOD(A1,1)>=0.25,1,0)
=INT(A1+0.75)
=ROUND(A1,0) + IF(MOD(A1,1)>=.25,1,0)
=ROUND(A1+.25,0)
=ROUNDDOWN(A1-0.25,0)+1
=ROUNDDOWN(A1+0.75,0)
=ROUNDUP(A1-0.24,0)
=ROUNDUP(FLOOR(A1,0.25),0)
=TRUNC(A1)+(MOD(A1,1)>=0.25)

No doubt there could be even more formulas and variations of formulas to do the rounding. If the value to be rounded may include negative values, then you'll need to use a different formula. (Again, these are only sorted alphabetically.)

=IF(ABS(A1)-INT(ABS(A1))>=0.25,INT(A1)+IF(A1<0,0,1),INT(A1+IF(A1<0,1,0)))
=ROUND(A1+IF(A1>0,0.25,-0.25),0)
=ROUND(A1+SIGN(A1)*0.25,0)
=ROUND(ROUND(A1*2,0)/2,0)
=ROUNDUP(ROUNDDOWN((A1/0.25),0)*0.25,0)
=ROUNDUP(ROUNDDOWN(A1*4,0)/4,0)
=TRUNC(A1+SIGN(A1)*0.75)

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10126) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Converting Many DOC Files to DOCX

Need to convert a bunch of old DOC files to the newer DOCX format? Word doesn't provide the capability to convert a bunch ...

Discover More

Resetting Toolbars to Their Default

Once you've edited your toolbars, you may want to change them back to their default appearance and behavior. This tip ...

Discover More

Hyperlink Doesn't Match Cell Contents

When you add a hyperlink to a worksheet, over time and after doing a bunch of editing, what you see in the cell can get ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Rounding Numbers

The primary method of rounding values is to use the ROUND function in your formulas. Here's an introduction to this ...

Discover More

Rounding to Two Significant Digits

Excel provides a variety of functions you can use to round values in any number of ways. It does not, however, provide a ...

Discover More

Rounding To the Nearest Even Integer

Do you need your numbers to be rounded to an even integer value? How you accomplish the task depends on the nature of the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 2?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.