Work Allocation Across Dates

Enginair

New Member
Joined
Mar 13, 2019
Messages
1
Hello,

I've got a task given to me that's been quite manual in the past that I'm trying to speed up with the help of some vba/formulas.

Basically I've got a list of products (A,B,C) with a manufacture due date that need to be allocated between 3 different people (X,Y,Z).
The dates will differ every month but they are fixed.

Product A can only be made by Person X or Y
Product B can only be made by Person Y
Product C can only be made by Person Z

Person X must manufacture exactly 6 of product A in April, exactly 7 in May, exactly 6 in June and so on throughout the year..
There will always be at enough of product A in any given month that can be allocated to Person X.

An example of what the raw data would look like before work is allocated:

[TABLE="width: 300"]
<tbody>[TR]
[TD]Type[/TD]
[TD]Date[/TD]
[TD]Person[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]1/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]2/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]2/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]6/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]8/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]10/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]12/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]15/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]16/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]16/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]17/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]21/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]25/4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]28/4[/TD]
[TD]a[/TD]
[/TR]
</tbody>[/TABLE]


Additionally as much as possible the work for Person X must be spread out over the month. For example using the table above instead of allocating 3x Product A over 16/4, 16/4 and 17/4 to Person X they would be allocated 16/4, 17/4 and 25/4. It doesn't matter how the work is allocated for Persons Y and Z.

An Example of what the finished data would look like:

[TABLE="width: 300"]
<tbody>[TR]
[TD]Type[/TD]
[TD]Date[/TD]
[TD]Person[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]1/4[/TD]
[TD]Z[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]2/4[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]2/4[/TD]
[TD]Z[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]6/4[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]8/4[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]10/4[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]12/4[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]15/4[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]16/4[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]16/4[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]17/4[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]21/4[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]25/4[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]28/4[/TD]
[TD]Z[/TD]
[/TR]
</tbody>[/TABLE]


I hope I've explained it well enough.. I'm really not sure how to begin on this one, do you have any ideas how I could do this? My Googling/searching of this forum hasn't lead me to anything yet.

Any advice and help would be greatly appreciated!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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