Round a number up to the next even or odd whole number.
EVEN and ODD are rounding functions, not tests, and that surprises almost everybody who meets them. =EVEN(47) does not tell you whether 47 is even — it returns 48, the next even number. =ODD(48) returns 49.
Both round *away from zero*, so a negative number goes further negative: EVEN(-3) is -4, not -2. That makes them consistent with ROUNDUP rather than with ROUND, and it means they never return a smaller magnitude than they were given.
The functions that actually test are ISEVEN and ISODD, which return TRUE or FALSE. If you want to know whether something is even, those are what you want; EVEN and ODD are for packing and pairing problems where a quantity has to come out to a round pair.
=EVEN(number) =ODD(number)numberHeaders in row 1, data in A2:D5.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | On hand | Per box | Adjustment |
| 2 | Cordless drill | 47 | 12 | -8 |
| 3 | Extension lead | 140 | 24 | 15 |
| 4 | Safety goggles | 63 | 18 | 0 |
| 5 | Work gloves | 210 | 30 | -22 |
=EVEN(B2)Result: 48
47 rounded up to the next even number. It is not a test — the answer is a number.
=ODD(B2)Result: 47
47 is already odd, so ODD returns it unchanged.
=EVEN(D2)Result: -8
-8 is already even. Had it been -7, EVEN would return -8: away from zero, not toward it.
=ISEVEN(B3)Result: TRUE
The function people usually meant to reach for. 140 is even, so this returns TRUE.
Reading about a formula is not the same as writing one. Open this function's exercise and type it into a real grid — you get instant feedback on exactly which cell is wrong and why.
Why it happens: EVEN and ODD round; they do not test.
How to fix it: Use ISEVEN and ISODD for a TRUE/FALSE answer, or =MOD(A2, 2) = 0.
Why it happens: The argument is text.
How to fix it: Convert it to a number first.
Why it happens: Both round away from zero, so -3 becomes -4 rather than -2.
How to fix it: That is the documented behaviour. Apply the function to ABS and restore the sign with SIGN if you need the other direction.
Use ISEVEN, not EVEN. =ISEVEN(A2) returns TRUE or FALSE; =EVEN(A2) returns the next even number, which is a completely different thing. =MOD(A2, 2) = 0 also works and is the older idiom.
Both functions round away from zero, so a negative number moves further from zero rather than closer to it. This makes them consistent with ROUNDUP, which behaves the same way.
EVEN returns it unchanged. The same is true of ODD on an odd number. They only move a value when it does not already have the required parity.
Longer reads where this function does real work in a real sheet.