
Tips.Net > ExcelTips Home > Worksheet Functions > Math and Trig Functions > Rounding to Even and Odd Values
Summary: You can use the EVEN and ODD worksheet functions to round a value to the next highest even or odd value. This can come in handy for some data processing where you must work with such values. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)
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:
=EVEN(A7)
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:
=ODD(A7)
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).
Tip #2345 applies to Microsoft Excel versions: 97 2000 2002 2003
Don't Go in Debt for Christmas! Tired of trying to keep up with the Joneses for Christmas? Want to enjoy the season rather than dread the aftermath? Learn how you can avoid the financial traps that spring up every Christmas.
Check out Top Fifteen Tips for Financing Christmas today!
Want to make Excel do even more? The way is easy when you know how to use macros. This great e-book makes it easy. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site