Contact

AND Function in ONLYOFFICE Spreadsheet Editor: Syntax and Worked Examples

Logical Beginner ONLYOFFICE Spreadsheet Editor

Test whether all conditions are TRUE with practical eligibility examples and version caveats.

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

Quick answer: AND returns TRUE only when every supplied logical condition is true. In the order worksheet below, requiring enough spend and positive units excludes A102; adding a Ready status and two-unit minimum narrows the priority group further.

Availability and version history

  • Introduced: The original introduction version and date are not established by the official sources checked.
  • Availability: Documented in the current ONLYOFFICE Spreadsheet Editor help; no final working-version endpoint is established.
  • Scope: Docs and Desktop Editors release separately. This unversioned help does not establish availability in every older build, mobile client or deployment.
  • Checked: October 14, 2026, against the official function reference. Documentation and independent logical checks; no native test of these cases.

Syntax and what is documented

=AND(logical1, [logical2], ...)

The first logical condition is required; later conditions are optional. The official AND page states that any false argument makes the result FALSE. It does not state an AND-specific maximum argument count or a complete mixed-cell-type conversion matrix.

Use explicit comparisons such as D2="Ready" rather than assuming that a text cell has the intended truth value. Brackets describe optional notation and are not entered. The formulas use English function names and commas.

Original order worksheet

Create OrderRules. Put Order, Spend, Units, Status and Channel in A1:E1, then enter these five records. Spend and Units must be numeric.

Row A: Order B: Spend C: Units D: Status E: Channel
2 A101 150 3 Ready Web
3 A102 80 0 Pending Store
4 A103 220 5 Ready Store
5 A104 160 2 Hold Web
6 A105 130 1 Ready Web

Put Numeric requirements in G1. Enter =AND(B2>=100,C2>0) in G2 and fill through G6.

Row Spend >=100 Units >0 Expected G
2 TRUE TRUE TRUE
3 FALSE FALSE FALSE
4 TRUE TRUE TRUE
5 TRUE TRUE TRUE
6 TRUE TRUE TRUE

The result is a logical value for each record, not a count or an amount. The four TRUE results do not establish whether any other business condition is satisfied.

Three conditions and a readable label

Put Priority label in H1. Enter in H2 and fill through H6:

=IF(AND(B2>=100,C2>=2,D2="Ready"),"Priority","Standard")

Expected labels are Priority,Standard,Priority,Standard,Standard. A104 has enough spend and units but is on Hold. A105 is Ready but has only one unit. Both fail the complete rule.

Keep the existing outputs intact. Put Spend band in I1, enter =AND(B2>=100,B2<=200) in I2 and fill to I6. Expect TRUE,FALSE,FALSE,TRUE,TRUE. The 220 amount fails the upper bound, while the 80 amount fails the lower bound.

Check inclusive endpoints with separate data

Create SpendBand. Enter 99,100,200,201 in A2:A5 and put Spend in A1. In B2 enter =AND(A2>=100,A2<=200) and fill through B5. Expect FALSE,TRUE,TRUE,FALSE.

In C2 enter =AND(A2>100,A2<200) and fill through C5. All four controls return FALSE: the strict version excludes both endpoints. To test an interior value without altering them, put 150 in A7 and =AND(A7>100,A7<200) in B7; expect TRUE.

Choose comparison operators from the actual policy. Changing AND to OR would not merely relax the endpoints; it would create a different logical expression.

All four two-condition combinations

On TruthCheck, enter =TRUE()/=FALSE() values so A2:B5 contains TRUE/TRUE, TRUE/FALSE, FALSE/TRUE and FALSE/FALSE. Put =AND(A2,B2) in C2 and fill to C5. Expected results are TRUE,FALSE,FALSE,FALSE.

Alternatively, use direct formulas such as =AND(TRUE,TRUE) and =AND(TRUE,FALSE) in separate cells. These controls isolate the documented logical rule without importing text or number-coercion assumptions.

Official example and limits

On VendorAND, put 12 in A1 and =AND(A1<100,34<100,50<100) in C1. Expect TRUE. Change A1 to 112; expect FALSE. The official page describes these two cases directly.

An error inside a test is not automatically FALSE. The short reference does not define every error propagation, blank/text conversion or evaluation-order boundary. These worksheets use fully specified comparisons and logical values. They do not establish that unused or later tests are skipped safely.

Inspect each test separately and check that filled formulas still point to the correct row. Keep text labels quoted and source fields outside output columns. A correct truth value cannot establish that the imported data or the policy itself is correct.

  • IF turns a result into an explicit label.
  • OR combines alternatives.
  • COUNTIFS counts records meeting several criteria.
  • COUNTIF applies one counting criterion.
  • SUMIF adds matching amounts.