# If formula - to consolidate color status

Options
✭✭

Hello

Trying to consolidate multiple cells in the same column - roll up status essentially

I have 1 cell that I am trying to consolidate from 2-3 other color status columns without having to write out all the combinations .

Essentially

if all are green = green

If one or more is yellow - consolidated status is yellow

if one or more is red - consolidated status is Red

Formula I have is which returns Incorrect Argument Set

=IF(AND([Epic Status]24 = "green", [Epic Status]25 = "green", [Epic Status]26 = "green", "green", IF(OR([Epic Status]24 = "yellow", [Epic Status]25 = "yellow", [Epic Status]26 = "yellow", "yellow", IF(OR([Epic Status]24 = "red", [Epic Status]25 = "red", [Epic Status]26 = "red", "red", "green"))))))

I feel like I got close with it as I could get it to work if everything was green but as soon as I switched one to Red, it said incorrect data

I've tried a few different argument structures and I feel like I am so close!

• ✭✭✭✭✭✭
Options

Hey @NicoleB

Are these Child rows you are rolling up to a Parent row? (The Parent row will have a + or minus in the cell of the Primary column)

• ✭✭✭✭✭✭
Options

Hey @NicoleB

Are these Child rows you are rolling up to a Parent row? (The Parent row will have a + or minus in the cell of the Primary column)

• ✭✭
Options
• ✭✭
Options

@Kelly Moore - I got it - thanks for your comment! That helped me find my answer :)

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!