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

From Apache OpenOffice Wiki

< Documentation | How Tos

OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
m |
||

Line 31: | Line 31: | ||

* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||

* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||

− | [[Category: Documentation/Reference/Calc]] | + | [[Category: Documentation/Reference/Calc/Logical functions]] |

## Revision as of 07:33, 19 April 2010

## AND

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

### Syntax:

**AND(argument1; argument2 ...argument30)**

` argument1` to

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

**argument30**

` AND` tests every value (as an argument, or in each referenced cell), and returns

`if they are all`

**TRUE**`. Any value which is a`

**TRUE****non-zero number**or

**text**is considered to be

`.`

**TRUE**### Example:

If cells A5:B8 all contain ` TRUE`, cell C2 contains

`and cell C3 contains "`

**=TRUE()**`":`

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

- returns
.**TRUE**

**AND(2<4;FALSE)**

- returns
.**FALSE**

` AND(C2:C3)`)

- returns
.**TRUE**