If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#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! |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page Layout for Page Numbers | DL Freedman | Page Layout | 1 | December 8th, 2004 10:17 PM |
Problem with Page Numbers in Index using Word 2002 | jdkelley | General Discussion | 1 | December 1st, 2004 03:32 PM |
Searcing multiple numbers | Ken | General Discussion | 4 | November 6th, 2004 02:53 PM |
Random Numbers from a List of Numbers | [email protected] | Worksheet Functions | 3 | February 13th, 2004 01:27 AM |
Alphanumeric sort with mixed numbers | David Kingsworthy | Worksheet Functions | 1 | September 26th, 2003 05:51 PM |