Home |
Search |
Today's Posts |
#1
|
|||
|
|||
"E" for even numbers. "O" for odd numbers.
hi there
I need a formula that will produce "E" or "O" for even or odd numbers in columnA. I have tried messing around with =if(A1=iseven,"E","O") but not to much success. What am i missing here? Thanks! |
#2
|
|||
|
|||
=IF(ISEVEN(A1),"E","O")
-- Kind regards, Niek Otten Microsoft MVP - Excel "jenn" wrote in message ... hi there I need a formula that will produce "E" or "O" for even or odd numbers in columnA. I have tried messing around with =if(A1=iseven,"E","O") but not to much success. What am i missing here? Thanks! |
#3
|
|||
|
|||
=IF(ISEVEN(A1)=TRUE,"E","O")
-- paul remove nospam for email addy! "jenn" wrote: hi there I need a formula that will produce "E" or "O" for even or odd numbers in columnA. I have tried messing around with =if(A1=iseven,"E","O") but not to much success. What am i missing here? Thanks! |
#4
|
|||
|
|||
=IF(ISEVEN(A1),"E","O")
jenn wrote: hi there I need a formula that will produce "E" or "O" for even or odd numbers in columnA. I have tried messing around with =if(A1=iseven,"E","O") but not to much success. What am i missing here? Thanks! |
#5
|
|||
|
|||
=IF(MOD(A1,2)=0,"E","O")
and to take care of blanks. =IF(A1="","",IF(MOD(A1,2)=0,"E","O")) Mangesh "jenn" wrote in message ... hi there I need a formula that will produce "E" or "O" for even or odd numbers in columnA. I have tried messing around with =if(A1=iseven,"E","O") but not to much success. What am i missing here? Thanks! |
#6
|
|||
|
|||
You need the Analysis toolpak enabled to use the ISEVEN function.
Mangesh "Niek Otten" wrote in message ... =IF(ISEVEN(A1),"E","O") -- Kind regards, Niek Otten Microsoft MVP - Excel "jenn" wrote in message ... hi there I need a formula that will produce "E" or "O" for even or odd numbers in columnA. I have tried messing around with =if(A1=iseven,"E","O") but not to much success. What am i missing here? Thanks! |
#7
|
|||
|
|||
hey ppl,
both the =if(iseven....etc) and =if(mod...etc) worked great! thanks Mangesh Yadav has warned me about blanks...and it is a problem. Any cells left blank are considered Even. What should i do? Thanks |
#8
|
|||
|
|||
As I said in my earlier post, check for blanks. Use:
=IF(A1="","",IF(ISEVEN(A1),"E","O")) Mangesh "jenn" wrote in message ... hey ppl, both the =if(iseven....etc) and =if(mod...etc) worked great! thanks Mangesh Yadav has warned me about blanks...and it is a problem. Any cells left blank are considered Even. What should i do? Thanks |
#9
|
|||
|
|||
And, this checks for TEXT........
=IF(ISNUMBER(A1),IF(A1="","",IF(ISEVEN(A1),"E","O" )),"") Vaya con Dios, Chuck, CABGx3 "Mangesh Yadav" wrote in message ... As I said in my earlier post, check for blanks. Use: =IF(A1="","",IF(ISEVEN(A1),"E","O")) Mangesh "jenn" wrote in message ... hey ppl, both the =if(iseven....etc) and =if(mod...etc) worked great! thanks Mangesh Yadav has warned me about blanks...and it is a problem. Any cells left blank are considered Even. What should i do? Thanks |
#10
|
|||
|
|||
thanks ppl!
it has been enlightening! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Checking Winning Numbers in the Lottery. | Excel Discussion (Misc queries) | |||
Match Last Occurrence of two numbers and Return Date | Excel Worksheet Functions | |||
Match Last Occurrence of two numbers and Count to Previous Occurence | Excel Worksheet Functions | |||
Count and Sum Total occurrances of two specific numbers | Excel Worksheet Functions | |||
Converting Numbers to Text properly | Excel Discussion (Misc queries) |