RYGG ball formula issue

Hi,
I am having a slight issue with a formula that I have set up to automatically select red, yellow, green, gray ball based on programme start dates, finish date, % planned and % complete.
The formula for % Planned is =IF(ISBLANK(Level@row), IF(TODAY() > Finish@row, 1, IF(TODAY() < Start@row, 0, ((NETWORKDAY(Start@row, TODAY()) / (NETWORKDAY(Start@row, Finish@row)))))), IFERROR(AVGW(CHILDREN(), CHILDREN(Duration@row)), 0))
The formula for the RYGG is =IF([% Planned]@row <= [% Complete]@row, "Green", IF([% Planned]@row <= [% Complete]@row + 0.03, "Yellow", "Red"))
% Complete is a manual entry column.
The problem that I am having is that depending on the timeframe, the % Planned formula calculates a number with decimal values. See below snip showing the cells with decimal places shown.
Seeing as the %Complete column is manual input, our project managers will be entering whole numbers, we get a false reading on the RYGG value. Is there any way to tweak the formula to take the decimal values into account, i.e. if % Planned is <=.009 then yellow?
Best Answer
-
You can wrap the formula in the % Planned column in a ROUND function and tell it to only round to 2 decimals so that your percentage doesn't have the decimals anymore.
Answers
-
You can wrap the formula in the % Planned column in a ROUND function and tell it to only round to 2 decimals so that your percentage doesn't have the decimals anymore.
-
Hi Paul,
Thanks for the tip. I wrapped the % Planned column formula in the ROUND function and it worked perfect. Thanks you and happy new year!
=ROUND(IF(ISBLANK(Level@row), IF(TODAY() > Finish@row, 1, IF(TODAY() < Start@row, 0, ((NETWORKDAY(Start@row, TODAY()) / (NETWORKDAY(Start@row, Finish@row)))))), IFERROR(AVGW(CHILDREN(), CHILDREN(Duration@row)), 0)), 2)
Help Article Resources
Categories
Check out the Formula Handbook template!