Search code examples
excelif-statementexcel-formulaconditional-formatting

IF(AND) Conditional formatting in Excel


I am struggling to create a formula for a table with conditional formatting where I compare a cell in one column (Items) to another cell in a separate column (Need items 3 or higher). I don't want to highlight the entire row, but I do need to format the cell so it changes.

Mock Image of what is needed: enter image description here

I'm currently trying to use =OR($A$2:$A$78="Item 1",$A$2:$A$78="Item 2") What is wrong with the above condition?


Solution

  • In conditional formatting you no need to mention full range of cells. Rather use first cell. Excel will automatically check for other cells based on applied cells. Try this function in custom CF rule-

    =OR($A2="Item 1",$A2="Item 2")
    

    enter image description here