Contact

AND Function (OpenOffice Calc)

Logical Intermediate OpenOffice Calc

Learn the AND function in Apache OpenOffice Calc: Returns TRUE if all arguments are TRUE.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Availability and version history

  • Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
  • Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

AND combines conditions into one logical result. Every participating numeric/logical value must be nonzero for the result to be TRUE. A single zero makes it FALSE. Use it to express an all-requirements rule, rather than to count how many requirements passed.

Syntax and arguments

=AND(logical_1; logical_2; ...)

At least one argument is required. The retained function-resource documentation describes 1 to 30 arguments, which may include cell references or ranges. Numeric zero is false; any nonzero number, including a negative number, is true. Ordinary comparisons such as A2>=60 already return logical values. Examples use English function names and semicolon argument separators.

Reproducible examples

Formula Expected result
=AND(TRUE();FALSE()) FALSE
=AND(TRUE();TRUE()) TRUE
=AND(1;2;-3) TRUE
=AND(1;0;-3) FALSE
=AND(5>3;8<10) TRUE
=AND(0) FALSE

The first formula preserves the original example and result. Its historical comparable LibreOffice 25.2 check was not an OpenOffice test. New results are independent reference expectations checked against the pinned source, not fresh native worksheet captures.

Practical worksheet: require both a score and attendance threshold

Use headers Score in A1 and Attendance in B1. Enter rows (72;0.90), (58;0.95), (84;0.70) and (60;0.80) in A2:B5. In C2 enter =AND(A2>=60;B2>=0.8) and fill down. Expected results are TRUE, FALSE, FALSE and TRUE. The boundary row passes because both comparisons include equality.

In D2 enter =IF(C2;"Ready";"Review") and fill down. Labels are Ready, Review, Review and Ready. Keep the intermediate logical result visible: it separates the rule from its presentation and makes it easier to identify which component failed.

Advanced applications

Validate an interval. With a numeric measurement in A2, =AND(A2>=10;A2<=20) accepts both endpoints. Values 9, 10, 15, 20 and 21 give FALSE, TRUE, TRUE, TRUE and FALSE. It does not mean A2 equals both bounds simultaneously.

Compare complementary rules. For valid logical inputs P and Q, NOT(AND(P;Q)) has the same truth table as OR(NOT(P);NOT(Q)). This identifies at least one failed requirement. The equivalence does not excuse ignoring errors or changing how text inputs are handled.

Inspect range participation. Enter 1 in A2, text note in A3 and leave A4 genuinely empty. AND(A2:A4) evaluates the numeric participant and yields TRUE. Enter 0 in A5 and AND(A2:A5) becomes FALSE. Neither the note nor the blank proves a required field was supplied; add separate completeness checks when missing entries should fail.

Errors, edge cases and troubleshooting

The inspected callback rejects direct string arguments through its no-value error path. Text and empty cells encountered through ordinary references/ranges do not contribute numeric truth values. If no usable value remains, the callback returns a no-value error rather than inventing TRUE or FALSE. Thus an all-text/empty range is not a reliable empty-set logical identity.

An error among the participating inputs is not made safe by another condition that already determines the logical answer. Do not rely on AND as a short-circuit guard for division or other unsafe expressions. Check the risky calculation separately or use a deliberately tested conditional structure.

A range result is one aggregate logical value, not a row-by-row result for every cell. For record-level rules, write explicit comparisons on one row and fill down. The source has separate reference, range and matrix paths; these ordinary examples do not certify all array, text-coercion or error-display behavior. Hidden missing values can be ignored rather than fail the rule, so validate required input fields independently.

Documentation and verification

See the Apache OpenOffice AND reference, 4.1.16 function resources and versioned interpreter. The official source snapshots were retrieved October 13, 2026 and re-read for this guide; their dates have not been relabeled as fresh retrievals. Boolean truth tables, scalar type models and worksheet calculations are independently checked. No new native/headless application or GUI execution is claimed. Original introduction and final functioning version remain unestablished, separate from documented 4.1.16 support.