Excel: Conditional Formatting if Another Cell is Not Empty


To apply conditional formatting to cells in Excel if another specific cell is not empty, you can use the New Rule option under the Conditional Formatting dropdown menu within the Home tab.

The following example shows how to use this option in practice.

Example: Apply Conditional Formatting if Another Cell is Not Empty

Suppose we have the following dataset in Excel that contains information about various basketball teams:

Suppose we’d like to highlight each of the cells in the Team column if the cell in the corresponding Rating column is not empty.

To do so, we can highlight the cells in the range A2:A11, then click the Conditional Formatting dropdown menu on the Home tab and then click New Rule:

In the new window that appears, click Use a formula to determine which cells to format, then type =NOT(ISBLANK(B2)) in the box, then click the Format button and choose a fill color to use.

Excel conditional formatting if another cell is not empty

Once we press OK, the only Team values that have a green background are the ones where the corresponding value in the Rating column are not empty:

Note: We chose to use a light green fill for the conditional formatting in this example, but you can choose any color and style you’d like for the conditional formatting.

Additional Resources

The following tutorials explain how to perform other common tasks in Excel:

Excel: Apply Conditional Formatting to Overdue Dates
Excel: Apply Conditional Formatting if Cell is Between Two Dates
Excel: Apply Conditional Formatting Based on Multiple Conditions

4 Replies to “Excel: Conditional Formatting if Another Cell is Not Empty”

  1. Hi Zach, How to do this in a single column? Using your spreadsheet, but adding data in B14.

    If B14 is blank, nothing is highlighted. But if B14 is not blank, how can I highlight B4, B7, & B8?

    1. Hi Chasity…You can achieve this using **Conditional Formatting** with a formula. Follow these steps:

      ### Steps:
      1. **Select the cells** you want to highlight (`B4`, `B7`, and `B8`).
      2. Go to **Home** > **Conditional Formatting** > **New Rule**.
      3. Choose **”Use a formula to determine which cells to format.”**
      4. Enter this formula in the formula box:
      “`excel
      =B$14<>“”
      “`
      – This checks if `B14` is **not empty**.
      5. Click **Format**, choose your preferred formatting (e.g., Fill Color), and press **OK**.
      6. Click **OK** again to apply the rule.

      Now, whenever `B14` contains any value, **B4, B7, and B8** will be highlighted. If `B14` is empty, they will remain unformatted.

    1. Hi Karen…To apply **conditional formatting in Excel** based on whether another cell is **not empty**, and copy this rule for **multiple rows/columns**, follow these steps carefully:

      —

      ### ✅ **Scenario**:
      You want to apply formatting to **cells in Column A** if the **corresponding cell in Column B is not empty** — and do this across **multiple rows** (e.g., A2:A100, based on B2:B100).

      —

      ### 🧩 Step-by-step Instructions:

      1. **Select the range** you want to apply the formatting to (e.g., `A2:A100`).

      2. Go to the **Home** tab → click on **Conditional Formatting** → **New Rule**.

      3. Choose **”Use a formula to determine which cells to format.”**

      4. Enter the formula:

      “`
      =B2<>“”
      “`

      This checks if the cell in **Column B** (same row) is **not empty**.

      5. Click **Format**, set the desired formatting (e.g., fill color), and hit **OK**.

      —

      ### 🔁 Copying Across Columns:

      If you want to apply this rule **across columns and rows**, say formatting `A2:C100` if the corresponding cells in `D2:F100` are not empty:

      1. Select range `A2:C100`.

      2. Use this formula (adjusted for relative referencing):

      “`
      =D2<>“”
      “`

      Make sure the columns (A and D, B and E, C and F) align in the same way.

      If you’re applying to a broader table and want formatting in each cell of a range `A2:C100` to depend on whether the corresponding cell in `D2:F100` is not empty, you can write:

      “`
      =INDIRECT(“D”&ROW()&CHAR(COLUMN()+3+64))<>“”
      “`

      But it’s easier and cleaner to match column by column with simple formulas.

      —

      ### ⚠️ Tips:

      – **Avoid absolute references (`$`)** unless you want to lock the reference.
      – Excel automatically adjusts relative references when copying formatting to other cells.
      – You can **drag-and-fill** the formatting using **Format Painter**, but it’s better to define it using the full range initially.

      —

Leave a Reply

Your email address will not be published. Required fields are marked *