Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - Determine if a number IS Odd or Even

Status
Not open for further replies.

gshock

Technical User
Oct 28, 2002
11
CA
Trying to find a way to validate a number by determining whether the number is odd or even (a true or false argument).

Help is kindly appreciated.

Thanks.
 
if number/2 = integer of number /2

=A1/2=INT(A1/2)



[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
With your data in A1

=ISODD(A1)

or

=ISEVEN(A1)

This will give you the TRUE/FALSE result. (May well be part of the Analysis Toolpak addin though (Not sure to be honest)

Regards
Ken.............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]

----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top