[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
emaloney
Newbie

Joined: 24 Apr 2012
Posts: 3

 Posted: Tue Apr 24, 2012 1:31 pm    Post subject: in CALC, logical operator "AND" read blank as TRUE In Calc, when I reference a blank cell as one of the variables in a logical "AND" function it wrongly reads the blank as TRUE, thus giving a TRUE result to the "AND" function. Shouldn't a blank be read as FALSE? In calculations, blank cells are read as zero; why not also read blank as zero by logic functions?
keme
Moderator

Joined: 30 Aug 2004
Posts: 2732
Location: Egersund, Norway

 Posted: Wed Apr 25, 2012 5:16 am    Post subject: And disregards nonexistent values. AND(A1;A2) will return #VALUE if A1 and A2 are both empty. If one is nonzero and the other is empty it returns TRUE. To force calc to return a value from an empty cell, use a calculation. The N() function is perhaps the most logical. =AND(N(A1);N(A2))
emaloney
Newbie

Joined: 24 Apr 2012
Posts: 3

 Posted: Wed Apr 25, 2012 8:34 am    Post subject: AND(blank,number) returns "1" Hi Thanks so much for your reply. FYI: AND(blank,integer) returns "1" ("AND" function referencing a blank cell and a cell containing an integer) is the situation where I found unexpected result for "AND" function. I really appreciate your feedback! Erin
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum