blacklisted
New Member
- Joined
- Sep 18, 2015
- Messages
- 3
Hey Everyone,
I'm new to the forum and have very, very basic VBA skills. I have been searching around the internet trying to find combination VBA code that I could lift for my project I'm working on but I can not find anything that applies.
What I'm trying to do is find all the possible combinations of selecting 6 out of 30 employees for a project, which I know is just under 600K possible combinations. However, there is a monthly budget for the project of $50K which cannot be exceeded so that should bring the number of possible combinations down to what I hope is a more manageable list. Also, we rate each employee on a scale from 1 to 10, 10 being the best rating, so I would like to sort the output list by the sum of the 6 employees ranking so that I can focus on selecting the 6 best employees to work on the project for the optimal cost to maximize the value of the project.
My data is as follows:
A1:A30 -> Names of Employees
B1:B30 -> Employee Salaries
C1:C30 -> Rating between 1 & 10
I was hoping the output would be a list of all possible combination of the employee names in 6 separate columns, the 7th column would be the sum of the salaries, and the 8th column would be the sum of all 6 employee's rating (sorted by this column).
Please let me know if you have any questions and thanks in advance for your help.
I'm new to the forum and have very, very basic VBA skills. I have been searching around the internet trying to find combination VBA code that I could lift for my project I'm working on but I can not find anything that applies.
What I'm trying to do is find all the possible combinations of selecting 6 out of 30 employees for a project, which I know is just under 600K possible combinations. However, there is a monthly budget for the project of $50K which cannot be exceeded so that should bring the number of possible combinations down to what I hope is a more manageable list. Also, we rate each employee on a scale from 1 to 10, 10 being the best rating, so I would like to sort the output list by the sum of the 6 employees ranking so that I can focus on selecting the 6 best employees to work on the project for the optimal cost to maximize the value of the project.
My data is as follows:
A1:A30 -> Names of Employees
B1:B30 -> Employee Salaries
C1:C30 -> Rating between 1 & 10
I was hoping the output would be a list of all possible combination of the employee names in 6 separate columns, the 7th column would be the sum of the salaries, and the 8th column would be the sum of all 6 employee's rating (sorted by this column).
Please let me know if you have any questions and thanks in advance for your help.