Summary

The Excel ISODD function returns TRUE when a value is an odd number, and FALSE when a value is an even number. ISODD will return the #VALUE error if a value is not numeric.

Purpose
Test if a value is odd
Return value
A logical value (TRUE or FALSE)
Syntax
=ISODD(value)
  • value - The numeric value to check.

Using the ISODD function

The ISODD function tests for odd numbers. ISODD takes one argument, value, which should be a numeric value or a cell reference. When value is an odd number, ISODD returns TRUE. When value is an even number, ISODD returns FALSE. If value is not numeric, ISODD will return the #VALUE error. Only the integer portion of value is evaluated, decimal values are truncated.

Examples

The ISODD function returns TRUE or FALSE:

=ISODD(4) // returns FALSE
=ISODD(3) // returns TRUE
=ISODD(0) // returns FALSE

If cell A1 contains 11, the formula below returns TRUE:

=ISODD(A1) //returns TRUE

Only the integer portion of value is tested. If value is a decimal number, the decimal portion is truncated:

=ISODD(4.1) // returns FALSE
=ISODD(0.33) // returns FALSE
=ISODD(7.4) // returns TRUE

Notes

  • If value is not numeric, ISODD will return the #VALUE error.
  • Only the integer portion of value is tested; decimal values are truncated.
  • Use the ISEVEN function to test for even numbers.

Video: How to apply conditional formatting with a formula (3 min, free). It's one of 29 lessons in our Conditional Formatting course.

Support Exceljet

Many websites (including Exceljet) have lost over half their traffic in the past year because of the crushing impact of AI on web searches. Exceljet is still at it, publishing free content each week. If you find Exceljet helpful, you can support the site and go ad-free with the Exceljet Lifetime Pass. One payment, no subscription, and ads are gone forever. Plus, you get our Excel Shortcuts video course as a thank you.

Get the Lifetime Pass

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.