Forum Discussion

KatWarren's avatar
KatWarren
Copper Contributor
Apr 20, 2019

Conditional formatting based on values in either of 2 other cells.

I am trying to change the color of cell C if the value in either cell A or cell B = 5. 

 

Thanks for any help!

Kat

5 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    KatWarren , you may apply to your range (assume starts from C1) conditional formatting rule with formula

    =(A1=5)+(B1=5)

     

    • KatWarren's avatar
      KatWarren
      Copper Contributor

      SergeiBaklanYes, I am applying the range for the entire column.   It is actually more complicated even...  Here is the table... column D indicates the color I need column C.

      A          B         C         C

      5525red
      5420red
      5315red
      5210orange
      515yellow
      4520red
      4416red
      4312orange
      428yellow
      414green
      3515red
      3412red
      339orange
      326yellow
      313green
      2510red
      248red
      236orange
      224green
      212green
      155red
      144orange
      133yellow
      122green
      111green
      • KatWarren's avatar
        KatWarren
        Copper Contributor

        Actually, I think I can make this more simple, now that I did that... to just do conditional based on the product...


        KatWarren wrote:

        SergeiBaklanYes, I am applying the range for the entire column.   It is actually more complicated even...  Here is the table... column D indicates the color I need column C.

        A          B         C         C

        5525red
        5420red
        5315red
        5210orange
        515yellow
        4520red
        4416red
        4312orange
        428yellow
        414green
        3515red
        3412red
        339orange
        326yellow
        313green
        2510red
        248red
        236orange
        224green
        212green
        155red
        144orange
        133yellow
        122green
        111green

         

Resources