ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   "E" for even numbers. "O" for odd numbers. (https://www.excelbanter.com/excel-worksheet-functions/32093-%22e%22-even-numbers-%22o%22-odd-numbers.html)

jenn

"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!

Niek Otten

=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!




paul

=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!


garfield-n-odie

=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!



Mangesh Yadav

=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!




Mangesh Yadav

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!






jenn

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

Mangesh Yadav

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




CLR

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






jenn

thanks ppl!
it has been enlightening!


All times are GMT +1. The time now is 07:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com