MULTINOMIAL Function (OpenOffice Calc)
Count arrangements with OpenOffice MULTINOMIAL, including factorial-ratio examples, probability interpretation and its tested first-argument conversion asymmetry.
Verification status: Eight reference formulas and 8 diagnostic cases were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, using generated native ODF and GUI hard recalculation. Saved formula identities and typed results were checked; the load warning is described below. How formula examples are checked
Quick answer: =MULTINOMIAL(5) returned 1 in the tested Apache OpenOffice 4.1.16 build.
Availability and version history
- Introduced: First release not established; presence is verified in Apache OpenOffice 4.1.16. Earlier support has not been established here.
- Supported in: Apache OpenOffice 4.1.16; this identifies a verified release, not a final supported version.
- Scope: Desktop Calc, with its Analysis add-in, English function names and semicolon-separated formulas.
- Checked: October 14, 2026. Eight reference formulas and the listed diagnostics were recalculated from generated native ODF in 4.1.16 on Linux x86-64, Build 9816. Source and independent reference calculations were also checked.
What MULTINOMIAL returns
MULTINOMIAL returns the multinomial coefficient: factorial of the sum of the nonnegative counts divided by the product of their factorials. It counts distinct orderings of a multiset. For counts 2, 3 and 4, the total is 9 and the coefficient is 9!/(2!×3!×4!)=1260. Release entry.
Syntax and arguments
=MULTINOMIAL(Number1 [; Number2; ...])
Supply at least the first count or count range, with optional further arguments. The intended mathematical inputs are nonnegative integers. The Analysis add-in receives the first argument through an integer-array interface, while later arguments follow an optional-value conversion path. These paths differ for some fractional negatives. The routine rejects an individual converted count above 170 or a total above 170.
Reproducible examples
The native column records the saved 4.1.16 results. The independent values use high-precision mathematics; displayed decimals are rounded to twelve places. Integer results remain exact in these small cases.
| Formula | Native 4.1.16 result | Independent reference |
|---|---|---|
=MULTINOMIAL(2;3;4) |
1260 |
1260 |
=MULTINOMIAL(1;1;1) |
6 |
6 |
=MULTINOMIAL(0;0) |
1 |
1 |
=MULTINOMIAL(5) |
1 |
1 |
=MULTINOMIAL(2;2) |
6 |
6 |
=MULTINOMIAL(10;10) |
184756 |
184756 |
=MULTINOMIAL(3;4;5) |
27720 |
27720 |
=MULTINOMIAL(1;2;3) |
60 |
60 |
Practical worksheet
Suppose a nine-item batch contains two red, three blue and four green objects, with objects of the same color indistinguishable. =MULTINOMIAL(2;3;4) gives 1260 possible color orderings. Put the three validated counts in A2:C2 and use =MULTINOMIAL(A2:C2) to express the same factorial-ratio model in a worksheet. The literal call is the native example; the range workflow follows the documented first-argument array contract.
This is an arrangement count, not a probability. If items are distinguishable within a color, the model changes and the factorial denominator no longer describes that experiment.
Advanced interpretation and checks
For independent categorical trials with category probabilities p1, p2 and p3, the probability of counts n1, n2 and n3 is the multinomial coefficient times p1^n1×p2^n2×p3^n3. With three equally likely categories and one occurrence of each, the coefficient is 6 and the probability is 6×(1/3)^3=2/9. Independence, fixed probabilities and counts summing to the number of trials are necessary assumptions.
The two-category special case agrees with a binomial coefficient: =MULTINOMIAL(10;10) is 20!/(10!×10!)=184756. Zero counts contribute 0!=1, so =MULTINOMIAL(0;0) returns 1 and a single valid count also has coefficient 1. These identities are useful checks on the factorial ratio.
The implementation computes factorials as floating-point numbers. Its 170 limit prevents an obvious factorial overflow but does not certify exact representation of every large integer coefficient. Use the small verified cases as examples, not as proof of arbitrary-precision combinatorics.
Boundaries and troubleshooting
There is a material argument-position difference in the tested build: =MULTINOMIAL(-0.9;2) returns 1, while =MULTINOMIAL(2;-0.9) errors. The first negative fraction is truncated to zero by its integer interface before the nonnegative list check; the later value is checked as negative earlier. Do not rely on this asymmetry to accept bad counts. Validate nonnegative whole numbers before either position. Positive 2.9 and 3.9 become 2 and 3, yielding 10. A referenced blank in the first position becomes a zero count and returns 1.
These additional formulas were recalculated from the same generated ODF input. H5 is a deliberately empty cell where referenced. Error displays are retained as errors, even when an ODS numeric attribute stores zero.
| Formula | Observed result or error |
|---|---|
=MULTINOMIAL(2.9;3.9) |
10 |
=MULTINOMIAL(-0.9;2) |
1 |
=MULTINOMIAL(2;-0.9) |
Err:502 |
=MULTINOMIAL(-1;2) |
Err:502 |
=MULTINOMIAL(171) |
Err:502 |
=MULTINOMIAL(100;71) |
Err:502 |
=MULTINOMIAL(H5) |
1 |
=MULTINOMIAL(2;"abc") |
Err:502 |
Related functions
Official evidence and checking scope
- Function-specific release entry
- Argument/parser helper
- Integer-array and optional-value list handling
The generated ODF input produced the informational load warning “Not all attributes could be read.” After it was acknowledged, the sheet was hard-recalculated and saved separately. Every formula identity, input label and tested result was reconciled, including repeated spaces represented with ODF text elements. This does not certify every style attribute. The separately prepared XLSX input was not executed. A deliberately stale SUM cache changed from 999999 to 3, and an uncached SUM returned 7 after hard recalculation. Native evidence covers the eight reference formulas and listed diagnostics only. Other explanatory compositions are independent mathematical checks; other releases, locales and extreme-value behavior were not established by this run.