ISODD Function¶
The ISODD function in Excel is used to check whether a number is odd. It returns TRUE when the number leaves a remainder of one after division by two and FALSE when it divides exactly. Decimal values are truncated toward zero before the test, so ISODD reports on the integer part of the number rather than rejecting fractional input. This function is useful for alternating logic, splitting records into two groups, and validating the parity of a count or identifier.
Key Features of ISODD:¶
- Returns
TRUEwhen the number is odd andFALSEwhen it is even. - Truncates decimals toward zero before testing, so
ISODD(3.7)returnsTRUEbecause the integer part is3. - Treats
0as even, soISODD(0)returnsFALSE. - Handles negative numbers by parity of the truncated value —
ISODD(-5)returnsTRUE. - Is the exact complement of
ISEVENfor every value both functions accept.
Syntax:¶
- number: The value you want to test for oddness. Typically a cell reference, a literal number, or a formula result.
How ISODD Works:¶
ISODDconverts the supplied value to a number.- The number is truncated toward zero, discarding any fractional part.
- If the truncated value leaves a remainder when divided by two,
ISODDreturnsTRUE; otherwise it returnsFALSE.
Truncation happens before the parity test, not after, which is why ISODD(3.1) and ISODD(3) give the same answer.
Examples:¶
1. An Odd Integer:¶
Result:
2. An Even Integer:¶
Result:
3. Zero:¶
Result:
4. A Decimal Value:¶
Result:
5. A Negative Number:¶
Result:
6. A Small Negative Decimal:¶
Result:
7. Banding Alternate Rows:¶
Result:
8. Flagging Unpaired Records:¶
Result:
Notes:¶
ISODDtruncates rather than rounds.ISODD(2.9)isFALSEbecause the integer part is2, even though2.9rounds to3.ISODDis a scalar function. UnlikeISTEXTorISBLANK, it evaluates a single value rather than mapping across a range.- A value that cannot be converted to a number produces an error rather than
FALSE. Guard uncertain input withISNUMBERfirst. #N/Aand infinite values are rejected as invalid numeric input.ISODDis part of the IS family of information functions (ISBLANK,ISERR,ISERROR,ISEVEN,ISLOGICAL,ISNA,ISNONTEXT,ISNUMBER,ISODD,ISTEXT, etc.).
Applications:¶
- Alternating Row Formatting: Combine with
ROW()to band a table without a helper column. - Batch Assignment: Split invoices, orders, or users into two balanced groups by identifier parity.
- Data Validation: Detect an odd count in a list where every entry should have a matching pair.
- Scheduling: Drive fortnightly or every-other-period logic from a week or period number.
- Checksum Logic: Implement parity checks in identifier validation routines.
Related Functions:¶
- ISEVEN: Returns TRUE if the number is even — the exact complement of
ISODD. - ISNUMBER: Returns TRUE if the value is a number; useful as a guard before
ISODD. - ODD: Rounds a number up to the nearest odd integer, rather than testing it.
- MOD: Returns the remainder of a division —
MOD(A1,2)=1is the manual equivalent ofISODD(A1). - TYPE: Returns a numeric code indicating the data type of a value.
- N: Converts a value to a number — logical
TRUEbecomes1andFALSEbecomes0.
Tip:
ISODDandISEVENare exact complements, so pick whichever one makes the formula read positively rather than wrapping the other inNOT.IF(ISODD(A1), ...)is easier to scan six months later thanIF(NOT(ISEVEN(A1)), ...).