Hi everyone,
I run a factory team of 20 members and I am trying to put together a sheet that can calculate the budget required for each employee to hit a certain productive target. We do this exercise twice a month (mid and end of month)
I have uploaded the initial draft of the template I have created here which I will making reference to the rest of this thread.
Because I run this exercise twice a month, I have the same table laid out side by side (Column E to N is for Period 1, while O onwards is for Period 2).
How I am envisioning is that the macro can run upon the user clicking either Cell E2 or E3 depending on Period 1 or 2. Upon user clicking either button, the macro will run and calculate the hours required to allocate to each employee in order to reach the overall target of 73% (calculated in Cell C6).
There are a few rules the macro needs to account for when calculating this
1. Every employee has a different cost / hour (Column C). The macro should start from the employee with the lowest cost.
2. The macro should calculate the budget required to bump the employee with the lowest LCR (i.e. Larry) up to 100% (Column L) before moving on the 2nd lowest cost / hour employee (i.e. Amy), and so on.
3. Each employee's maximum hours that can be allocated is determined in Column I, which is essentially the difference between the maximum working days in that period and his / her actual productive hours.
The outcome I am trying to achieve, is for the macro to be able to calculate:
1) the total budget (based on each employee's cost / hour) required to achieve the 73% profitability target
2) the method of allocating this budget to each employee to achieve this 73% using the calculated budget
Appreciate if the gurus here can point me in the right direction due to my limited knowledge in VBA. And apologies for the long post...
Thanks a ton!
I run a factory team of 20 members and I am trying to put together a sheet that can calculate the budget required for each employee to hit a certain productive target. We do this exercise twice a month (mid and end of month)
I have uploaded the initial draft of the template I have created here which I will making reference to the rest of this thread.
Because I run this exercise twice a month, I have the same table laid out side by side (Column E to N is for Period 1, while O onwards is for Period 2).
How I am envisioning is that the macro can run upon the user clicking either Cell E2 or E3 depending on Period 1 or 2. Upon user clicking either button, the macro will run and calculate the hours required to allocate to each employee in order to reach the overall target of 73% (calculated in Cell C6).
There are a few rules the macro needs to account for when calculating this
1. Every employee has a different cost / hour (Column C). The macro should start from the employee with the lowest cost.
2. The macro should calculate the budget required to bump the employee with the lowest LCR (i.e. Larry) up to 100% (Column L) before moving on the 2nd lowest cost / hour employee (i.e. Amy), and so on.
3. Each employee's maximum hours that can be allocated is determined in Column I, which is essentially the difference between the maximum working days in that period and his / her actual productive hours.
The outcome I am trying to achieve, is for the macro to be able to calculate:
1) the total budget (based on each employee's cost / hour) required to achieve the 73% profitability target
2) the method of allocating this budget to each employee to achieve this 73% using the calculated budget
Appreciate if the gurus here can point me in the right direction due to my limited knowledge in VBA. And apologies for the long post...
Thanks a ton!