Function Problems

Change an Excel Cell from Red to Green When All Dates Are Entered

Nimra MalikNimra Malik Nov 22, 2026 868 views

Question details

Automatically change the color of a cell in column Q when all seven required date fields in the same row are filled.

Change an Excel Cell from Red to Green When All Dates Are Entered
Product
Microsoft Excel
Device & OS
not provided
Scenario
Columns E, F, H, K, M, N, and P contain the required dates, and column Q indicates whether they are complete.
Observed behavior
Each cell in column Q should be red while any required date is missing and green when all seven are entered.
Before you start

Check that the date entries in columns E, F, H, K, M, N, and P are stored as Excel dates rather than text. Identify the first data row and the range in column Q you want to format.

Solution 1Recommended

Use conditional formatting to turn completed rows green

Set a red default fill in column Q and use a formula to turn it green when all seven date cells contain numbers.

Excel stores dates as numbers, so COUNT can check whether all seven cells contain numeric values. It also counts other numbers, so this rule does not verify that each value is a valid date.

1
Select the status cells

Select the cells in column Q you want to format, such as Q2:Q1000.

2
Set the default color

On the Home tab, open Fill Color and choose red. This color will remain visible until the conditional rule is met.

3
Create a formula rule

With Q2:Q1000 still selected, choose Home > Conditional Formatting > New Rule, then select Use a formula to determine which cells to format.

4
Enter the formula and green fill

Enter =COUNT(E2,F2,H2,K2,M2,N2,P2)=7. Select Format, choose a green fill, and click OK to save the rule.

5
Test the rule

Enter dates in all seven required cells in a row and check that its cell in column Q turns green. Clear one date and confirm that it returns to red.

Use conditional formatting to turn completed rows green
Match the first row: The row number in the formula must match the first row of the selected range. For example, use E3, F3, and the other row 3 references if the range starts at Q3.
Complete the task in WPS Office

Track completed dates with WPS Spreadsheets

Use a red default fill and a formula-based conditional formatting rule in WPS Spreadsheets to turn column Q green when all seven date cells are filled.

  1. 1. Open the spreadsheet: Open your workbook in WPS Spreadsheets and select the status range, such as Q2:Q1000.
  2. 2. Apply a red fill: On the Home tab, choose Fill Color and select red for the selected cells.
  3. 3. Add the formula rule: Choose Home > Conditional Formatting > New Rule, select the formula-based rule option, and enter =COUNT(E2,F2,H2,K2,M2,N2,P2)=7.
  4. 4. Set green and test: Set the rule's fill to green and save it. Enter all seven dates in a row to check that the corresponding cell in column Q turns green.
Automatically highlight rows with all seven date fields completed.Open and edit Microsoft Excel XLSX files.Use familiar spreadsheet formulas and formatting controls.Work with a free, easy-to-use office suite.
microsoft office alternative - wps office

Frequently Asked Questions

Why is the cell still red after I enter all seven dates?

One or more entries may be stored as text rather than numeric dates. Check the cells in columns E, F, H, K, M, N, and P, and convert any text dates to Excel dates. Also check the rule's range and row references under Home > Conditional Formatting > Manage Rules.

Will the color change back if I delete a date?

Yes. When a required date is cleared, the formula no longer counts seven numeric values, so the green rule stops applying and the red default fill shows.

Does the formula check that every entry is a valid date?

No. COUNT counts any numeric value, including numbers that are not intended as dates. Use additional validation if the entries must fall within a specific date range.

How do I apply the rule to more rows?

Go to Home > Conditional Formatting > Manage Rules and extend the rule's Applies to range in column Q. Make sure the formula's row references match the first row of that range.