Use the EVEN and ODD functions to determine the nearest even/odd value
In our previous articles, we went over standard functions for rounding up a number. In addition to those, there are other functions available like EVEN and ODD. For example, to round up a number to the nearest even integer, use the EVEN function. Here is the syntax that is used for both the even and odd functions:
EVEN(number)
number: The value to be rounded. To round up a number to the nearest odd value, use the ODD function.
ODD(number)
number: The value to be rounded.
To determine the nearest even/odd value:
- In cells A2:A10 list some valid numbers with decimal points.
- Select cells B2:B10 and enter the following function: =EVEN(A2).
- Press Ctrl+Enter.
- Select cells C2:C10 and enter the following function: =ODD(A2).
- Press Ctrl+Enter.
This tip is compatible with Excel 97, 2000, 2003 and 2007.
- How to Use the ISODD and ROW functions to determine odd rows
- Use the ISODD and COLUMN functions to determine odd columns
- Use the ISEVEN and ISODD functions to check if a number is even or odd
- How to Round Time to the nearest 15 minute in Excel
- Use the FLOOR function to round down values to the nearest 100
