John,
If you just want elapsed days you can simply subtract one date from the
other instead of using datediff.
Dates are stored as serial numbers so you can do simple subtraction and
round off.
-Jack Dahlgren
Jack,
Thanks. I forgot about the simple approach.
John
Project MVP
Thanks John! Actually Jim Aksel's response was almost identical
although
he
based his formula off the Project Start Date which is OK because all
of
our
schedules that I can think of have a Project Start Date that coincides
with a
"Contyract Signing Date". I will retain your info in case we ever
have a
situation that it does not.
I would like to know how to modify the formula to get the result in
"elapsed
days".
Ed
Ed,
You're welcome. I figured there would be responses other than mine.
If you want the result in elapsed days, the formula has an extra twist
in it, but try this:
DateDiff('d',[Date1],[Start])*480
Note: the 480 factor is needed to translate the "days" (i.e. 'd' in the
formula) into days in the duration field because spare duration fields
already apply a "correction" factor.
John
Project MVP
:
Your sarcastic response is NOT appreciated! FYI, I've been using
the
HELP
feature along with MS Project 2003's 1000 page manual to find a
resolution.
If it was that easy to find, I wouldn't be addressing this
community!
Scrufnut,
Obviously you are pretty frustrated. Project can do that to you.
Let's
see if I can help.
What you want could be done by customizing a spare field with a
formula
that calculates a date difference, or it could done a little more
efficiently using VBA. For simplicity, let's use the custom field
approach. You didn't mention if you want the difference in working
days
or elapsed days - I'll assume working days.
1. Designate two spare fields - one spare date field (e.g. Date1)
and
one spare duration field (e.g. Duration1)
2. Enter the date of "contact signing" in the Date1 field and do a
fill
down so it is entered in all tasks. This is necessary since formulas
only calculate on task by task basis
3. Go to Tools/Customize/Field
4. Select the field type as "Duration" and then select Duration1
5. Hit the Formula button
6. Insert the following
ProjDateDiff([Date1],[Start])
7. Hit "OK" and "OK"
Hope this helps.
John
Project MVP
:
On Nov 5, 7:02 am, Scrufnut <
[email protected]>
wrote:
I would like to add a column that shows the number of days
between a
specific
task (in this case -"contract signing") and the start of every
other
task.
How do I do this? Is there an existing field type that would
let
me
do
this?
Do I use a formula, and if so, where can I find basic
instructions on
how
to
create one?
Lemme see now, I think I did this once before. Oh yes, the
"Help"
function in Project will tell you! Glad I remembered that.