ODD function
ODD rounds a number up in size to the next odd whole number, moving away from zero. Positive numbers go up and negative numbers go down, and the result for zero is 1.
Example
Read it as a sentence: round 2 up to the nearest odd whole number, which gives 3.
A
B
C
D
1
3
2
3
Syntax
ODD(number)
-
number(required) - The value to round.
Returns: The nearest odd integer, rounding away from zero.
What Excel actually returns
Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.
| Formula | Excel shows | Case |
|---|---|---|
=ODD(0.5) | 1 | Positive |
=ODD(0) | 1 | Zero |
=ODD(-0.5) | -1 | Negative |
=ODD(2) | 3 | Larger value |
=ODD("0.5") | 1 | Text number "0.5" |
=ODD(TRUE) | 1 | TRUE |
=ODD("abc") | #VALUE! | Non-numeric text |
=ODD(Data!E4) | #DIV/0! | Error cell propagates |
The Data sheet these formulas read
A cell that starts with = holds that formula.
E
1
5
2
abc
3
TRUE
4
=1/0
Data
Watch out for
- ODD(0) returns 1.
- Negative numbers round further negative.
Where it works
- Excel
- ODD is in every version of Excel from 2007 on.
- Google Sheets
- Same name, same behaviour for everyday use.
Part of Math and trig functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .