How to combine cells in a simple combination (combinatorics) fashion

Acomuna

New Member
Joined
Jan 5, 2018
Messages
2
Hi guys!
I've looked for a way to do this in several foruns and website and found no clue...
Hope someone can help me! :biggrin:

Here is a sample of the data I have:


Student1Student2Student3Student4
Nascimento MS Espindola CF do Prado C
Bhansali SNascimento MS Dhawan V Amarins MB
Bozek T Blazekovic A
Thewjitcharoen YNascimento MSdo Prado C Nakasatien S
Jonas MIBhansali SAmarins MB

<tbody>
</tbody>


I want an arrangement of these cells, outputting pairs that reflect how many times a particular student interacted in these groups.
In other words, it is a simple combination. For each group, there are n!/p!*(n-p)! possibilities of interaction, where "n" is the number of the students in each group (in the sample, ranging from 2 to 4) and "p" equals 2 (pairs of interaction).
Thus, the output would be something like this:



Nascimento MSEspindola CF
Nascimento MSdo Prado C
Espindola CFdo Prado C
Bhansali SNascimento MS
Bhansali SDhawan V
Bhansali SAmarins MB
Nascimento MSDhawan V
Nascimento MSAmarins MB
Dhawan VAmarins MB
Bozek TBlazekovic A
Thewjitcharoen YNascimento MS
Thewjitcharoen Ydo Prado C
Thewjitcharoen YNakasatien S
Nascimento MSdo Prado C
Nascimento MSNakasatien S
do Prado CNakasatien S

<tbody>
</tbody>
<table class="wysiwyg_dashes wysiwyg_cms_table_sheet0 wysiwyg_cms_table_gridlines" verdana,="" arial,="" tahoma,="" calibri,="" geneva,="" sans-serif;"="" width=""><tbody></tbody></table>...and so on...


It is my first post, but I hope I made it clear enough. :rolleyes:
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Would you please add the cross posted hyperlink locations to this thread
 
Upvote 0
Hi, mole999!
I meant that I searched for it everywhere, but I haven't asked this question anywhere. So it was not cross posted.
Thanks!
 
Upvote 0

Forum statistics

Threads
1,221,469
Messages
6,160,028
Members
451,611
Latest member
PattiButche

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