This article describes the formula syntax and usage of the ISODD function in Microsoft Excel.
Description
Returns TRUE if number is odd, or FALSE if number is even.
Syntax
ISODD(number)
The ISODD function syntax has the following arguments:
-
Number Required. The value to test. If number is not an integer, it is truncated.
Remark
If number is nonnumeric, ISODD returns the #VALUE! error value.
Example
Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.
Formula |
Description |
Live Result |
=ISODD(-1) |
Checks whether -1 is odd |
TRUE |
=ISODD(2.5) |
Checks whether 2.5 is odd |
FALSE |
=ISODD(5) |
Checks whether 5 is odd |
TRUE |