What is the ODD function?
=ODD(number)ODD rounds a number up to the nearest odd integer. Positive numbers get larger, negative numbers get smaller (away from zero).
Use it when a count must be odd, for example a layout that needs one middle slot.
ODD always moves away from 0, so an odd whole number stays as it is while even numbers and decimals move up to the next odd number. Use it for a seating plan that needs a middle seat, a scale with a center mark, or any count that has to be odd.
Arguments
- number
- The number or cell to round. Text returns #VALUE!.
ODD examples
Example 1. Round a decimal
=ODD(1.5)3.
Example 2. An even integer
=ODD(2)3. Even an integer moves to the next odd number if it is even.
Example 3. Negative numbers
=ODD(-1)-1. It is already odd, so it stays.
Example 4. Seats with a middle seat
=ODD(A2)Setting out an odd number of seats, at least the head count A2, leaves a seat in the middle.
Head count A2 =ODD(A2) 8 9 9 9 12.5 13 -2 -3
Common mistakes
It is not rounding to the nearest
ODD always moves away from zero. 2.1 becomes 3.
Confusing it with ISODD
To only check whether a number is odd, use ISODD. ODD changes the value.
Wanting the nearest odd number
4 becomes 5, never 3. For the nearest odd number in either direction use =2*ROUND((A2-1)/2, 0)+1.
FAQ
- What about 0?
- ODD(0) is 1, the nearest odd number above 0.
- How do I just round up to an integer?
- Use ROUNDUP(number, 0).
- Round up to even?
- Use EVEN. EVEN(3) is 4.