Wondering if this has ever been 'invented'....
I have a list of tasks, that contains a taskID, start date, end date, person to perform the task and number of hours that it should take to perform the task:
TASK WHO STARTDATE ENDDATE HOURS
0001 John 10/10/2008 10/15/2008 32
0002 Mary 10/10/2008 10/10/2008 8
0003 Chris 10/13/2008 10/14/2008 10
What I need is a macro that can add rows for each working day (so split up every row in one row per working day). The number of hours needs to be divided evenly over the rows. In this case there are 4 working days (10/10/08 is a Friday) for John, 1 working day for Mary and 2 for Chris. Hence, the result of the macro should be:
TASK WHO STARTDATE ENDDATE HOURS
0001 John 10/10/2008 10/10/2008 8
0001 John 10/13/2008 10/13/2008 8
0001 John 10/14/2008 10/14/2008 8
0001 John 10/15/2008 10/15/2008 8
0002 Mary 10/10/2008 10/10/2008 8
0003 Chris 10/13/2008 10/13/2008 5
0003 Chris 10/13/2008 10/14/2008 5
Can anybody help?
I have a list of tasks, that contains a taskID, start date, end date, person to perform the task and number of hours that it should take to perform the task:
TASK WHO STARTDATE ENDDATE HOURS
0001 John 10/10/2008 10/15/2008 32
0002 Mary 10/10/2008 10/10/2008 8
0003 Chris 10/13/2008 10/14/2008 10
What I need is a macro that can add rows for each working day (so split up every row in one row per working day). The number of hours needs to be divided evenly over the rows. In this case there are 4 working days (10/10/08 is a Friday) for John, 1 working day for Mary and 2 for Chris. Hence, the result of the macro should be:
TASK WHO STARTDATE ENDDATE HOURS
0001 John 10/10/2008 10/10/2008 8
0001 John 10/13/2008 10/13/2008 8
0001 John 10/14/2008 10/14/2008 8
0001 John 10/15/2008 10/15/2008 8
0002 Mary 10/10/2008 10/10/2008 8
0003 Chris 10/13/2008 10/13/2008 5
0003 Chris 10/13/2008 10/14/2008 5
Can anybody help?