Contact

PERMUT Function (OpenOffice Calc)

Statistical Intermediate OpenOffice Calc

Count ordered selections without replacement with OpenOffice PERMUT, including zero-choice, fractional-input and invalid-domain native examples.

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: =PERMUT(8;0) returned 1 in the tested Apache OpenOffice 4.1.16 build.

Availability and version history

  • Introduced: First release not established; documented by OpenOffice.org 3.3.
  • Supported in: Apache OpenOffice 4.1.16; this identifies a verified release, not a final supported version.
  • Scope: Desktop Calc, 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 PERMUT returns

PERMUT counts ordered selections of k distinct items from n available items, without replacement. For nonnegative integers with k≤n, the count is n!/(n−k)!, or the product n×(n−1)×…×(n−k+1). Order matters. Release entry.

Syntax and arguments

=PERMUT(Number; Chosen)

Exactly two arguments are required. Number is the available count n; Chosen is the selected count k. The implementation approximately floors both numeric arguments before requiring 0≤k≤n. For a combinatorial worksheet, validate whole-number counts explicitly rather than relying on conversion.

Worksheet data

The literal examples need no range data. H5 in the diagnostic table is genuinely empty.

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. The data setup above is required for range formulas.

Formula Native 4.1.16 result Independent reference
=PERMUT(5;2) 20 20
=PERMUT(10;3) 720 720
=PERMUT(4;4) 24 24
=PERMUT(8;0) 1 1
=PERMUT(1;1) 1 1
=PERMUT(0;0) 1 1
=PERMUT(6;1) 6 6
=PERMUT(20;2) 380 380

Practical worksheet

Five candidates are eligible for two different roles, chair and secretary. =PERMUT(5;2) returns 20 assignments: each of five choices for chair leaves four for secretary. If the roles were interchangeable, the problem would be an unordered selection and COMBIN would be the appropriate model.

Put the available count in A2 and the number of distinct roles in B2, validate 0≤B2≤A2 with whole-number inputs, and enter =PERMUT(A2;B2). Reusing the same person in multiple roles would violate the without-replacement model.

Advanced interpretation and checks

A small identity check is PERMUT(5;2)=COMBIN(5;2)×FACT(2)=10×2=20. Selecting every available item gives n!, so PERMUT(4;4)=24. Selecting zero items gives one empty ordered selection, including the explicitly tested PERMUT(0;0)=1.

If every ordered pair from five items is equally likely, a particular pair has probability 1/20. That probability interpretation requires a uniform selection procedure; the combinatorial count itself does not establish equal likelihood.

Large permutation counts may overflow or lose integer precision in floating-point storage. The implementation multiplies successive factors rather than providing arbitrary-precision integers. The small native cases do not establish a safe universal upper bound.

Boundaries and troubleshooting

The tested 5.9 and 2.9 are converted to 5 and 2, giving 20. A blank Number with Chosen=0 gives 1, so reject missing input separately if an omitted count is invalid in your application. Negative counts and k>n produce Err:502. A missing argument, an extra argument and nonnumeric text have distinct observed errors.

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
=PERMUT(2;3) Err:502
=PERMUT(-1;0) Err:502
=PERMUT(5;-1) Err:502
=PERMUT(5.9;2.9) 20
=PERMUT(H5;0) 1
=PERMUT("abc";2) #VALUE!
=PERMUT(5) Err:511
=PERMUT(5;2;1) Err:504

Official evidence and checking scope

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, typed input, input label and tested result was reconciled. True empty cells were distinguished from text and logical values. 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.