A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"E" for even numbers. "O" for odd numbers.



 
 
Thread Tools Display Modes
  #1  
Old June 23rd, 2005, 10:22 AM
jenn
external usenet poster
 
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  
Old June 23rd, 2005, 10:50 AM
Niek Otten
external usenet poster
 
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  
Old June 23rd, 2005, 10:51 AM
paul
external usenet poster
 
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  
Old June 23rd, 2005, 10:51 AM
garfield-n-odie
external usenet poster
 
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  
Old June 23rd, 2005, 10:56 AM
Mangesh Yadav
external usenet poster
 
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  
Old June 23rd, 2005, 11:03 AM
Mangesh Yadav
external usenet poster
 
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  
Old June 23rd, 2005, 11:45 AM
jenn
external usenet poster
 
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  
Old June 23rd, 2005, 11:57 AM
Mangesh Yadav
external usenet poster
 
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  
Old June 23rd, 2005, 12:01 PM
CLR
external usenet poster
 
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  
Old June 24th, 2005, 03:45 AM
jenn
external usenet poster
 
Posts: n/a
Default

thanks ppl!
it has been enlightening!
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 02:22 AM.


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