cominations vba

Status
Not open for further replies.
Joined
Apr 2, 2020
Messages
14
Office Version
  1. 2010
Platform
  1. Windows
i need vba codes for the below project. i have a list of 22 players from 2 teams like

Name of PlayerTeamPositionCredits
BryanTeam1Bat
9.5​
DanielTeam2Bowl
8​
PaulTeam2All
8.5​
WrightTeam2Bat
10.5​
SamTeam1Bat
11​
SuniTeam1Bowl
9​
SachinTeam1All
8​


etc...

i need all possible combination of 11 members from this 22 members according to the below conditions.

the conditions are:
1. There should be minimum 4 players and Maximum of 7 players from each team.
2. WK - minimum 1 and max 4 members
3. BAT - minimum 3 and max 6 members
4. ALL - minimum1 and max 4 members
5. BOWL - minimum 3 and max 6 members
6. Only need those teams whose sum total is less than or equal to 100 credits.
7. there should not be any repetitions like sachin, suni again repeated as suni sachin.

The result should be generated in the next sheet in columns as 11 member team like
Bryan
Suni
Sachin
kannan
daniel etc

Can anyone help on this?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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