Conditional Formatting a column with Blank cells based on text in another column.

Anonymous
2025-04-22T17:17:37+00:00

The columns titled Spfld, Dover and Boston are item numbers.

The column titled Status indicates if the item is active.

I need all blank item number cells for items where the product status is "active" to be filled with a color.

Any item with a product status denied should have no color.

Product Name Spfld Moline Chicago Product Status
Test one 45897 85331 Active
Test two Denied
Test three 59318 Active
Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. EmilyS726 186.4K Reputation points Independent Advisor
    2025-04-22T20:44:03+00:00

    You are welcome. Did that resolve the issue ?

    0 comments No comments

10 additional answers

Sort by: Most helpful
  1. EmilyS726 186.4K Reputation points Independent Advisor
    2025-04-22T17:54:35+00:00

    Hello,

    Can you get a screenshot of the spreadsheet, so I can see how the columns/data layout is like to be exact, then I will write you the formula you can use in the conditional format settings using correct referencing for cells and range.

    0 comments No comments
  2. Anonymous
    2025-04-22T18:03:28+00:00

    This is how I want it to look.

    0 comments No comments
  3. Rich~M 20,355 Reputation points Volunteer Moderator
    2025-04-22T18:46:07+00:00

    Here is the procedure to apply the Conditional Formatting as you describe.

    1. Select all of the cells that you want to be evaluated for the Conditional Formatting. In the example below that is B2:D4. It is important that the first cell selected matches the cell reference in the formula. If you start the selection anywhere other than B2 adjust the formula to match that and make sure the E2 Status column cell reference is the correct column and matches that same row.
    2. On the Home ribbon open Conditional Formatting>New Rule>Use a Formula. In the Format Values line enter this formula adjusted for the locations of your first-row data as needed.

    =AND(B2="",$E2<>"Denied")

    1. Click on the Format button at the lower right and select the formatting you want in the Format Cells dialogue. Then click OK and OK.
    0 comments No comments
  4. EmilyS726 186.4K Reputation points Independent Advisor
    2025-04-22T19:01:51+00:00

    Thank you for the screenshot. Super helpful.

    I created this template for you, you can download from this OneDrive link and it is already set up for you.

    https://1drv.ms/x/c/e7d90eb3e3571518/Edhh2BWIDo...

    0 comments No comments