Excel function

ISODDfunction

Checks whether a number is odd.

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

Click a cell in the table to change value. -7 is odd, so TRUE. A blank cell is treated as 0, so FALSE. Try breaking it on purpose to see the errors.

Result

TRUE

value
A9You can also click a cell in the table

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

What is the ISODD function?

=ISODD(number)

ISODD returns TRUE if a number is odd. 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.

ISODD splits items into two groups by odd and even numbers, or shades every other row with conditional formatting. Decimals are judged by their integer part, so 2.5 counts as 2 and returns FALSE.

Arguments

number
The value or cell to test.

ISODD examples

  1. Example 1. Check for odd

    =ISODD(A9)

    -7 is odd, so TRUE.

  2. Example 2. Shade every other row

    =ISODD(ROW())

    Use it in conditional formatting to color odd rows.

  3. Example 3. Results for different values

    =ISODD(A2)

    A blank cell counts as 0, so it is FALSE.

    A2=ISODD(A2)
    3TRUE
    4FALSE
    2.5FALSE
    -7TRUE
    BlankFALSE
  4. Example 4. Split into two teams

    =IF(ISODD(A2), "Team A", "Team B")

    Odd ticket numbers go to Team A and even ones to Team B.

Common mistakes

FAQ

Even numbers?
Use ISEVEN.
Negative numbers?
They work. -7 is odd.
Can MOD do the same?
=MOD(A2, 2)=1 also works. MOD(-7, 2) is 1, so negative odd numbers are TRUE too.