ISEVEN Function¶
The ISEVEN function in Excel is used to check whether a number is even. It returns TRUE when the number divides exactly by two and FALSE when it does not. Decimal values are truncated toward zero before the test, so ISEVEN reports on the integer part of the number rather than rejecting fractional input. This function is useful for alternating row logic, splitting records into two groups, and validating that a count or identifier has the expected parity.
Key Features of ISEVEN:¶
- Returns
TRUEwhen the number is even andFALSEwhen it is odd. - Truncates decimals toward zero before testing, so
ISEVEN(2.5)returnsTRUEbecause the integer part is2. - Treats
0as even, soISEVEN(0)returnsTRUE. - Handles negative numbers by parity of the truncated value —
ISEVEN(-4)returnsTRUE. - Is the exact complement of
ISODDfor every value both functions accept.
Syntax:¶
- number: The value you want to test for evenness. Typically a cell reference, a literal number, or a formula result.
How ISEVEN Works:¶
ISEVENconverts the supplied value to a number.- The number is truncated toward zero, discarding any fractional part.
- If the truncated value divides exactly by two,
ISEVENreturnsTRUE; otherwise it returnsFALSE.
Truncation happens before the parity test, not after, which is why ISEVEN(2.9) and ISEVEN(2) give the same answer.
Examples:¶
1. An Even Integer:¶
Result:
2. An Odd 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. Splitting Records Into Two Groups:¶
Result:
Notes:¶
ISEVENtruncates rather than rounds.ISEVEN(3.9)isFALSEbecause the integer part is3, even though3.9rounds to4.ISEVENis 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.ISEVENis 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: Confirm that a quantity that must come in pairs really is even before processing.
- 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:¶
- ISODD: Returns TRUE if the number is odd — the exact complement of
ISEVEN. - ISNUMBER: Returns TRUE if the value is a number; useful as a guard before
ISEVEN. - EVEN: Rounds a number up to the nearest even integer, rather than testing it.
- MOD: Returns the remainder of a division —
MOD(A1,2)=0is the manual equivalent ofISEVEN(A1). - TYPE: Returns a numeric code indicating the data type of a value.
- N: Converts a value to a number — logical
TRUEbecomes1andFALSEbecomes0.
Tip:
ISEVENtruncates toward zero rather than rounding, which is easy to forget when the input is a calculated value rather than a whole number. If the fractional part is meaningful to your test, wrap the argument inROUNDorINTexplicitly so the parity you get is the parity you meant.