Logical Functions

From Apache OpenOffice Wiki
< Documentation‎ | AOO4 User Guides/Calc Guide‎ | Description of Functions
Revision as of 09:20, 31 March 2026 by DiGro (talk | contribs) (Created page with "{{DISPLAYTITLE:Logical Functions}} {{Documentation/CG4DesofFuncTOC |ShowPrevNext=block |PrevPage=Documentation/AOO4_User_Guides/Calc Guide/Description of Functions/Date and Ti...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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).
Personal tools