I suspect that you really mean that the Work (hours), rather than Duration,
of the Tasks lower down the list is a function of Tasks higher up the list.
But OK, let's say it is the Duration.
In your example, Task 4 Duration is a function (ie a simple linear
proportion) of Task 3 Duration.
But since Task 3 Duration is a function of Task 2 Duration and so on up the
chain to Task 1, really the Duration of all of the Tasks is a function of
the Duration of Task 1.
In EXCEL this is very easy to get with a formula that has an absolute
reference to the cell in Row 1, where Task 1 is, or alternatively you use
the cell above.
In MSP, it is very easy to do calculations on data within the row of a
particular Task, but not so easy (needs VBA) to use data for one Task for a
calculation for another Task. This is because it's a database, not a
spreadsheet. My VBA isn't strong, so my approach to your problem is to copy
the whole list of Tasks and their Durations from MSP into EXCEL, do the
calculation there, where it's easy, and then just paste the calculated
Durations back into MSP.
However, I think it is a mistake to estimate Durations as essentially
arbitrary functions of some arbitrary variable.
You can get Duration estimates by any method you like, but I agree with
Steve that you should get them by estimating the Duration of the Task.
Arriving at a Duration by some calculation does tend to give it a veneer of
respectability but it is not really any better or more valid than and
educated guess.
I doubt that you really have historical data or any basis for the 200%, 50%,
25%.. correlation, so these look like they have just been nominated for
convenience, ie they are an estimate.
May as well just estimate the Durations directly.
MSPLearner said:
Let me give an example.
Task 1 - Analysis (is fixed, enter effort and duration)
Task 2 - Code & Unit Test (is 200% of Task 1)
Task 3 - System Test (is 50 % of Task 2)
Task 4 - User Acceptence (is 25% of Task 3)
Steve House said:
Oh I agree with that strategy for estimating, but that's still a decision
that would be made on a case-by-case, task-pair by task-pair basis. Our
poster wanted some automated system that would set each task to a fixed
proportion of the task before it, scanning (I gather) all the tasks in
the
project and applying the same ratio to every set of tasks across the
board.
Still doesn't make sense to me.
--
Steve House [Project MVP]
MS Project Trainer & Consultant
Visit
http://www.mvps.org/project/faqs.htm for the FAQs
davegb said:
Steve House [Project MVP] wrote:
I suppose it could be done with VBA but I can't imagine any real world
project where the duration of each task in the project would be double
(or
any other fixed ratio) of the duration of the task that preceeds it.
Work
estimates just aren't that tidy.
--
Steve House [Project MVP]
MS Project Trainer & Consultant
Visit
http://www.mvps.org/project/faqs.htm for the FAQs
I'd have to disagree with you on this one, Steve. Seems to me that in
many cases, for estimating purposes, factoring one tasks duration from
another's would be quite valid. If I were an experienced painter, I
might have discovered that if it takes me a day to prep a room, it will
take about 2 days to paint it. Or some such thing. It is just an
estimate.
I am looking for ideas (or VBA code) to help me accomplish the
following.
BTW
- this very simple is MS Excel, but I wonder if it can also be done
in
MS
Project. Based on the effort and duration of a previouly entered
task
(Task
A) , can I calculate a subsequent task's (Task B) effort and
duration
as
a %
Task A's effort and duration.
Task A Effort = 8 hrs Duration = 2 days
Task B Effort = 16 hrs Duration = 4 days (200% of Task A)
Thanks in advance for any help.