ODD Function Examples – Excel, VBA, & Google Sheets

This Excel Tutorial demonstrates how to use the Excel ODD Function in Excel to round the nearest odd integer, with formula examples.

ODD Function Description:

The ODD Function Rounds to the nearest odd integer. Positive numbers round up. Negative numbers round down.

Formula Examples:

odd function examples

Example Formula Result
1 =ODD(C5) 1
2 =ODD(C6) 1
3 =ODD(C7) 3
4 =ODD(C8) 3
AutoMacro - VBA Code Generator

Syntax and Arguments:

The Syntax for the ODD Formula is:


Function Arguments ( Inputs ):

number – A number.

Additional Notes

Use the ODD Function to round a number to the nearest odd integer. Simply enter any number directly into the formula, or reference a cell containing a number.

ODD Examples in VBA

You can also use the ODD function in VBA. Type:
For the function arguments (number, etc.), you can either enter them directly into the function, or define variables to use instead.

Return to the List of all Functions in Excel

How to use the ODD Function in Excel:

To use the AND Excel Worksheet Function, type the following into a cell:
After entering it in the cell, notice how the AND formula inputs appear below the cell:
odd formula syntax
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=ODD(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
how to use the odd function in excel

For more information about the ODD Formula visit the
Microsoft Website.

Excel Practice Worksheet

Practice Excel functions and formulas with our 100% free practice worksheets!

  • Automatically Graded Exercises
  • Learn Excel, Inside Excel!