Difference between revisions of "Documentation/How Tos/Calc: AND function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 23: | Line 23: | ||
: returns <tt>'''TRUE'''</tt>. | : returns <tt>'''TRUE'''</tt>. | ||
− | + | {{Documentation/SeeAlso| | |
− | + | * [[Documentation/How_Tos/Calc: OR function|OR]] | |
− | + | * [[Documentation/How_Tos/Calc: NOT function|NOT]]''' | |
− | + | * [[Documentation/How_Tos/Calc: Logical functions|Logical functions]]''' | |
− | [[Documentation/How_Tos/Calc: Functions listed alphabetically| | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] |
− | [[Documentation/How_Tos/Calc: Functions listed by category| | + | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} |
Revision as of 13:29, 25 February 2009
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.