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)| Argument | What it means | |
|---|---|---|
number | Required | The number of different items or symbols available, n. |
number_chosen | Required | The 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Value | ||
| 2 | Digits 0–9 | 10 | 10000 | |
| 3 | Code length | 4 |
Result: 10000
10^4 = 10,000 possible PINs (0000 to 9999). A random guess succeeds 1 time in 10,000.
2Three-letter product codes
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Value | ||
| 2 | Letters A–Z | 26 | 17576 | |
| 3 | Code length | 3 |
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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Dutch | PERMUTATIE.A |
| Finnish | PERMUTAATIOA |
| German | VARIATIONEN2 |
| Hungarian | VARIÁCIÓK.ISM |
| Italian | PERMUTAZIONE.VALORI |
| Norwegian (Bokmål) | PERMUTASJONA |
| Polish | PERMUTACJE.A |
| Portuguese (Brazil) | PERMUTAS |
| Portuguese (Portugal) | PERMUTAR.R |
| Russian | ПЕРЕСТА |
| Spanish | PERMUTACIONES.A |
| Turkish | PERMÜTASYONA |