totn Excel Functions

MS Excel: How to use the ODD Function (WS)

This Excel tutorial explains how to use the Excel ODD function with syntax and examples.

Description

The Microsoft Excel ODD function rounds a number up to the nearest odd integer. If the number is negative, the number is rounded away from zero.

The ODD function is a built-in function in Excel that is categorized as a Math/Trig Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the ODD function can be entered as part of a formula in a cell of a worksheet.

Syntax

The syntax for the ODD function in Microsoft Excel is:

ODD( number )

Parameters or Arguments

number
A numeric value that will be rounded up to the nearest odd integer.

Returns

The ODD function returns an integer value.

Applies To

  • Excel for Office 365, Excel 2019, Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Function

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel ODD function examples and explore how to use the ODD function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the Excel spreadsheet above, the following ODD examples would return:

=ODD(A1)
Result: 211

=ODD(A2)
Result: 3

=ODD(A3)
Result: -3

=ODD(7)
Result: 7

=ODD(8)
Result: 9