# Need to summarize RAG status

✭✭

Hi,

I have multiple RAG status' in my plan and I would like to summarize the overall status, is there any way to achieve this. So as an example, I have a sheet summary in my sheet and each status in the plan has a formula which tells me what % is the colour, e.g =COUNTIF(Status:Status, "Red") / COUNT(Status:Status) and so on for each colour. But I want to summarise this all into an overal status. So if the red has more % then show the overall status as red, if green has more % then show the overal status as green. Anyway to achieve this? Thank you

• ✭✭✭✭✭✭

Try something like this:

=IF(AND(R#>= Y#, R#>= G#, R#>= B#), "Red", IF(AND(Y#>= R#, Y#>= G#, Y#>= B#), "Yellow", IF(AND(G#>= Y#, G#>= R#, G#>= B#), "Green", "Blue")))

• ✭✭✭✭✭✭

Are you able to provide some screenshots for reference? What if there are two colors that have the same %? Do you have a hierarchy for which should override which?

• ✭✭

Hi @Paul Newcome thanks for your response, please see the screenshot below. If there are 2 colours which the same, the worse colour should over ride as follows: Red -> yellow -> green. Please see screenshot below and look forward to your response. Thank you.

• ✭✭✭✭✭✭

Try something like this:

=IF(AND(R#>= Y#, R#>= G#, R#>= B#), "Red", IF(AND(Y#>= R#, Y#>= G#, Y#>= B#), "Yellow", IF(AND(G#>= Y#, G#>= R#, G#>= B#), "Green", "Blue")))

• ✭✭

That worked! thank you so much!

• ✭✭✭✭✭✭

Happy to help. 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!