Flag even or odd numbers — for alternating logic, every-other-row rules, or parity checks. ISEVEN and ISODD return TRUE/FALSE directly.
ISODD is the reverse. They ignore any fractional part.
The example
Numbers tested for parity.
| A | B | |
|---|---|---|
| 1 | Number | Even? |
| 2 | 4 | TRUE |
| 3 | 7 | FALSE |
The formula
Parity as TRUE/FALSE:
How it works
Direct parity tests:
ISEVEN(number)is TRUE for even,ISODDfor odd.- They truncate any decimals first, so 4.9 is treated as 4 (even).
- Equivalent to
MOD(A2, 2) = 0— useful inside other formulas. - Common use: alternate-row shading
=ISODD(ROW()), or pairing rows in two columns.
Every-other-row banding uses =ISEVEN(ROW()) in conditional formatting. For grouping items into pairs or alternating actions, ISODD/ISEVEN on a counter is cleaner than a MOD comparison.
Try it: interactive demo
Enter a number.
Variations
Is odd
Reverse:
MOD version
Equivalent:
Band every other row
CF rule:
Pitfalls & errors
Decimals truncate. ISEVEN(4.9) is TRUE (treats it as 4). Round first if that’s not intended.
Negatives. Parity works on negatives too (−4 is even), but the truncation still applies.
Text errors. Non-numeric input returns #VALUE!.
Practice workbook
Frequently asked questions
How do I test if a number is even or odd in Excel?
How do I shade every other row using parity?
How does ISEVEN handle decimals?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class