I am trying to set-up a Stop Light function for the tasks in my project
plan so I can have a Red, Amber, Green status for each task. I want to
use the Finish Variance field to show the status of a task so if it's >5
but less than 10 to show Amber, for a variance of >10 it show red
otherwise it should show green.
I have spent hours this afternoon trying to create a formula within the
custom field function to do this without any luck.
If anyone can help with a suitable formula or advise on how I can
achieve the same thing, I would be very grateful and it would save my
frustrations tomorrow when I have another go !
Many thanks
Dave
--
dstoddart@blueyonder
------------------------------------------------------------------------
dstoddart@blueyonder's Profile: http://forums.techarena.in/members/dstoddart-blueyonder.htm
View this thread: http://forums.techarena.in/microsoft-project/1088751.htm
In a number field (Number1 for example) try the following formula:
Switch([Finish Variance]/[Minutes Per Day]<=5,1,[Finish
Variance]/[Minutes Per Day]>5 And [Finish Variance]/[Minutes Per
Day]<=10,2,[Finish Variance]/[Minutes Per Day]>10,3)
For tasks with a finish variance of 5 days or less, this will show
1. For tasks with finish variance greater than 5 days but less than
or equal to 10 days it will show 2,. For tasks with a finish
variance greater than 10 days, it will show 3. Then set the
graphical indicators:
Equals 1 - green
Equals 2 - yellow (sorry no amber)
Equals 3 - red
I hope this helps. Let us know how you get along.
Julie
Project MVP
Visit http://project.mvps.org/ for the FAQs and additional
information about Microsoft Project
<dstoddartblue...@DoNotSpam.com> wrote in message
news:dstoddartblue...@DoNotSpam.com...
Thanks again ;-)
Glad to know the formula is working for you. To your new question,
just add
[% Complete] = 100, 0 to the beginning of the formula. Your amended
formula would read:
Switch([% Complete]=100,0,[Finish Variance]/[Minutes Per
Day]<=5,1,[Finish Variance]/[Minutes Per Day]>5 And [Finish
Variance]/[Minutes Per Day]<=10,2,[Finish Variance]/[Minutes Per
Day]>10,3)
You can just leave the graphical indicators as before. Because 0
(the result if the task is complete) isn't in the list of
indicators, no indicator appears.
Julie
Glad to hear the amended formula works for you as well. The
formulas in Project are a mixture of Excel and Access formulas with
a few that are just Project thrown in. There is some vague help in
Project but I usually start with Project -- searching for 'Project
Functions' and then either jump over to Access help or Excel help
for specific details. Fellow MVP, Jack Dahlgren also has some info
on his website(s) about custom fields. Try:
http://zo-d.com/blog/archives/programming/working-with-custom-field-formulas.html
Julie
" <dstoddartblue...@DoNotSpam.com> wrote in message
news:dstoddartblue...@DoNotSpam.com...
>
Make sure the option for "Group and summary row" in the customize
field dialog box is set to "Use formula."
I hope this helps. Let us know how you get along.
Julie
Project MVP
Visit http://project.mvps.org/ for the FAQs and additional
information about Microsoft Project
"CharlesM" <Char...@discussions.microsoft.com> wrote in message
news:786A9AB5-83B8-426F...@microsoft.com...
--
corky0770
------------------------------------------------------------------------
corky0770's Profile: http://forums.techarena.in/members/corky0770.htm
Julie
"CharlesM" <Char...@discussions.microsoft.com> wrote in message
news:CD45B92C-5208-4145...@microsoft.com...
Sorry, no. Perhaps if you posted your formula we could assist.
Without the formula you've used and more information we would be
just wasting time guessing.
Please see: http://project.mvps.org/posting.htm for some guidance
on posting, particularly the 3rd and 4th bullet points.
I hope this helps. Let us know how you get along.
Julie
Project MVP
Visit http://project.mvps.org/ for the FAQs and additional
information about Microsoft Project
"corky0770" <corky077...@DoNotSpam.com> wrote in message
news:corky077...@DoNotSpam.com...
I've tried pasting this formula into a number field as described but I
continue to get a syntax error and it highlights the second [Finish
Variance]
Switch([Finish Variance]/[Minutes Per Day]<=5,1,[Finish
Variance]/[Minutes Per Day]>5 And [Finish Variance]/[Minutes Per
Day]<=10,2,[Finish Variance]/[Minutes Per Day]>10,3)
What am I doing wrong?
--
texmaster
------------------------------------------------------------------------
texmaster's Profile: http://forums.techarena.in/members/142408.htm
Have you tried it in another file? Try copy/pasting again?
- Andrew Lavinsky
Blog: http://blogs.catapultsystems.com/epm