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 Even and Odd Values.
by Allen Wyatt
(last updated December 28, 2013)
Excel includes two functions that allow you to quickly round a number up to the next highest even or odd integer values. For instance, suppose you have the value 26.3 in cell A7, and the following in cell A9:
The value returned by this function is 28, which is the next highest even integer value. The following function will return a value of 27, which is the next highest odd value:
If the value in A7 were negative, then both the ODD and EVEN functions will return values that are further away from zero than the value used as an argument (but they are still odd and even).
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8705) 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 Even and Odd Values.
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!
Normally the VLOOKUP function returns a value, and if it can't return a value it returns a zero. Here's how you can use the ...Discover More
Finding a square root is easy because Excel provides a worksheet function for that purpose. Finding a different root may not ...Discover More
Programmers know that a staple of any language is the ability to create conditional statements. Excel understands this, as ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.