Analyzing 2 data sets for possible combinations and showing the actual output of combinations...

BB38

New Member
Joined
Jan 16, 2021
Messages
39
Office Version
  1. 365
Platform
  1. Windows
I have two data sets. Let's call these

Name and Position

I have 3 names and 2 positions (slot 1 and 2)

so just for example:
Bob
Mary
John

I know how to calculate how many permutations there are if ORDER does not matter. But it does matter in this case. for example, if Bob and Mary are a potential slot 1 and 2, I also need to show that Mary and Bob are a combination for slot 1 and 2.

How can I show the actual output of the potential combinations of these two variables (as in showing every possible combo of the names within those two slots where ordering matters. I'm envisioning a grid that just shows all combos of these names for slot 1 and 2 including changes in ordering (e.g. Bob and Mary are one combo, but Mary and Bob are another).

any help out there?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
so that is actually permutations if Order Does matter without repitition (im assuming mary cant be slot 1 and slot 2)
where n is the number of things to choose from,
and r is the number of them chosen

So you would =COUNTA(COLUMN) to supply n. Then you would do a manual entry of r. (how many you want to choose for each [set])
the formula for the last box would be: =PERMUT(n,r)

ex:

A
B
C
NamesN
=COUNTA(A2:A4)​
BobR
2​
MaryCombinations
=PERMUT(C2,C3)​
John
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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