Kristi F said:
Hi John,
That works much better thanks. Am I correct in assuming that the "closets"
way to get my duration value to calculate to the approximate working times
(assuming that we work 5 days out of 7) that I need to (480/7)*5? Or is
there a better way to do this as well?
Thanks,
Kristi
Kristi,
Ok, it' still "my bad". Although I indeed tested the formula last time,
it still isn't right for what you want to see. When I tested it I used %
complete values for last month were less then those of the current month
so the Gantt bar was shorter and everything looked fine. I neglected to
take into account the difference between Duration and the task span line
shown on the Gantt graphic. In other words the Duration field in Project
is given in working days but the display is in elapsed days because
non-working time (e.g. weekends) are included in the timescale display.
I should have use the function that adds working days instead of elapsed
days. The correct formula is:
Start10=projDateAdd([Start],mid([Text2],1,instr(1,[Text2],"%")-1)/100*[Du
ration])
In the case of this formula, Duration is in days (I have no idea why) so
the conversion factor (480 minutes/day) is not needed.
With regard to your follow-on question, I don't understand what you are
asking, but let me take a stab at an answer. Project normally works with
working time. Therefore Duration values are expressed in working hours,
days, months, etc. although elapsed time can be entered (e.g. "xxed" =
"xx" elapsed days). Project uses a normal default 5 day work week with 8
hour work days. Task Start and Finish dates are also calculated in terms
of working time based on the Project calendar. However, Project stores
time in its underlying database in minutes. When using time related data
in formulas or in VBA, conversion factors are often necessary to convert
the minutes to hours or days depending on what the formula is
calculating. Conversion of minutes to hours is straightforward (60
min/hr). Conversion of minutes to days or weeks is also straightforward
(480 min/day and 2400 min/wk), assuming the default 8 hour workday and 5
day workweek. Conversion to months becomes a little less straightforward
because the days in a month vary. If the default 20 day month
(Tools/Options/Calendar tab) is used then the conversion is 48000
min/mon). However when months are the desired dimension of the
calculation, many people don't expect the result they get (they think in
terms of calendar months) and become confused. That's one reason I
recommend Duration always be expressed in days.
Again, sorry for my shortcomings regarding the formula I posted.
John
At this moment I don't feel like an MVP