Contact

QUOTIENT Function (OpenOffice Calc)

Math Intermediate OpenOffice Calc

Learn the QUOTIENT function in Apache OpenOffice Calc: Returns the integer portion of a division.

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.

QUOTIENT returns the integer portion of a division, discarding the fractional portion toward zero. In Apache OpenOffice this is an Analysis add-in function. It is useful for complete batches or groups, provided the signs and units of the inputs match the question.

Syntax and arguments

=QUOTIENT(numerator; denominator)

Both arguments are required numeric expressions. denominator must be nonzero. Inputs themselves need not be integers. The result is numeric and contains no remainder.

Formula Expected result
=QUOTIENT(17;5) 3
=QUOTIENT(-17;5) -3
=QUOTIENT(17;-5) -3
=QUOTIENT(-17;-5) 3
=QUOTIENT(2;5) 0
=QUOTIENT(11.25;2.5) 4
=QUOTIENT(0;5) 0

The first formula is the original guide’s example. Its older comparable LibreOffice 25.2 test remains evidence for that application only. The signed examples here are independent mathematical checks matched to OpenOffice’s versioned implementation, not a fresh native run.

Important documentation distinction

The OpenOffice wiki describes QUOTIENT as equivalent to INT(numerator/denominator). That shortcut is correct for nonnegative quotients but conflicts with the pinned 4.1.16 implementation for negative nonintegral quotients. The implementation uses a ceiling when the signs differ and a floor otherwise, which truncates the quotient toward zero. Thus =QUOTIENT(-17;5) is expected to return -3, whereas =INT(-17/5) returns -4. Use the source-scoped distinction and verify critical imported workbooks on the installed release.

Reproducible worksheet: complete boxes and leftover units

Enter quantities 17, 20 and 2 in A2:A4. Enter box capacity 5 in B2:B4. In C2 enter =QUOTIENT(A2;B2) and fill down. Expected complete-box counts are 3, 4 and 0.

In D2 enter =A2-B2*C2 and fill down. Leftovers are 2, 0 and 2. With these nonnegative counts and positive capacities, =MOD(A2;B2) yields the same leftovers. If you need the number of boxes required to hold all items, including a partial box, use =ROUNDUP(A2/B2;0); row 2 then requires 4 boxes.

Advanced applications

Signed division ledger. With A2=-17 and B2=5, C2==QUOTIENT(A2;B2) is -3 and D2==A2-B2*C2 is -2. These reconstruct the original value: -17=5*(-3)-2. MOD(-17;5) is 3, so combining that MOD result with the truncated quotient would not reconstruct -17. Use a matched quotient/remainder convention.

Months into complete years. =QUOTIENT(A2;12) gives 2 when A2=29. =A2-12*QUOTIENT(A2;12) gives 5 leftover months. This is arithmetic on a count of months, not a calendar-age calculation from two dates.

Decimal measurements. For 11.25 meters of material and 2.5 meters per piece, =QUOTIENT(11.25;2.5) yields four complete pieces, leaving 1.25 meters. Choose a measurement precision policy before testing exact boundary cases.

Portable intent. =TRUNC(A2/B2) expresses truncation of the quotient directly. Do not promise identical error codes or exact floating-point boundary behavior across implementations merely because ordinary arithmetic examples agree.

Errors and troubleshooting

  • A zero denominator is invalid. The add-in checks that its computed result is finite; error presentation should be tested on the actual installed build rather than inferred from ordinary division’s code.
  • A missing or unrecognized QUOTIENT may indicate an Analysis add-in availability or formula-name/import issue. Check the function in Calc’s Function Wizard and verify the workbook’s formula language.
  • The function does not ignore upstream errors. Use numeric cells and validate denominator units and positivity when modeling physical capacity.
  • A negative input may be legitimate in a signed ledger, but it does not describe a negative number of physical boxes. Choose a separate policy for returns or corrections.
  • Large magnitudes and near-integer ratios require care because input precision is finite. Adding an arbitrary epsilon may change correct results and is not a universal fix.

Documentation and verification

See the OpenOffice QUOTIENT reference and the 4.1.16 Analysis add-in implementation. The versioned source was retrieved on 2026-10-13 and re-read here. Expected outputs were independently calculated; no new native OpenOffice or GUI execution is claimed. Registry presence establishes support in the named version, not introduction or a final functioning version.