Others

How to Create a Red, Amber, Green Status Formula in Microsoft Project

Steven ParkerSteven Parker Oct 26, 2026 869 views

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.

How to Create a Red, Amber, Green Status Formula in Microsoft Project
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.
Before you start

Ensure your project schedule is updated with accurate % Complete and Finish Date data before configuring custom status fields.

Solution 1Recommended

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.

1
Set up the 'Plan in Place' custom field

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'.

2
Create the Status field

In the Custom Fields dialog, create a new Custom Field. Change its type to 'Text' and select 'Formula' under the Custom Attributes section.

3
Enter the status evaluation formula

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'.

4
Map text to graphical indicators

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.

Configure Custom Fields and Apply an IIf Formula
Formula Syntax Tip: When referencing text fields with 'Y' and 'N' in your formula, you must use quotation marks. If you use a Flag field, compare it against TRUE or FALSE without quotation marks.
Free Microsoft Office alternative

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. 1. Open a blank spreadsheet: Launch WPS Spreadsheet and create a new document to act as your project tracker.
  2. 2. Add your project columns: Set up columns for Task Name, Percent Complete, Finish Date, Plan in Place, and Status.
  3. 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.
Easily create interactive Red, Amber, Green dashboards with nested IF formulas.Fully compatible with Microsoft Excel (.xlsx) formats for seamless file sharing.Lightweight software that launches quickly and runs smoothly on all devices.Built-in conditional formatting to color-code project progress automatically.
microsoft office alternative - wps office

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.