Hi-
I'm trying to average children rows with RYG and Blue status where:
Red
- If Red is greater than Yellow
- If Red is greater than Green
Yellow
- If Yellow is greater than or equal to Red
- If Yellow is greater than or equal to Green
Green
- If Green is greater than Red
- If Green is greater than Yellow
Blue
This formula is unparsable and I haven't been able to figure out why:
=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", IF(AND(COUNTIF(CHILDREN(), "Yellow") >= COUNTIF(CHILDREN(), "Green"), COUNTIF(CHILDREN(), "Yellow") >= COUNTIF(CHILDREN(), "Red")), "Yellow", IF(AND(COUNTIF(CHILDREN(), "Blue") = COUNTIF(CHILDREN(), “Blue”))))))