Contact

AND Function (LibreOffice Calc)

Logical Beginner LibreOffice Calc Introduction not established

The AND function in LibreOffice Calc evaluates multiple logical conditions and returns TRUE only when all conditions are TRUE. Learn syntax, examples, common errors, and best practices.

Verification status: Consult the documentation, examples and any stated test scope below. How formula examples are checked

Availability and version history

  • Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
  • Availability: Supported in LibreOffice 26.8.1.1, 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.
The **AND** function is a core logical tool in LibreOffice Calc. It evaluates multiple conditions and returns TRUE only when *every* condition is TRUE. When combined with `IF`, `OR`, and comparison operators, `AND` becomes essential for building decision rules, validation checks, and multi‑criteria logic.

What the AND Function Does

  • Evaluates two or more logical conditions
  • Returns TRUE only when all conditions are TRUE
  • Returns FALSE when any condition is FALSE
  • Works with numbers, text, dates, and formulas
  • Integrates seamlessly with IF for conditional branching
  • Supports up to 255 logical arguments

It is ideal for eligibility checks, validation rules, multi‑criteria decisions, and structured logic flows.

Syntax

AND(condition1; condition2; ...)
LibreOffice Calc uses semicolons (;) to separate arguments.

Arguments

  • condition1, condition2, …
    Logical expressions that evaluate to TRUE or FALSE.
    Examples:
    • A1 > 10
    • B2 = "Yes"
    • C3 <= D3

Basic Examples

Check if two conditions are both TRUE

=AND(A1 > 0; B1 > 0)

Returns TRUE only if both A1 and B1 are greater than zero.

Check if a value is within a range

=AND(A1 >= 10; A1 <= 20)

Returns TRUE when A1 is between 10 and 20 (inclusive).

Check text and numeric conditions together

=AND(B1 = "Active"; C1 > 100)

Returns TRUE only when B1 contains “Active” and C1 is greater than 100.

Advanced Examples

Use AND inside IF (common pattern)

=IF(AND(A1 >= 18; B1 = "Yes"); "Eligible"; "Not Eligible")

A classic eligibility check using multiple conditions.

Validate a date range

=AND(A1 >= DATE(2025;1;1); A1 <= DATE(2025;12;31))

Returns TRUE when A1 falls within the year 2025.

Check if multiple cells are non‑empty

=AND(A1 <> ""; B1 <> ""; C1 <> "")

Useful for form validation or required fields.

Combine AND with OR for complex logic

=AND(A1 > 0; OR(B1 = "Gold"; B1 = "Platinum"))

Returns TRUE only when A1 is positive and B1 is either Gold or Platinum.

AND with calculations

=AND(SUM(A1:A5) > 100; AVERAGE(B1:B5) >= 50)

Evaluates aggregated values rather than individual cells.

Common Errors and Fixes

AND always returns FALSE

Possible causes:

  • One or more conditions evaluate to FALSE
  • A text comparison includes hidden spaces
  • A number is stored as text

Fix:
Convert text to numbers using:
Data → Text to Columns → OK

AND returns TRUE unexpectedly

Often caused by:

  • Comparing text without quotes
  • Using = instead of <>
  • Logical expressions referencing empty cells

Err:508 — Missing parenthesis

Occurs when:

  • A nested AND inside IF is missing a closing )
  • Commas are used instead of semicolons

Err:509 — Missing operator

Occurs when:

  • A comparison operator is missing
  • A condition is incomplete (e.g., A1 >)

Best Practices

  • Keep conditions simple and readable
  • Use AND inside IF for multi‑criteria decisions
  • Combine AND with OR for flexible logic structures
  • Avoid deeply nested logic; use helper cells when needed
  • Ensure consistent data types (numbers vs text)
When validating user input or building decision rules, pair AND with IFERROR or IFNA to create robust, user‑friendly formulas.
  • Use OR when only one condition must be TRUE
  • Use NOT to invert a logical test
  • Use XOR when exactly one condition must be TRUE
  • Combine AND with COUNTIF, SUMIF, or VLOOKUP for advanced decision workflows

By mastering AND and its combinations with other logical functions, you can build powerful, multi‑condition logic structures in LibreOffice Calc that scale cleanly and remain easy to maintain.


Reproducible example (tested in LibreOffice Calc)

This standalone example was calculated in LibreOffice Calc 25.2.3.2 and matched the expected value. It is a practical cross-check of one usage, not proof that every example elsewhere on this page is correct.

=AND(TRUE();FALSE())

Expected result: FALSE.

Require every condition to be true; here the result is FALSE.

If the result differs, check the referenced cells, argument separators and number formatting. For more information, consult the LibreOffice Calc official help.