The ODD function rounds a number away from zero to the nearest odd integer. Positive numbers round up to the next odd number, and negative numbers round down to the next more negative odd number.
=ODD(number)What does ODD do?
The ODD function belongs to Excel's Math & Trigonometry category. It takes a single number and returns the nearest odd integer that is further away from zero. For example, =ODD(4) returns 5, =ODD(5) returns 5, and =ODD(-4) returns -5. If you give it a decimal such as 2.3, it rounds up to 3; if you give it 2.9, it still returns 3.
This matters when a calculation must produce an odd count, size, or identifier. Many business rules, packaging standards, seating plans, and scheduling systems require odd quantities. Instead of manually adjusting numbers, you can let ODD do the rounding consistently and avoid mistakes.
A typical situation: an event planner needs an odd number of centrepieces per table so each table has a clear middle piece. The raw count from a seating chart might be even, so =ODD(count) instantly gives the next odd number. The same logic applies to ordering spare parts, setting batch sizes, or generating odd-numbered reference codes.
When to use ODD
- Rounding a calculated quantity up to an odd number for packaging or ordering rules.
- Creating odd-numbered seat, table, or row assignments.
- Adjusting batch sizes or sample counts that must be odd for quality checks.
- Generating odd reference numbers or codes from a base value.
- Enforcing odd grid sizes in design or layout calculations.
- Converting even counts to the next odd count in scheduling or staffing.
ODD syntax
=ODD(number)| Argument | Required? | What to enter |
|---|---|---|
number | Required | The value you want to round up to an odd integer. It can be a number, a cell reference, or a formula result. For example, =ODD(4) returns 5. |
What it returns: The nearest odd integer that is further away from zero than the supplied number. Positive values round up, negative values round down, and exact odd integers are returned unchanged.
ODD examples
1 Basic rounding of positive numbers
This example shows how ODD treats whole numbers and decimals. The goal is to see the rounding direction clearly. For each value in column B, the formula =ODD(B2) returns the next odd integer away from zero. Whole even numbers move up by one, whole odd numbers stay the same, and decimals round up to the next odd integer.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Input | Value | |||
| 2 | Even whole | 4 | 5 | ||
| 3 | Odd whole | 5 | |||
| 4 | Decimal below odd | 2.3 | |||
| 5 | Decimal above odd | 2.9 | |||
| 6 | Zero | 0 | |||
| 7 |
2 Rounding negative numbers
ODD always rounds away from zero, so negative numbers become more negative. The formula =ODD(B2) on -3 returns -3 because it is already odd. On -4 it returns -5, and on -2.1 it returns -3. This behaviour is useful when negative adjustments must also land on an odd value.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Case | Value | |||
| 2 | Negative odd | -3 | -3 | ||
| 3 | Negative even | -4 | |||
| 4 | Negative decimal | -2.1 | |||
| 5 | Negative decimal close to odd | -2.9 | |||
| 6 | Large negative | -10 | |||
| 7 |
3 Odd centrepieces per table
An event planner wants an odd number of centrepieces on each table. Column B holds the raw count from the seating plan. The formula =ODD(B2) converts each count to the next odd number. For example, 6 becomes 7 and 9 stays 9. The planner can then order the correct total.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Table | Raw Count | |||
| 2 | Table 1 | 6 | 7 | ||
| 3 | Table 2 | 9 | |||
| 4 | Table 3 | 4 | |||
| 5 | Table 4 | 11 | |||
| 6 | Table 5 | 8 | |||
| 7 |
4 Odd batch size for quality checks
A quality team must inspect an odd number of units from each production run. Column B contains the calculated sample size. Using =ODD(B2), the team rounds each sample up to an odd number. A sample of 12 becomes 13, and 15 remains 15. This keeps the inspection rule consistent across all runs.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Run | Sample Size | |||
| 2 | Run A | 12 | 13 | ||
| 3 | Run B | 15 | |||
| 4 | Run C | 20 | |||
| 5 | Run D | 7 | |||
| 6 | Run E | 18 | |||
| 7 |
5 Odd-numbered reference codes from a base value
A small office assigns odd reference numbers to new files. Column B holds a base number taken from the last record. The formula =ODD(B2) produces the next odd reference. For base 100 it returns 101, for 101 it returns 101, and for 102 it returns 103. Staff can copy the formula down to generate a sequence of odd codes.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | File | Base Number | |||
| 2 | File 1 | 100 | 101 | ||
| 3 | File 2 | 101 | |||
| 4 | File 3 | 102 | |||
| 5 | File 4 | 105 | |||
| 6 | File 5 | 108 | |||
| 7 |
Common ODD errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #VALUE! | The number argument is text that Excel cannot convert to a number, such as "five" or a cell containing only spaces. | Make sure the cell contains a number or a numeric text value. Use =ODD(VALUE(A1)) if the number is stored as text, or clean the source data. |
| #NAME? | The function name is misspelled, for example =ODDD(4) or =OD(4). | Type =ODD( and let Excel suggest the function, or correct the spelling to ODD. |
| #NUM! | The result is too large for Excel to display, which can happen with extremely large input values. | Check that the input is within Excel's numeric limits. Reduce the value or split the calculation. |
| Wrong rounding direction | Expecting ODD to round toward zero for negative numbers. ODD always rounds away from zero. | Remember that =ODD(-4) returns -5, not -3. If you need the opposite direction, use a different formula such as =ODD(ABS(A1))*-1 only when appropriate. |
Tips for using ODD
- Use ODD when a rule requires an odd integer; for even integers use the EVEN function instead.
- ODD returns the same value if the input is already an odd integer, so it is safe to apply repeatedly.
- Combine ODD with ROUND or INT when you first need to control decimal places before forcing an odd result.
- For negative numbers, ODD moves away from zero, so -2 becomes -3 and -4 becomes -5.
- Test a few values in a blank cell before applying the formula to a whole column.
- If the input might be text, wrap it with VALUE or clean the source data to avoid #VALUE! errors.
Frequently asked questions
What does the ODD function do in Excel?
ODD rounds a number away from zero to the nearest odd integer. For example, =ODD(4) returns 5 and =ODD(5) returns 5.
How is ODD different from EVEN?
ODD rounds to the nearest odd integer, while EVEN rounds to the nearest even integer. Both round away from zero.
Does ODD round negative numbers up or down?
ODD rounds negative numbers away from zero, so -4 becomes -5 and -2.1 becomes -3.
Can ODD handle decimals?
Yes. ODD ignores the decimal part and returns the next odd integer away from zero. For example, 2.3 returns 3 and 2.9 returns 3.
Why do I get #VALUE! with ODD?
The argument is probably text that cannot be converted to a number. Check the cell contents and remove any non-numeric characters.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. ODD reference