RAG status bands a metric into Red, Amber, or Green against thresholds — the universal project and dashboard health signal. Nested IF (or IFS) assigns the band; conditional formatting paints it.
The example
92% completion → Green.
| A | B | |
|---|---|---|
| 1 | Metric | RAG |
| 2 | 92% | Green |
| 3 | 68% | Amber |
The formula
The formula:
How it works
How it works:
- Set two thresholds: green (good) and amber (warning); below amber is red.
IFStests highest first — at/above green → Green, at/above amber → Amber, else Red.- In older Excel use nested IF:
IF(v>=g,"Green",IF(v>=a,"Amber","Red")). - Add conditional formatting to fill the cell red/amber/green by the text.
Direction matters. For metrics where lower is better (defects, cost, days late), flip the comparisons: green when value <= green_max. Keep the thresholds in labeled cells so reviewers can see — and adjust — what counts as red without touching the formula.
Try it: interactive demo
Value with green≥85, amber≥60.
%Variations
Nested IF (older Excel)
No IFS:
Lower is better
Flip the test:
Numeric for icons
1/2/3 for icon sets:
Pitfalls & errors
Highest first. Order IFS/IF tests from best to worst or a lower band catches everything.
Mind direction. Flip comparisons when lower is better.
Thresholds in cells. Keep green/amber cutoffs editable, not hard-coded.
Practice workbook
Frequently asked questions
How do I create RAG status in Excel?
What if lower is better?
How do I color the RAG cell?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class