PERMUT function
Returns the number of ordered arrangements of k items chosen from n distinct items, where order matters and no item repeats.
Available in All versions of Excel, including Microsoft 365 and Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
PERMUT(number, number_chosen)| Argument | What it means | |
|---|---|---|
number | Required | The total number of distinct items, n. Decimals are truncated. |
number_chosen | Required | How many items are chosen and arranged, k (0 to n). Decimals are truncated. |
Returns: n! / (n − k)!
How PERMUT works
A permutation is an arrangement where order matters. If 10 sales reps compete for gold, silver and bronze awards, Ana–Ben–Chloe is a different result from Ben–Ana–Chloe. PERMUT counts such ordered selections: n choices for the first place, n − 1 for the second, and so on for k places. When order does not matter (picking a 3-person committee), use COMBIN instead, which divides by the k! ways of ordering the same group.
PERMUT assumes each item can be used only once. If items can repeat, as with digits in a PIN code, use PERMUTATIONA. Both arguments are truncated to whole numbers, and number_chosen cannot exceed number.
Examples
1Ways to award three prizes
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Value | ||
| 2 | Sales reps | 10 | 720 | |
| 3 | Prizes | 3 |
Result: 720
10 × 9 × 8 = 720 possible podiums. COMBIN(10, 3) is only 120, because it ignores the order of the three winners.
2Routes visiting every client
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Value | ||
| 2 | Clients | 5 | 120 | |
| 3 | Visits | 5 |
Result: 120
Visiting all 5 clients in some order gives 5! = 120 possible routes, which is why route planning quickly becomes hard as the client list grows.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | number is negative or less than number_chosen, or number_chosen is negative. | Make sure 0 ≤ k ≤ n. |
#VALUE! | An argument is text. | Use numbers. |
Tips
- PERMUT(n, n) equals FACT(n).
- Probability that a random podium is exactly right:
=1/PERMUT(10,3).
Google Sheets
PERMUT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
PERMUT 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 |
|---|---|
| Czech | PERMUTACE |
| Dutch | PERMUTATIES |
| Finnish | PERMUTAATIO |
| French | PERMUTATION |
| German | VARIATIONEN |
| Hungarian | VARIÁCIÓK |
| Italian | PERMUTAZIONE |
| Norwegian (Bokmål) | PERMUTER |
| Polish | PERMUTACJE |
| Portuguese (Portugal) | PERMUTAR |
| Russian | ПЕРЕСТ |
| Spanish | PERMUTACIONES |
| Turkish | PERMÜTASYON |