Excel function

ISEVENfunction

Checks whether a number is even.

All versions
=ISEVEN(A3)
A
B
C
1
2
3
4
5
6
7
8
9
10

Click a cell in the table to change value. 2.5 is treated as its integer part 2, so TRUE. Click a text cell to get #VALUE!. Try breaking it on purpose to see the errors.

Result

TRUE

value
A3You can also click a cell in the table

The cell to test. Click another value in column A.

What is the ISEVEN function?

=ISEVEN(number)

ISEVEN returns TRUE if a number is even. It is most often used inside IF to treat values differently.

Column A of the sheet mixes text, numbers, a blank, a logical value, errors and text that looks like a number; column B says what each is. Column C shows the same formula copied down.

ISEVEN appears when you split work by even and odd page numbers, sort rooms or jersey numbers into two groups, or shade every other row. Decimals are judged by their integer part, so make sure the value is a whole number first.

Arguments

number
The value or cell to test.

ISEVEN examples

  1. Example 1. Check for even

    =ISEVEN(A3)

    120 is even, so TRUE.

  2. Example 2. Decimals

    =ISEVEN(2.5)

    Its integer part is 2, so TRUE.

  3. Example 3. Results for different values

    =ISEVEN(A2)

    0 and blank cells count as even.

    A2=ISEVEN(A2)
    120TRUE
    -7FALSE
    2.5TRUE
    0TRUE
    BlankTRUE
  4. Example 4. Shade even rows

    =ISEVEN(ROW())

    Used as a conditional formatting rule, it shades rows 2, 4, 6 and so on.

Common mistakes

FAQ

Odd numbers?
Use ISODD.
Can MOD do it?
Yes: =MOD(A3,2)=0 runs the same test.
How do I add only even numbers?
=SUMPRODUCT((MOD(A2:A10, 2)=0)*A2:A10).