T
Trevor Rabey
I have Deadlines set on some Tasks and I am trying to calculate the
difference in Calendar/Elapsed Days (ie not from the project calendar or any
of the others) between the Finish (Actual or Planned) and the Deadline.
More specifically, I only want to see a result, preferably a negative number
only, for those Tasks which have Deadlines and which are Finishing Later
than the Deadline.
First, I would settle for positive and negative results, but I don't want to
see #ERROR in the calulated field if there is no Deadline set for that Task.
Have tried using both a spare Duration Field and a spare Text field.
Have tried IIf Deadline = NA (or "NA" or "") then "", else
DateDiff("d",Deadline, Finish)
Have also tried getting a Flag field to read the Deadline field and go
Yes/No (to help the calculation in the other field) depending on whether a
Deadline is set, ie Yes if Deadline <> "" or Deadline <>"NA" or Deadline >
some Date.
Everything I use to try to return a blank for no Deadline set, instead
returns #ERROR
It never gets as far as the test.
Even if I test for IIF(Datediff(etc) = #ERROR, etc) I still get #ERROR
I'm tired. It's late. I give up.
difference in Calendar/Elapsed Days (ie not from the project calendar or any
of the others) between the Finish (Actual or Planned) and the Deadline.
More specifically, I only want to see a result, preferably a negative number
only, for those Tasks which have Deadlines and which are Finishing Later
than the Deadline.
First, I would settle for positive and negative results, but I don't want to
see #ERROR in the calulated field if there is no Deadline set for that Task.
Have tried using both a spare Duration Field and a spare Text field.
Have tried IIf Deadline = NA (or "NA" or "") then "", else
DateDiff("d",Deadline, Finish)
Have also tried getting a Flag field to read the Deadline field and go
Yes/No (to help the calculation in the other field) depending on whether a
Deadline is set, ie Yes if Deadline <> "" or Deadline <>"NA" or Deadline >
some Date.
Everything I use to try to return a blank for no Deadline set, instead
returns #ERROR
It never gets as far as the test.
Even if I test for IIF(Datediff(etc) = #ERROR, etc) I still get #ERROR
I'm tired. It's late. I give up.