Formatting Issues

How to Change Excel Cell Color Based on Another Column Being Blank

Adam DavisAdam Davis Oct 16, 2026 873 views

Question details

The user needs to change the background color of submission date cells based on their age, but only if the corresponding review date cell in another column is empty. Once a review date is entered, the submission date cell should turn green.

How to Change Excel Cell Color Based on Another Column Being Blank
Product
Excel
Device & OS
not provided
Scenario
Tracking task statuses or aging dates where visual indicators (colors) depend on the completion of a corresponding task in another column.
Observed behavior
Cells need to dynamically update their color coding automatically based on formulas evaluating a secondary column's blank or non-blank status.
Before you start

Identify the exact ranges for your target cells (e.g., submission dates) and the condition cells (e.g., review dates) before applying formatting rules to ensure your formulas align correctly.

Solution 1Recommended

Use Conditional Formatting Formulas to Evaluate Blank Cells

Apply formula-based conditional formatting rules to change the cell color when the adjacent column meets specific criteria, such as being blank or containing a completed date.

By utilizing custom formulas in the Conditional Formatting tool, you can check the status of one cell to dictate the formatting of another. By layering multiple rules, you can create a dynamic status tracker.

1
Select the Target Data Range

Highlight the range of cells you want to format. For example, select your submission dates ranging from E2:E100. Make sure the first cell (E2) is your active highlighted cell.

2
Create a New Formatting Rule

Navigate to the Home tab on the ribbon, click on Conditional Formatting in the Styles group, and select New Rule from the dropdown menu.

3
Format Completed Rows (Green)

Choose 'Use a formula to determine which cells to format'. In the formula bar, enter =F2<>"" to check if the review date column (F) is not blank. Click Format, choose a Green fill color, and click OK.

4
Add Age-Based Rules for Blank Rows

Create another new rule for aging dates. Use a formula that checks if the review date is blank, such as =AND(F2="", TODAY()-E2>30). Set the format to Red for overdue items and click OK.

5
Manage Rule Priorities

Go to Conditional Formatting > Manage Rules. Ensure your Green rule (for completed items) is at the top of the list. You can check the 'Stop If True' box next to it to prevent other age-based rules from overriding the green color.

Use Conditional Formatting Formulas to Evaluate Blank Cells
Relative vs. Absolute Cell References: Make sure your row numbers in the formula (like F2) do not have a dollar sign before the number (e.g., do not use $F$2). This ensures Excel evaluates the condition individually for every row in your selected range.
Enhance Data Tracking with WPS Spreadsheet

Apply Advanced Conditional Formatting in WPS Office

WPS Spreadsheet fully supports complex conditional formatting formulas, allowing you to highlight task aging and blank cells effortlessly. It features an intuitive interface and offers complete compatibility with Microsoft Excel files.

  1. 1. Open Your Document: Launch WPS Office and open your spreadsheet file containing the tracking data.
  2. 2. Access Conditional Formatting: Select your target range (e.g., E2:E100), go to the Home tab, click on Conditional Formatting, and choose New Rule.
  3. 3. Apply the Formula: Select 'Use a formula to determine which cells to format', input your formula such as =F2<>"", and pick your desired highlight color.
  4. 4. Manage Rules: Use the Conditional Formatting Manager to order your rules and apply 'Stop If True' constraints seamlessly.
Highly compatible with Microsoft Excel (.xlsx) conditional formatting rules and formulas.Intuitive rule manager for prioritizing multiple color-coding conditions.Free, lightweight, and responsive office suite for efficient data management.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my conditional formatting applying the same color to the whole column instead of evaluating row by row?

This usually happens if you used absolute referencing in your formula (like =$F$2). Remove the dollar sign before the row number (change it to =F2 or =$F2) so the spreadsheet can evaluate the condition for each row dynamically as it moves down the column.

How do I trigger the color change if the cell appears blank but might contain hidden spaces?

Sometimes a cell looks blank but contains spaces due to accidental keystrokes or imported data. Instead of using =F2="", you can use =TRIM(F2)="" to ignore hidden spaces, ensuring the rule triggers correctly.

What does 'Stop If True' mean in the Conditional Formatting Rules Manager?

'Stop If True' stops the program from processing any lower-priority formatting rules if the current rule's condition is met. This is particularly useful when multiple rules could apply to the same cell, but you only want the most critical or final state (like a completed status) to be displayed.