#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default IF NOT Statement

What am I do wrong here?

=IF(NOT(ISNUMBER(J12),ISNUMBER(K12)),"boy","girl")

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200810/1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default IF NOT Statement

What am I do wrong here?

=IF(NOT(ISNUMBER(J12),ISNUMBER(K12)),"boy","girl")


Depends on what the formula is supposed to be doing. Can you tell us in
words what you expected the formula to do?

--
Rick (MVP - Excel)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default IF NOT Statement

Rick Rothstein wrote:
What am I do wrong here?

=IF(NOT(ISNUMBER(J12),ISNUMBER(K12)),"boy","girl")


Depends on what the formula is supposed to be doing. Can you tell us in
words what you expected the formula to do?

if J12 and K12 are not numbers then boy (True statement), girl (False
statement)

--
Message posted via http://www.officekb.com

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default IF NOT Statement

rtwiss via OfficeKB.com wrote:
Rick Rothstein wrote:
What am I do wrong here?

=IF(NOT(ISNUMBER(J12),ISNUMBER(K12)),"boy","girl")

Depends on what the formula is supposed to be doing. Can you tell us in
words what you expected the formula to do?

if J12 and K12 are not numbers then boy (True statement), girl (False
statement)



=IF(NOT(AND(ISNUMBER(J12),ISNUMBER(K12))),"boy","g irl")
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default IF NOT Statement

Try this...

=IF(AND(NOT(ISNUMBER(J12)),NOT(ISNUMBER(K12))),"bo y","girl")

--
Rick (MVP - Excel)


"rtwiss via OfficeKB.com" <u46610@uwe wrote in message
news:8bc49732f7c51@uwe...
Rick Rothstein wrote:
What am I do wrong here?

=IF(NOT(ISNUMBER(J12),ISNUMBER(K12)),"boy","girl")


Depends on what the formula is supposed to be doing. Can you tell us in
words what you expected the formula to do?

if J12 and K12 are not numbers then boy (True statement), girl (False
statement)

--
Message posted via http://www.officekb.com




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default IF NOT Statement

Actually, for what you have described, I think this will do what you want
also...

=IF(COUNT(J12:K12)=0,"boy","girl")

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
Try this...

=IF(AND(NOT(ISNUMBER(J12)),NOT(ISNUMBER(K12))),"bo y","girl")

--
Rick (MVP - Excel)


"rtwiss via OfficeKB.com" <u46610@uwe wrote in message
news:8bc49732f7c51@uwe...
Rick Rothstein wrote:
What am I do wrong here?

=IF(NOT(ISNUMBER(J12),ISNUMBER(K12)),"boy","girl")

Depends on what the formula is supposed to be doing. Can you tell us in
words what you expected the formula to do?

if J12 and K12 are not numbers then boy (True statement), girl (False
statement)

--
Message posted via http://www.officekb.com



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default IF NOT Statement

I don't think that does what the OP asked for. Both cells must contain
non-numbers for it to be "boy"... your formula returns "boy" if one is a
number and one is not a number... I'm pretty sure the OP want "girl"
returned for that condition.

--
Rick (MVP - Excel)


"Glenn" wrote in message
...
rtwiss via OfficeKB.com wrote:
Rick Rothstein wrote:
What am I do wrong here?

=IF(NOT(ISNUMBER(J12),ISNUMBER(K12)),"boy","girl")
Depends on what the formula is supposed to be doing. Can you tell us in
words what you expected the formula to do?

if J12 and K12 are not numbers then boy (True statement), girl (False
statement)



=IF(NOT(AND(ISNUMBER(J12),ISNUMBER(K12))),"boy","g irl")


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default IF NOT Statement

=IF((AND(NOT(ISNUMBER(J12)),NOT(ISNUMBER(K12))))," Boy","Girl")

Logic Results
J12 K12 Results
1 2 Girl
1 A Girl
A 1 Girl
A A Boy

if J12 and K12 are not numbers then boy (True statement), girl (False
statement)


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default IF NOT Statement

Excel tells you that there are too many arguments for the function. NOT
takes one argument, not two.

What you are trying to achieve is a different question.
--
David Biddulph

"rtwiss via OfficeKB.com" <u46610@uwe wrote in message
news:8bc46c676a3e6@uwe...
What am I do wrong here?

=IF(NOT(ISNUMBER(J12),ISNUMBER(K12)),"boy","girl")

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200810/1



  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default IF NOT Statement

Rick Rothstein wrote:
I don't think that does what the OP asked for. Both cells must contain
non-numbers for it to be "boy"... your formula returns "boy" if one is a
number and one is not a number... I'm pretty sure the OP want "girl"
returned for that condition.


You are probably right...

"if J12 and K12 are not numbers then boy (True statement), girl (False
statement)"

What if J12 is a number and K12 is not?


  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default IF NOT Statement

then false

Glenn wrote:
I don't think that does what the OP asked for. Both cells must contain
non-numbers for it to be "boy"... your formula returns "boy" if one is a
number and one is not a number... I'm pretty sure the OP want "girl"
returned for that condition.


You are probably right...

"if J12 and K12 are not numbers then boy (True statement), girl (False
statement)"

What if J12 is a number and K12 is not?


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200810/1

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
Sum if statement with a left statement Eric D Excel Discussion (Misc queries) 4 July 23rd 08 05:31 PM
SUMIF statement with AND statement Eric D Excel Discussion (Misc queries) 2 July 14th 08 07:24 PM
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM


All times are GMT +1. The time now is 06:28 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"