How to Create a Red, Amber, Green Status Formula in Microsoft Project
Question details
The user needs to set up a custom RAG (Red, Amber, Green) status indicator based on percent complete, finish dates, and a custom 'Plan in Place' field.

- Product
- Microsoft Project
- Device & OS
- not provided
- Scenario
- Setting up a project dashboard or tracking sheet to dynamically evaluate task conditions and return the appropriate status text or color.
- Observed behavior
- The user requires the correct logical formula syntax to evaluate multiple criteria, specifically comparing text or flag fields and checking against 100% completion.
Ensure your project schedule is updated with accurate % Complete and Finish Date data before configuring custom status fields.
Configure Custom Fields and Apply an IIf Formula
Create custom text and flag fields to define your logic, then use nested IIf statements to output the exact status value.
To build a dynamic Red, Amber, Green (RAG) status indicator, you must combine standard project fields with a custom logical formula. The formula uses nested IIf statements to evaluate each condition sequentially.
Go to the Project tab and select Custom Fields. Create a custom Flag field (if you want simple True/False values) or a Text field with a dropdown restricted to 'Y' and 'N'.
In the Custom Fields dialog, create a new Custom Field. Change its type to 'Text' and select 'Formula' under the Custom Attributes section.
Type an IIf statement to evaluate conditions sequentially. For example, first check if [% Complete]=100 to return 'Complete'. Next, check if the Finish date is greater than the status date for 'Green'. Finally, check if the date is past and evaluate the 'Plan in Place' field to return 'Amber' or 'Red'.
Click the 'Graphical Indicators' button within the custom field settings. Map the exact text outputs (Complete, Green, Amber, Red) to specific colored icons to display visual alerts in your project view.

Track Project Status Efficiently with WPS Office
Microsoft Project is powerful but can be complex and expensive for everyday use. WPS Spreadsheet is a free, lightweight alternative that lets you easily track RAG project statuses using familiar IF formulas and conditional formatting.
- 1. Open a blank spreadsheet: Launch WPS Spreadsheet and create a new document to act as your project tracker.
- 2. Add your project columns: Set up columns for Task Name, Percent Complete, Finish Date, Plan in Place, and Status.
- 3. Apply formulas and formatting: Enter standard IF formulas to calculate the status, then use Conditional Formatting from the Home tab to automatically apply Red, Amber, and Green cell backgrounds based on the results.

Frequently Asked Questions
How do I add graphical indicators to a custom field in Microsoft Project?
Open the Custom Fields dialog, select your custom Text field, and click the 'Graphical Indicators' button. From there, you can map specific text values (like 'Red' or 'Green') to the corresponding built-in icons.
Why is my nested IIf formula returning a syntax error?
Syntax errors usually occur due to missing commas, unmatched parentheses, or incorrect field references. Ensure that text values like 'Y' or 'N' are wrapped in quotation marks, and verify that field names match exactly what is in your project.
Can I track Red, Amber, Green project statuses in Excel or WPS Spreadsheet?
Yes. You can track RAG statuses in spreadsheets using standard IF formulas combined with Conditional Formatting. This is often an easier and more accessible alternative to setting up dedicated project management software.




