# AND Function

> Test whether all conditions are true with the AND formula function of TX Sheet Control: logical values, numbers as conditions, the #VALUE! error and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > AND Function
- **187 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/and/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/and/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/and/llms-full.txt

---

Return TRUE when all conditions are true, and FALSE when at least one is false. Each `logical` argument is a condition, a logical value, a number (0 is FALSE, any other number TRUE) or a range of them. A text argument returns `#VALUE!`.

### Syntax

```text
AND(logical1, logical2)
```

Category: Logical. Minimum arguments: 1. Maximum arguments: 255.

Available for supported offline calculation.

### Examples

```text
=AND(10>5,20<30)
```

The formula returns TRUE, because both comparisons are true.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [AMORLINC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/amorlinc/llms-full.txt)
- **Next:** [ARABIC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/arabic/llms-full.txt)
