bottom
Great ExcelTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > ExcelTips Home > Worksheet Functions > Math and Trig Functions > Rounding to Even and Odd Values

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!

Helpful Links

Ask an Excel Question
Make a Comment

Tips.Net Home

ExcelTips FAQ
ExcelTips Premium

Learn Access Now

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

 

Great Info!

Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)