I am using the following formula to drive the RYG ball color in a Health column.
The color reflected in the Health column is driven by a combination of "Complete" (checked boxes) and "Due Date" data.
GREEN = Complete and/or Due Date = T+2
YELLOW = Incomplete and Due Date = T or T+1
RED = Incomplete and Due Date = T-1 or DNE
Here is the formula I am using:
=IF(ISBLANK([Due Date]@row), "", IF(Complete@row = 1, "Green", IF([Due Date]@row > TODAY(1), "Green", IF(OR([Due Date]@row = TODAY(), [Due Date]@row = TODAY(1)), "Yellow", IF([Due Date]@row < TODAY(), "Red")))))
I'd like to be able to convert this to a Column Formula, but want to consider creating an "average" health when a hierarchy comes into play.
I am using this formula to calculate the average health of the child rows that are using the aforementioned health formula:
=IF(AND(COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Yellow"), COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red")), "Green", IF(AND(COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Green"), COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Yellow")), "Red", "Yellow"))
Is there a way that I can combine the two formulas (or create a new formula) for the entire column that will incorporate an initial check to see if the row is a parent and if so, calculate the average of it's below children? Would this work if multiple hierarchies are added to a sheet? I've included an image for reference.
Any help would be greatly appreciated!
Thank you,
Rachel