Difference between revisions of "Documentation/How Tos/Calc: AND function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
(One intermediate revision by one other user not shown)
Line 1: Line 1:
__NOTOC__
+
{{Documentation/MasterTOC
 +
|bookid=1234'''
 +
|booktitle=<div style="padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;">CALC FUNCTIONS</div>
 +
|ShowParttitle=block|parttitle=[[Documentation/How_Tos/Calc:_Logical_functions|<div style="font-size: 140%;">Logical  Functions]]
 +
|ShowNextPage=block|NextPage=Documentation/How_Tos/Calc:_FALSE_function
 +
|ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_Logical_functions|
 +
|ShowPrevPart=block|PrevPart=Documentation/How_Tos/Calc:_Information_functions
 +
|ShowNextPart=block|NextPart=Documentation/How_Tos/Calc:_Mathematical_functions
 +
|toccontent= <div style="padding: 4px; font-size: 130%; font-weight: hidden; background-color:#DCE9FC;">FUNCTIONS</div>
 +
 
 +
* [[Documentation/How_Tos/Calc:_AND_function|<div style="font-size: 120%; border-style: double; border-color:#778899;">And]]
 +
* [[Documentation/How_Tos/Calc:_FALSE_function|<div style="font-size: 120%;">False]]
 +
* [[Documentation/How_Tos/Calc:_IF_function|<div style="font-size: 120%;">If]]
 +
* [[Documentation/How_Tos/Calc:_NOT_function|<div style="font-size: 120%;">Not]]
 +
* [[Documentation/How_Tos/Calc:_OR_function|<div style="font-size: 120%;">Or]]
 +
* [[Documentation/How_Tos/Calc:_TRUE_function|<div style="font-size: 120%;">True]]
 +
}}__TOC__
  
 
== AND  ==
 
== AND  ==
Line 23: Line 39:
 
: returns <tt>'''TRUE'''</tt>.
 
: returns <tt>'''TRUE'''</tt>.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: OR function|OR]]
 
* [[Documentation/How_Tos/Calc: OR function|OR]]
 
* [[Documentation/How_Tos/Calc: NOT function|NOT]]
 
* [[Documentation/How_Tos/Calc: NOT function|NOT]]

Revision as of 12:43, 16 July 2018


AND

Returns TRUE if all the arguments are considered TRUE, and FALSE otherwise.

Syntax:

AND(argument1; argument2 ...argument30)

argument1 to argument30 are up to 30 arguments, each of which may be a logical result or value, or a reference to a cell or range.


AND tests every value (as an argument, or in each referenced cell), and returns TRUE if they are all TRUE. Any value which is a non-zero number or text is considered to be TRUE.

Example:

If cells A5:B8 all contain TRUE, cell C2 contains =TRUE() and cell C3 contains "dog":

AND(2<4;A5:B8;C2)

returns TRUE.

AND(2<4;FALSE)

returns FALSE.

AND(C2:C3))

returns TRUE.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_AND_function&oldid=243243"
Views
Personal tools
Navigation
Tools