Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jenn
 
Posts: n/a
Default "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   Report Post  
Niek Otten
 
Posts: n/a
Default

=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   Report Post  
paul
 
Posts: n/a
Default

=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   Report Post  
garfield-n-odie
 
Posts: n/a
Default

=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   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

=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   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

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   Report Post  
jenn
 
Posts: n/a
Default

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   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

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   Report Post  
CLR
 
Posts: n/a
Default

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   Report Post  
jenn
 
Posts: n/a
Default

thanks ppl!
it has been enlightening!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking Winning Numbers in the Lottery. Ann Excel Discussion (Misc queries) 4 May 18th 05 10:55 AM
Match Last Occurrence of two numbers and Return Date Sam via OfficeKB.com Excel Worksheet Functions 6 April 5th 05 12:40 PM
Match Last Occurrence of two numbers and Count to Previous Occurence Sam via OfficeKB.com Excel Worksheet Functions 33 April 4th 05 02:17 PM
Count and Sum Total occurrances of two specific numbers Sam via OfficeKB.com Excel Worksheet Functions 10 March 29th 05 08:13 PM
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM


All times are GMT +1. The time now is 02:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"