Change an Excel Cell from Red to Green When All Dates Are Entered
Question details
Automatically change the color of a cell in column Q when all seven required date fields in the same row are filled.

- 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.
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.
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.
Select the cells in column Q you want to format, such as Q2:Q1000.
On the Home tab, open Fill Color and choose red. This color will remain visible until the conditional rule is met.
With Q2:Q1000 still selected, choose Home > Conditional Formatting > New Rule, then select Use a formula to determine which cells to format.
Enter =COUNT(E2,F2,H2,K2,M2,N2,P2)=7. Select Format, choose a green fill, and click OK to save 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.

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. Open the spreadsheet: Open your workbook in WPS Spreadsheets and select the status range, such as Q2:Q1000.
- 2. Apply a red fill: On the Home tab, choose Fill Color and select red for the selected cells.
- 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. 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.

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.




