Share via

Conditional formatting with multiple conditions (blank cells and filled cells)

Anonymous
2013-07-26T11:51:05+00:00

Hi, I am trying to make a conditional formatting rule for the following:

If there is a value in cell I4, but the cells J4 and K4 are blank, then the cells J4 and K4 should be colored in orange.

I suppose I need the "use a formula to determine which cells to format", and I have been Googling to no avail... I have been trying with a few different formulas but I always come back to this one (applied to J4 and K4 at the same time):

(NOT(ISBLANK(I4),(ISBLANK(J4)),(ISBLANK(K4))) with orange fill, but this does absolutely nothing.

Do you know how I should correctly do this?

Thank you so much for your help!

Best regards,

Sara

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
Answer accepted by question author
  1. HansV 462.6K Reputation points MVP Volunteer Moderator
    2013-07-26T11:59:58+00:00

    Select J4:K4.

    On the Home tab of the ribbon, click Conditional Formatting > New Rule...

    Select 'Use a formula to determine which cells to format'.

    Enter the formula

    =AND($I4<>",$J4="",$K4="")

    The $ characters before the column letters are essential: they make the column references absolute.

    Click Format...

    Activate the Fill tab.

    Select orange.

    Click OK twice.

    20+ people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2013-07-26T12:30:51+00:00

    That works perfectly!! Thank you very much!

    Best regards,

    Sara

    2 people found this answer helpful.
    0 comments No comments