Function · Rounding
Excel ODD function
The Excel ODD function rounds away from zero to the next odd integer. 2.5 becomes 3. -2.5 becomes -3. A number that is already odd stays put.
Syntax =ODD(number)
=ODD(2.5)Arguments
| Name | Required | What to pass |
|---|---|---|
| number | Required | The number to round away from zero to an odd integer. |
Examples
2.5 rounded away from zero to an odd integer
=ODD(2.5)Result 3
| A | B | |
|---|---|---|
| 1 | Value | 2.5 |
| 2 | Odd | 3 |
ODD moves away from zero until it lands on an odd integer. 2.5 becomes 3. -2.5 becomes -3. 3 and -3 stay where they are. 0 is even, so ODD(0) is 1, the first odd integer away from zero.
ISODD is the test. ISODD(2.5) is FALSE, because 2.5 is cut to 2. ODD(2.5) is 3. EVEN(2.5) is 4, one step further. The two functions answer different parking rules, not nearest-integer rounding. ROUND(2.5, 0) is 3 in Excel, which happens to match ODD here and would not match it for 3.2: ODD(3.2) is 5, and ROUND(3.2, 0) is 3.