WorksheetFunction.IsOdd(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks the type of value and returns true or false depending if the value is odd.
public:
bool IsOdd(System::Object ^ Arg1);
public bool IsOdd (object Arg1);
Public Function IsOdd (Arg1 As Object) As Boolean
Parameters
- Arg1
- Object
Value - the value you want tested. Value can be a blank (empty cell), error, logical, text, number, or reference value, or a name referring to any of these, that you want to test.
Returns
Remarks
The value arguments of the IS functions are not converted. For example, in most other functions where a number is required, the text value "19" is converted to the number 19. However, in the formula ISNUMBER("19"), "19" is not converted from a text value, and the IsNumber(Object) function returns false.
The IS functions are useful in formulas for testing the outcome of a calculation. When combined with the IF function, they provide a method for locating errors in formulas.