Contact

PERMUTATIONA Function in ONLYOFFICE: Ordered Choices With Repetition

Statistical Intermediate ONLYOFFICE Spreadsheet Editor

Count ordered selections allowing repeated values with ONLYOFFICE PERMUTATIONA; learn its official argument-label typo, examples, and limits.

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

Verification: Formula outputs are independently calculated mathematical expectations. Native ONLYOFFICE execution was not performed.

Quick answer: Counts ordered selections from available types when each type may repeat. The official syntax is PERMUTATIONA(number, number_chosenn) (ONLYOFFICE official function reference); this short unversioned reference does not establish the first-supported Desktop/web release.

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 check; not a new native test.

When order matters and repeats are allowed

Use PERMUTATIONA for PIN digit strings, repeatable product sequences, or ordered letter slots when each position can draw from the same available set. If there are n choices at every position and k independently chosen positions, the mathematical count is nᵏ. The official ONLYOFFICE reference identifies this function with permutations with repetitions; it categorizes the function under Statistical.

For three positions and four possible symbols, the mathematical total is 4×4×4=64. ABC and BAC count separately; AAA is allowed. If repetition is forbidden, use PERMUT, and if order is ignored, the question changes again.

Exact official syntax and an important vendor-label discrepancy

The current English Help Center prints:

PERMUTATIONA(number, number_chosenn)

Its argument table, however, labels the second argument number_chosen (one trailing n). The mismatch is in the explanatory parameter name, not the spelling PERMUTATIONA. In a worksheet use a positional call like =PERMUTATIONA(4,3).

Position Argument Required Published meaning
1 number Yes Numeric number of available objects/types, ≥0.
2 number_chosen (table label) Yes Numeric number of ordered selections, ≥0 and less than number in vendor wording.

Neither parameter is optional; no default is documented. The vendor help does not explain fractional coercion or actual error tokens for invalid inputs.

Reproducible worksheet: PIN-style strings

  1. Open a scratch worksheet and enter the headers Available symbols (A1), Positions (B1), Formula (C1), Mathematical expected (D1).
  2. Populate numeric pairs in A2:B9 from the table, taking care to count strings such as 001 and 100 as distinct when their positions differ. Use C2 =PERMUTATIONA(A2,B2) and fill to C9.
  3. Enter the independent D-column reference results; check the observed C-column values in your specific ONLYOFFICE build rather than assuming the documented support proves execution.
Row A: Available symbols n B: Positions k Formula in C Independently expected D
2 4 3 =PERMUTATIONA(A2,B2) 64
3 5 2 =PERMUTATIONA(A3,B3) 25
4 6 3 =PERMUTATIONA(A4,B4) 216
5 10 4 =PERMUTATIONA(A5,B5) 10000
6 3 0 =PERMUTATIONA(A6,B6) 1
7 8 3 =PERMUTATIONA(A7,B7) 512
8 2 1 =PERMUTATIONA(A8,B8) 2
9 5 4 =PERMUTATIONA(A9,B9) 625

Validation labeling: these values were computed using Python standard-library integer arithmetic and represent expected mathematical results. No screenshot, formula execution, locale trial, or native error observation was produced.

Advanced scenario: three-digit access tokens

If each of three positions independently permits any digit 0–9, there are mathematically 10³=1,000 ordered codes (including leading zeroes, such as 007). Worksheet formula =PERMUTATIONA(10,3) should be compared against expected 1000. The equal-result mathematical check is =POWER(10,3); ONLYOFFICE documents POWER separately. Counting possibilities does not establish real-world password security or rate-limiting resistance.

Advanced probability: at least one repeated symbol

For three independently chosen positions among eight distinct symbols, 8³=512 ordered sequences permit repetition. Exactly 8×7×6=336 use three different symbols. So the mathematical probability of at least one repeat is 1−336/512=0.34375 = 34.375%. In ONLYOFFICE formula notation:

=1-PERMUT(8,3)/PERMUTATIONA(8,3)

This expectation is independently evaluated; it has not been observed in ONLYOFFICE. It assumes each of the 512 ordered strings is equally likely.

Compare PERMUTATIONA, PERMUT, COMBINA

Formula Counted objects Expected
=PERMUTATIONA(5,3) Three positions, five choices each, repeats allowed 125
=PERMUT(5,3) Ordered 3-of-5 with no repeats 60
=COMBINA(5,3) Unordered 3-of-5 with repeats 35

Each is a different canonical function with a different counting model, not a spelling alias.

Troubleshooting and limitations

  • Missing repeats: PERMUT excludes repeated choices; PERMUTATIONA permits them.
  • Ignoring order: a bag of unordered items isn’t counted by nᵏ unless order is explicitly part of the question.
  • Vendor syntax typo: use PERMUTATIONA as the function identifier, two positional arguments, and consult the argument table for the meaning of the second parameter.
  • number_chosen ≥ number: mathematical nᵏ remains meaningful, but vendor help describes the second argument as less than the first. The native result of =PERMUTATIONA(3,3) is UNVERIFIED.
  • Zero symbols, negative/fractional inputs, and text: the official short article does not document all cases. Test exact error strings and coercion in the selected version; do not invent them.
  • Huge results: counts like 10²⁰ exceed commonly exact numerical representation ranges; retain an arbitrary-precision reference for audits, and distinguish formatting from exact integer equality.

PERMUT — permutations without repetition; COMBINA — unordered selections with repetition; POWER — nᵏ arithmetic. These are current official references.

Evidence for claims (accessed 2026-10-13 UTC)

  • Definition, function category and exact published argument spelling/order: ONLYOFFICE PERMUTATIONA page.
  • Function picker and manually typed syntax with commas: official Insert Functions instructions.
  • Configurable formula language and region: official Advanced Settings.
  • Different version histories: Docs changelog and Desktop changelog. Neither is cited as proof of a first-supported release.
  • Numerical expectations and special cases: independent integer mathematics, not vendor runtime verification. Known uncertainty: Official help displays PERMUTATIONA(number, number_chosenn) whereas its table says number_chosen. The documented number_chosen < number bound also differs from the general mathematical n^k domain. Exact native treatment at k≥n remains unverified.

Entering the formula in ONLYOFFICE

Open an editable worksheet, select the output cell, and enter the formula beginning with =. The official formula entry instructions also support Formula → Function (or the Insert Function dialog) with a name search and argument wizard; manually entered English examples on that page use commas between arguments. Press Enter to calculate. For spreadsheet software and build versions not yet tested, treat the numerical answers below as expected, not observed.

Locale, release and testing scope

This guide writes English function names and comma-separated arguments, matching the official English entry help (checked 2026-10-13). ONLYOFFICE also lets users change the Formula Language and regional number-format settings via File → Advanced Settings (vendor instructions); do not assume the localized function spelling, argument punctuation, decimal mark, or workbook behavior is identical without checking the installed language configuration. The documented regional choices include separate decimal and thousands separator controls, which are not a license to guess a local formula argument delimiter.

These short vendor function references are not versioned. See the independent ONLYOFFICE Docs changelog and Desktop Editors changelog; neither a first-support version nor identical behavior in all historical web, desktop, mobile or third-party spreadsheet engines has been established by this review. The examples are based on documented syntax and independently computed integer mathematics. **Native ONLYOFFICE web/desktop execution: not performed. Localized testing: not performed. Exact native error strings: not observed. **

Verification limitations

Native Desktop/web execution, localized formula parsing, error outcomes and undocumented boundary behavior were not tested. Verify these cases in the target version before relying on them.