Hi!
I have a callendar that shows how many workers are avaiable. Splitted by the week number in colums
And by who in rows. Above the weeknumber i need to show how many we need that week.
Been stuck with trying to convert the dates into week numbers and split what i need on the different weeks and match this and match this back. But im sure this can be written in one code.
I want the workforce needed total to show in Cell D20 for week 1 of a year. The date/week/year of this date is stored in D68-71 for other purposes.
The start date for a task is in Column I, end dates in Column J. And the workforce needed is automaticly calculated in column N (on a different sheet). The dates for start and end can be overlapping, one thing can start in 5 months other things in just a week. I need it to be able to work unsorted.
The number of work force needed in column N is in numbers by people needed per week.Ex.
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Start[/TD]
[TD]End[/TD]
[TD]People needed per
week to do this task[/TD]
[/TR]
[TR]
[TD]01.03.2014[/TD]
[TD]01.06.2014[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]01.01.2014[/TD]
[TD]01.05.2014[/TD]
[TD]6[/TD]
[/TR]
</TBODY>[/TABLE]
(in this example i need 9 people from 01.03 until 1.05)
[TABLE="width: 500"]
<TBODY>[TR]
[TD]In need of:[/TD]
[TD]?[/TD]
[TD]?[/TD]
[TD]?[/TD]
[TD]?[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]Week number[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Avaiable person[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Avaiable person[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
How shall i write this?
Thanks in advance!
I have a callendar that shows how many workers are avaiable. Splitted by the week number in colums
And by who in rows. Above the weeknumber i need to show how many we need that week.
Been stuck with trying to convert the dates into week numbers and split what i need on the different weeks and match this and match this back. But im sure this can be written in one code.
I want the workforce needed total to show in Cell D20 for week 1 of a year. The date/week/year of this date is stored in D68-71 for other purposes.
The start date for a task is in Column I, end dates in Column J. And the workforce needed is automaticly calculated in column N (on a different sheet). The dates for start and end can be overlapping, one thing can start in 5 months other things in just a week. I need it to be able to work unsorted.
The number of work force needed in column N is in numbers by people needed per week.Ex.
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Start[/TD]
[TD]End[/TD]
[TD]People needed per
week to do this task[/TD]
[/TR]
[TR]
[TD]01.03.2014[/TD]
[TD]01.06.2014[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]01.01.2014[/TD]
[TD]01.05.2014[/TD]
[TD]6[/TD]
[/TR]
</TBODY>[/TABLE]
(in this example i need 9 people from 01.03 until 1.05)
[TABLE="width: 500"]
<TBODY>[TR]
[TD]In need of:[/TD]
[TD]?[/TD]
[TD]?[/TD]
[TD]?[/TD]
[TD]?[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]Week number[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Avaiable person[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Avaiable person[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
How shall i write this?
Thanks in advance!