Spreadsheet Practice

ISEVEN function

ISEVEN returns TRUE when a number is even. It answers practical either-or questions: which side of the street a house is on, which shift an employee works, or which rows to shade. Decimals are dropped before the test, so 4.7 counts as 4.

Available in
Every current version
Category
Information functions
Returns
TRUE if the number is even, FALSE if it is odd. #VALUE! for text.
Google Sheets
Available in Google Sheets with the same argument.

Syntax

=ISEVEN(number)

ArgumentRequired?What it is
numberRequiredThe number to test. Decimals are truncated, so 4.7 counts as 4.

Examples

Each result below is calculated from the sample sheet by our formula engine, the same one that grades the practice.

CellFormulaResultWhat it shows
D2=IF(ISEVEN(A2),"North side","South side")North side214 is even, so it's on the north side
E2=SUMPRODUCT(--(MOD(A2:A6,2)=0))3ISEVEN takes one value at a time, so count a range with MOD
F2=ISEVEN(4.7)TRUETRUE: the decimal is dropped, leaving 4

Try it live

This is the sample sheet. Change any number or text, or edit a formula, and the results update.

Show the sample data as a table
House no.StreetRow 2 sideEven house numbersIs 4.7 even?
214Elm StNorth side3TRUE
215Elm St
302Oak Ave
317Oak Ave
400Pine Rd

Practice ISEVEN

Graded instantly, then re-checked on changed data.

Day or night shift

In C2, return Day if the employee ID in A2 is even, otherwise Night. Fill down to C7.

Common mistakes

What you seeWhy, and how to fix it
#VALUE!The cell holds text, such as "Unit 4". Pull the number out first, or test only cells where ISNUMBER is TRUE.
Blank cells count as evenAn empty cell is treated as 0, and 0 is even. Check ISBLANK first if blanks are possible.
#VALUE! for a whole rangeISEVEN is built for single values. To count even numbers in a range, use =SUMPRODUCT(--(MOD(A2:A6,2)=0)).

Tips

  • Shade every other row with a conditional formatting rule of =ISEVEN(ROW()).

Questions

How do I check if a number is even in Excel?

=ISEVEN(A2) returns TRUE for even numbers. =MOD(A2,2)=0 is the same test for whole numbers.

How do I shade every other row?

Use conditional formatting with the formula =ISEVEN(ROW()). It keeps working when you sort or insert rows.

Last reviewed October 2026. Every example result on this page is calculated live by the Spreadsheet Practice formula engine.