Logical Functions
From Apache OpenOffice Wiki
- Functions Available in Calc
- Mathematical Functions
- Financial Analysis Functions
- Statistical Analysis Functions
- Date and Time Functions
- Logical Functions
- Informational Functions
- Database Functions
- Array Functions
- Spreadsheet Functions
- Text Functions
- Converting Decimal, Binary, Octal, Hexadecimal
- Complex Number Functions
Logical Functions
Table 41: Logical functions
| Syntax | Description |
|---|---|
| AND(logical_value_1; logical_value_2; …logical_value_30) | Returns TRUE if all arguments are TRUE. If any element is FALSE, this function returns the FALSE value. Logical_value_1; logical_value_2; …logical_value_30 are conditions to be checked. All conditions can be either TRUE or FALSE. If a range is entered as a parameter, the function uses the value from the range that is in the current column or row. The result is TRUE if the logical value in all cells within the cell range is TRUE. |
| FALSE() | Set the logical value to FALSE. The FALSE() function does not require any arguments. |
| IF(test; then_value; otherwise_value) | Returns a value depending on a logical test. Test is any value or expression that can be TRUE or FALSE. Then_value (optional) is the value that is returned if the logical test is TRUE. Otherwise_value (optional) is the value that is returned if the logical test is FALSE. |
| NOT(logical_value) | Reverses the logical value. Logical_value is any value to be reversed. |
| OR(logical_value_1; logical_value_2; …logical_value_30) | Returns TRUE if at least one argument is TRUE. Returns the value FALSE if all the arguments have the logical value FALSE. Logical_value_1; logical_value_2; …logical_value_30 are conditions to be checked. All conditions can be either TRUE or FALSE. If a range is entered as a parameter, the function uses the value from the range that is in the current column or row. |
| TRUE() | Sets the logical value to TRUE. The TRUE() function does not require any arguments. |
| Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY). |