Search code examples
excelexcel-formulacolorsconditional-formatting

Colour a cell based on another cell being blank AND another cell being filled


I have a question concerning conditional formatting in excel: I want to highlight one cell (lets say F1) in red but only if F6 it self is empty/blank and B1 is filled (it doesn't matter with what): How do I do it?


Solution

  • Use

    =AND(ISBLANK(F6),NOT(ISBLANK(B1)))
    

    or

    =AND(F6="",B1<>"")
    

    in conditional formatting.

    Result:

    enter image description here