Search code examples
excelgoogle-sheetsexcel-formulagoogle-sheets-formulaconditional-formatting

Using a drop down value to conditionally format the background of another cell


I am trying to conditionally format a cell in A1 based on the selected value of a drop-down in B1. The values in the drop-down ["Unpaid", "Pending", "Posted"]. I would like the background of cell A1 to change according to the value of B2. White for "Unpaid, Yellow for "Pending", and Green for "Posted". I know this can be accomplished using conditional formatting. I just don't know how.


Solution

  • You need 3 rules in CF.

    =$B$1="Unpaid"
    =$B$1="Pending"
    =$B$1="Posted"
    

    enter image description here