Statistical function

PERMUTATIONA function

Returns the number of ordered arrangements of k items chosen from n types when the same item may be used more than once.

Available in Excel 2013 and later, Microsoft 365, Excel for the web

Excel 2013 and laterWorks in Google Sheets

Syntax

PERMUTATIONA(number, number_chosen)
ArgumentWhat it means
numberRequiredThe number of different items or symbols available, n.
number_chosenRequiredThe length of each arrangement, k.

Returns: n^k

How PERMUTATIONA works

PERMUTATIONA counts arrangements where order matters and repetition is allowed. Every position can be any of the n symbols, so there are n × n × … × n = n^k possibilities. Typical cases: PIN codes, product codes, licence plates, password strength estimates, or the outcomes of rolling several dice.

Compared with PERMUT, the only difference is repetition: PERMUT(10, 4) = 5,040 four-digit codes without repeated digits, PERMUTATIONA(10, 4) = 10,000 codes when digits can repeat. The result is the same as =number^number_chosen, but the function name documents your intent. Arguments are truncated to whole numbers.

Examples

1Number of 4-digit PIN codes

D2fx=PERMUTATIONA(B2, B3)
ABCD
1ItemValue
2Digits 0–91010000
3Code length4

Result: 10000

10^4 = 10,000 possible PINs (0000 to 9999). A random guess succeeds 1 time in 10,000.

2Three-letter product codes

D2fx=PERMUTATIONA(B2, B3)
ABCD
1ItemValue
2Letters A–Z2617576
3Code length3

Result: 17576

26^3 = 17,576 codes such as AAA, ABC or ZZY. If the catalogue may grow beyond that, a fourth letter gives 456,976.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!An argument is negative, or number is 0 while number_chosen is positive.Use non-negative whole numbers.
#VALUE!An argument is text.Use numbers.

Tips

  • PERMUTATIONA(n, k) = n^k; use whichever reads more clearly in your sheet.
  • Mixed alphabets multiply: 3 letters followed by 2 digits = =PERMUTATIONA(26,3)*PERMUTATIONA(10,2).

Google Sheets

PERMUTATIONA also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

PERMUTATIONA in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DutchPERMUTATIE.A
FinnishPERMUTAATIOA
GermanVARIATIONEN2
HungarianVARIÁCIÓK.ISM
ItalianPERMUTAZIONE.VALORI
Norwegian (Bokmål)PERMUTASJONA
PolishPERMUTACJE.A
Portuguese (Brazil)PERMUTAS
Portuguese (Portugal)PERMUTAR.R
RussianПЕРЕСТА
SpanishPERMUTACIONES.A
TurkishPERMÜTASYONA