Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 06-27-2009, 01:11 PM
e4excel e4excel is offline
Registered User
 
Join Date: 03 Nov 2008
Location: India
MS Office Version:Totally Confused with 2007
Posts: 400
e4excel will soon become part of the community
Generating Permutations and Combinations

Please Register to Remove these Ads

Hi Forum,

Need help to generate Series of Items in different Permuation & Combinations..

For Ex:- If there are three Items.. A B C and forming a group of 2
then the the total no of combinations would be permut(3,1) = 6...

I need this to be shown as follows depending on the no of itmes and no of group no=2 in this case...

Permuations & Combinations are as follows:

AB
AC
BC
CA
CB
BA
Attached Files
File Type: xls Permutations Trial.xls (16.0 KB, 7 views)
Reply With Quote
  #2  
Old 06-27-2009, 02:01 PM
martindwilson's Avatar
martindwilson martindwilson is offline
Forum Guru
 
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 6,076
martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding
Re: Generating Permutations and Combinations

try this
http://www.ne.jp/asahi/math.edu/ami/myprog/jk_eng.htm
having said that i notice your other thread was locked beacause of the title
and to be truthful i cant see a lot of difference between that title and this one!
__________________
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code

how to enter array formula


recommended reading
wiki Mojito

how to say no convincingly

most important think you need

Last edited by martindwilson; 06-27-2009 at 02:20 PM.
Reply With Quote
  #3  
Old 06-30-2009, 04:11 AM
e4excel e4excel is offline
Registered User
 
Join Date: 03 Nov 2008
Location: India
MS Office Version:Totally Confused with 2007
Posts: 400
e4excel will soon become part of the community
Re: Generating Permutations and Combinations

You are right..!
Martin..there's little difference in both the threads as the "Need Help " is taboo i did away with it and retained the rest and as far as the explanation goes, I think that was not much of rule-breaker so I stayed with the same..

Thanks a lot for the solution, that file's amazing , but the only difficulty I am facing is to get a Permutations and Combinations of Proper Nouns or Words..

Likes Lets say Jack,Jill and Jane..

It considers all the individual alpahabets and not the words seperately., though I do admit in the example mentioned I had taken only Single-Alphabets as It would have been tedious to put names and show their Permutations and Combinations even in the example..

So can anything be done about the same...

Warm Regards
e4excel
Reply With Quote
  #4  
Old 06-30-2009, 04:40 AM
martindwilson's Avatar
martindwilson martindwilson is offline
Forum Guru
 
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 6,076
martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding
Re: Generating Permutations and Combinations

it works with numbers0-9 as it treats them just as characters so put in numbers to = your text
say 1.2.3 for jane.mick.bob
then use find replace replace 1 with jane and so on.
__________________
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code

how to enter array formula


recommended reading
wiki Mojito

how to say no convincingly

most important think you need
Reply With Quote
  #5  
Old 06-30-2009, 10:58 AM
e4excel e4excel is offline
Registered User
 
Join Date: 03 Nov 2008
Location: India
MS Office Version:Totally Confused with 2007
Posts: 400
e4excel will soon become part of the community
Re: Generating Permutations and Combinations

Quote:
Originally Posted by martindwilson View Post
it works with numbers0-9 as it treats them just as characters so put in numbers to = your text
say 1.2.3 for jane.mick.bob
then use find replace replace 1 with jane and so on.
THanks a Lot Martin...
I shall tryth that but does that mean I can only try 0-9 items only what If I were to try for A Cricket Combination comprising of 11 team players like which team would be better of the Selection of 15 members..

This file's good but is there a Non-VBA solution which can be personlized or tailor-made file which can be tweaked for one's requirement..

Thanks...
Reply With Quote
  #6  
Old 06-30-2009, 12:43 PM
martindwilson's Avatar
martindwilson martindwilson is offline
Forum Guru
 
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 6,076
martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding
Re: Generating Permutations and Combinations

there are plenty of other characters !"£$%^&*()_+ to use!
id suges you use that
then text to columnd to soplit then find replace.
__________________
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code

how to enter array formula


recommended reading
wiki Mojito

how to say no convincingly

most important think you need
Reply With Quote
  #7  
Old 06-30-2009, 01:34 PM
e4excel e4excel is offline
Registered User
 
Join Date: 03 Nov 2008
Location: India
MS Office Version:Totally Confused with 2007
Posts: 400
e4excel will soon become part of the community
Re: Generating Permutations and Combinations

Dear martin,

Yes I would need to anyways use that "Text To Columns" options but is there a Formula Type Solution wherein I make the File ready and Just allot Cell-Spaces to put the Items and No of Items and the Required Permutation and Combination appears below..

What Im trying to make a file which takes atleast 15 Items and then Displays the Permutation and Combination below..

If there is I really would appreciate help on the same and otherwise the file provided is indeed very good...
Reply With Quote
  #8  
Old 06-30-2009, 03:07 PM
martindwilson's Avatar
martindwilson martindwilson is offline
Forum Guru
 
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 6,076
martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding
Re: Generating Permutations and Combinations

youd have trouble with permutations your spread sheet would run out of rows on large ones.
i dont know if there is a formula solution but if there is it would prob take ages to calculate
last time we had a similar question
SHG had a solution
__________________
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code

how to enter array formula


recommended reading
wiki Mojito

how to say no convincingly

most important think you need
Reply With Quote
  #9  
Old 07-01-2009, 04:07 PM
e4excel e4excel is offline
Registered User
 
Join Date: 03 Nov 2008
Location: India
MS Office Version:Totally Confused with 2007
Posts: 400
e4excel will soon become part of the community
Re: Generating Permutations and Combinations

Quote:
Originally Posted by martindwilson View Post
youd have trouble with permutations your spread sheet would run out of rows on large ones.
i dont know if there is a formula solution but if there is it would prob take ages to calculate
last time we had a similar question
SHG had a solution
Any possiblity of getting that solution or the link for that Query where SHG had offered a solution...
Reply With Quote
  #10  
Old 07-02-2009, 06:55 AM
martindwilson's Avatar
martindwilson martindwilson is offline
Forum Guru
 
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 6,076
martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding
Re: Generating Permutations and Combinations

no idea mate,youd have to do a search ane trawl through his posts!
__________________
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code

how to enter array formula


recommended reading
wiki Mojito

how to say no convincingly

most important think you need
Reply With Quote
  #11  
Old 07-02-2009, 10:50 AM
e4excel e4excel is offline
Registered User
 
Join Date: 03 Nov 2008
Location: India
MS Office Version:Totally Confused with 2007
Posts: 400
e4excel will soon become part of the community
Re: Generating Permutations and Combinations

Not that I had not tried but in a similar query, SHG had removed the attachment and other files are slightly different from my requirement..

But anyways thanks a lot that file's still very good but it could have been an icing over the cake if it had been in a Formulaic solution...
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump