Re: Formula for stoplight
- From: "Jonathan Sofer" <jonathan.sofer.msps@xxxxxxxxx>
- Date: Wed, 20 Feb 2008 16:12:45 -0500
Looks like you are missing some closing parenthesis at the end of your
formula which explains why the cursor moves to the end of your formula after
throwing the error.
Actuall, all of your IIf statements execpt the first one need to have a
start open paranthesis. The syntax is IIF(conditional statement,true,false)
Jonathan
"Hawk" <Hawk@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5A5857CF-139F-4935-8E89-AAA5DF1036EF@xxxxxxxxxxxxxxxx
Hello... I need some help with a formula in project. I found a stoplight
formula and it works fine, but I need to tweak it a little bit to match my
boss's needs. Problem is, when i try to understand the logic/syntax and
adjust it, i get a user error. i must be missing a character or something
because it just won't work, and after i get the error, it places the
cursor
at the end of the formula instead of highlighting the problem. Here's
what
i want it to show me: ---if tasks or milestones are (baselined to start)
in
the future, show 1. if tasks or milestones are 100%, show 2. if tasks are
on
track to finish according to the baselined dates, show 2. if tasks are
baselined to finish three days from now and the % complete is more than
60%,
show 2. if tasks are baselined to finish three days from now and the %
complete is more than 50 but less than 59%, show 3. if tasks are
baselined
to finish one day from now and the % complete is more 40 but less than
49%,
show 4. if tasks are 5 days late (using baselined finish date) and the %
complete is less than 60%, show 5. if tasks are 10 days late (using
baselined finish date) and the % complete is less than 60%, show 6.
this is what i came up with, but like i said, there's an error somewhere
(or
lots of somewheres...!)
If the task is 100% or the ratio of how much should be done is on time,
GREEN
IIf(([% Complete]=100 Or [% Complete]>100*(Abs((Now()-[Actual
Start])/([Baseline Finish]-[Baseline Start])))),2,IIf[Baseline
Finish]>Now()-3 And [% Complete]<80,3,IIf[Baseline Finish]>Now()-4 And [%
Complete]<70,4,IIf[Baseline Finish]>Now()-5 And [%
Complete]<60,5,IIf[Baseline Finish]>Now()-10 And [%
Complete]<60,6,IIf[Baseline Start] Or [Start]>Now(),1
Any help would be very much appreciated since the help on project's
formulas
didn't assist me much....
.
- References:
- Formula for stoplight
- From: Hawk
- Formula for stoplight
- Prev by Date: Re: Fixed Duration Tasks not staying fixed - Project 2007
- Next by Date: RE: Allocating funds to a resource
- Previous by thread: Formula for stoplight
- Next by thread: Re: Formula for stoplight
- Index(es):
Relevant Pages
|