Calculate how many PERMUTATION possible

Sh3nmue

Board Regular
Joined
Dec 21, 2013
Messages
82
Hello Me Excel... I really need help again here...
I want to calculate for how many permutation possible for number in cell..

just for example:
in collumn A have list of number or letters
column B is permut by 6
column C is permut by 5 and etc...
ABCDEF
1Number/LettersPermute 6Permute 5permute 4Permute 3Permute 2
2abcd242412
3aabc12127
4aaab443
5aabb664
6abcde1201206020
7aabcd603313
8aabbc30188
9abcdef72072036012030
10aabcde
11aaabcd
12aabbcd

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1



all the value in the table above is calculated manually and it wasting my time an paper,, LoL,,:LOL: because i have to write down all possible permutation and count it...
can someone help me with this...
Thank You
 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
For what it's worth, the more rigorous mathematical approach to the five letter MISSISSIPPI permutation problem says that given one letter (M) with one occurrence, one letter with two occurrences, and two with four occurrences, the answer is the coefficient of x^5 in:

5! (1 + x) (1+ x + x^2/2!) (1 + x + x^2/2! + x^3/3! + x^4/4!)^2
 
  • Like
Reactions: shg
Upvote 0
Generating function -- I like it!

5x^11/48 + 55x^10/48 + 85x^9/12 + 745x^8/24 + 310x^7/3 + 805x^6/3 + 550x^5 + 880x^4 + 1060x^3 + 900x^2 + 480x + 120
 
Upvote 0
Oops -- something ran off the rail:

A​
B​
C​
D​
1​
11​
34,650​
C1: =PRODUCT(C3:C14)
2​
Letter​
Count​
Combinations​
3​
M​
1​
11​
C3 and down: =COMBIN(11-SUM(B$2:B2), B3)
4​
I​
4​
210​
5​
S​
4​
15​
6​
P​
2​
1​
 
Upvote 0
5x^11/48 + 55x^10/48 + 85x^9/12 + 745x^8/24 + 310x^7/3 + 805x^6/3 + 550x^5 + 880x^4 + 1060x^3 + 900x^2 + 480x + 120

Did you generate this in Excel?

Because the same approach can be used to answer the questions in #20.
 
Upvote 0
Thanks. I also found this site which was useful: Expand and Simplify Polynomials Calculator

For the MISSISSIPPI problem, the first few coefficients (for 1, x, x^2 ... etc) were

1, 4, 15/2, 53/6, 22/3, 55/12

So the permutation counts are:
1: 4 x 1! = 4
2: 15/2 x 2! = 15
3: 53/6 x 3! = 53
4: 22/3 x 4! = 176
5: 55/12 x 5! = 550 ....

For the 11223 problem above, we need to expand (1+x)(1+x+x^2/2)^2
for which the coefficients are:

1, 3, 4, 3, 5/4, 1/4

So permutation counts are:
1: 3 x 1! = 3
2: 4 x 2! = 8
3: 3 x 3! = 18
4: 5/4 x 4! = 30
5: 1/4 x 5! = 30.

Unless there's a smarter way to calculate coefficients(?) it shouldn't be too difficult to render either in Excel or VBA. But unless there's a smarter way, I'm leaning towards brute-force, i.e. VBA to calculate all permutations and use Excel to eliminate duplicates in the resulting list.
 
Upvote 0
Thanks. I also found this site which was useful: Expand and Simplify Polynomials Calculator

For the MISSISSIPPI problem, the first few coefficients (for 1, x, x^2 ... etc) were

1, 4, 15/2, 53/6, 22/3, 55/12

So the permutation counts are:
1: 4 x 1! = 4
2: 15/2 x 2! = 15
3: 53/6 x 3! = 53
4: 22/3 x 4! = 176
5: 55/12 x 5! = 550 ....

For the 11223 problem above, we need to expand (1+x)(1+x+x^2/2)^2
for which the coefficients are:

1, 3, 4, 3, 5/4, 1/4

So permutation counts are:
1: 3 x 1! = 3
2: 4 x 2! = 8
3: 3 x 3! = 18
4: 5/4 x 4! = 30
5: 1/4 x 5! = 30.

Unless there's a smarter way to calculate coefficients(?) it shouldn't be too difficult to render either in Excel or VBA. But unless there's a smarter way, I'm leaning towards brute-force, i.e. VBA to calculate all permutations and use Excel to eliminate duplicates in the resulting list.

OK I'm so dumb in this...
can u tell me again how did u find this (1, 3, 4, 3, 5/4, 1/4 ) and this (1, 4, 15/2, 53/6, 22/3, 55/12)
 
Upvote 0
can u tell me again how did u find this (1, 3, 4, 3, 5/4, 1/4 ) and this (1, 4, 15/2, 53/6, 22/3, 55/12)

For the first one, in this website Expand and Simplify Polynomials Calculator in the "Input Polynomial" box, enter: (1+x)(1+x+x^2/2)^2 and hit the "Compute" button. It will expand the polynomial to: 1 + 3x + 4x^2 + 3x^3 + (5/4)x^4 + (1/4)x^5, ie coefficients 1, 3, 4, 3, 5/4 and 1/4.

Guys I found something... excel vba to generate and count permutation and combination... maybe u all wanna take a look,, I hope this can be a useful clues..
https://app.box.com/s/2irz4lp2u3hm4i46r01i

Nice find! Another VBA method that gives you exactly what you're looking for.
 
Upvote 0

Forum statistics

Threads
1,215,376
Messages
6,124,593
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top