Hi,
Struggling to put something robust together to do this so looking for some assistance...
I've tried to illustrate what I'm trying to do below:
<table style="font-family: Arial,Arial; font-size: 10pt; background-color: rgb(255, 255, 255); padding-left: 2pt; padding-right: 2pt;" border="1" cellpadding="0" cellspacing="0"> <colgroup><col style="font-weight: bold; width: 30px;"><col style="width: 79px;"><col style="width: 102px;"><col style="width: 20px;"><col style="width: 90px;"><col style="width: 80px;"><col style="width: 79px;"><col style="width: 79px;"><col style="width: 79px;"><col style="width: 79px;"></colgroup><tbody><tr style="background-color: rgb(202, 202, 202); text-align: center; font-weight: bold; font-size: 8pt;"><td>
</td><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td><td>G</td><td>H</td><td>I</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">1</td><td>Widget Date</td><td>Widget Quantity</td><td>
</td><td>Week Number</td><td>Requirement</td><td>Widget Date</td><td>Widget Date</td><td>Widget Date</td><td>Widget Date</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">2</td><td style="text-align: right;">03/01/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 1</td><td style="text-align: right;">50</td><td style="text-align: right;">03/01/2011</td><td>
</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">3</td><td style="text-align: right;">10/01/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 2</td><td style="text-align: right;">25</td><td style="text-align: right;">03/01/2011</td><td>
</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">4</td><td style="text-align: right;">17/01/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 3</td><td style="text-align: right;">75</td><td style="text-align: right;">03/01/2011</td><td style="text-align: right;">10/01/2011</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">5</td><td style="text-align: right;">24/01/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 4</td><td style="text-align: right;">150</td><td style="text-align: right;">10/01/2011</td><td style="text-align: right;">17/01/2011</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">6</td><td style="text-align: right;">31/01/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 5</td><td style="text-align: right;">175</td><td>
</td><td>
</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">7</td><td style="text-align: right;">07/02/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 6</td><td style="text-align: right;">25</td><td>
</td><td>
</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">8</td><td style="text-align: right;">14/02/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 7</td><td style="text-align: right;">5</td><td>
</td><td>
</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">9</td><td style="text-align: right;">21/02/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 8</td><td style="text-align: right;">75</td><td>
</td><td>
</td><td>
</td><td>
</td></tr></tbody></table>
Column A shows the widget creation date and Column B shows the quantity created. Column D shows the week number and Column E shows the widget requirement per week.
In Column F and beyond I would like to show the creation date of the widgets used to satisfy the requirement. So, week 1's requirement is 50, therefore it will use half of the widgets created on the 03/01/2011. Week 2's requirement is 25, so it will use a further 25 of the widgets created on the 03/01/2011. When we get to week 3, however, this will use the remaining 25 of widgets created on the 03/01/2011 and 50 of the widgets created on the 10/01/2011. And so on...
Does it make sense what I'm trying to do here? Been playing with this for a while but can't quite get it working.
Hope someone can help!
Thanks,
Matty
Struggling to put something robust together to do this so looking for some assistance...
I've tried to illustrate what I'm trying to do below:
<table style="font-family: Arial,Arial; font-size: 10pt; background-color: rgb(255, 255, 255); padding-left: 2pt; padding-right: 2pt;" border="1" cellpadding="0" cellspacing="0"> <colgroup><col style="font-weight: bold; width: 30px;"><col style="width: 79px;"><col style="width: 102px;"><col style="width: 20px;"><col style="width: 90px;"><col style="width: 80px;"><col style="width: 79px;"><col style="width: 79px;"><col style="width: 79px;"><col style="width: 79px;"></colgroup><tbody><tr style="background-color: rgb(202, 202, 202); text-align: center; font-weight: bold; font-size: 8pt;"><td>
</td><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td><td>G</td><td>H</td><td>I</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">1</td><td>Widget Date</td><td>Widget Quantity</td><td>
</td><td>Week Number</td><td>Requirement</td><td>Widget Date</td><td>Widget Date</td><td>Widget Date</td><td>Widget Date</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">2</td><td style="text-align: right;">03/01/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 1</td><td style="text-align: right;">50</td><td style="text-align: right;">03/01/2011</td><td>
</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">3</td><td style="text-align: right;">10/01/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 2</td><td style="text-align: right;">25</td><td style="text-align: right;">03/01/2011</td><td>
</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">4</td><td style="text-align: right;">17/01/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 3</td><td style="text-align: right;">75</td><td style="text-align: right;">03/01/2011</td><td style="text-align: right;">10/01/2011</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">5</td><td style="text-align: right;">24/01/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 4</td><td style="text-align: right;">150</td><td style="text-align: right;">10/01/2011</td><td style="text-align: right;">17/01/2011</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">6</td><td style="text-align: right;">31/01/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 5</td><td style="text-align: right;">175</td><td>
</td><td>
</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">7</td><td style="text-align: right;">07/02/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 6</td><td style="text-align: right;">25</td><td>
</td><td>
</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">8</td><td style="text-align: right;">14/02/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 7</td><td style="text-align: right;">5</td><td>
</td><td>
</td><td>
</td><td>
</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">9</td><td style="text-align: right;">21/02/2011</td><td style="text-align: right;">100</td><td>
</td><td>Week 8</td><td style="text-align: right;">75</td><td>
</td><td>
</td><td>
</td><td>
</td></tr></tbody></table>
Column A shows the widget creation date and Column B shows the quantity created. Column D shows the week number and Column E shows the widget requirement per week.
In Column F and beyond I would like to show the creation date of the widgets used to satisfy the requirement. So, week 1's requirement is 50, therefore it will use half of the widgets created on the 03/01/2011. Week 2's requirement is 25, so it will use a further 25 of the widgets created on the 03/01/2011. When we get to week 3, however, this will use the remaining 25 of widgets created on the 03/01/2011 and 50 of the widgets created on the 10/01/2011. And so on...
Does it make sense what I'm trying to do here? Been playing with this for a while but can't quite get it working.
Hope someone can help!
Thanks,
Matty