Forum Discussion

TeresaSmags's avatar
TeresaSmags
Copper Contributor
Sep 28, 2022
Solved

If cell(s) have conditional format (fill), then do something, else input value

What formula can I use to look at two columns of data and if any of the columns (one or both) have conditional formatting of color fill, then highlight the cell yellow (or input "Look at!"), else inp...
  • mtarler's avatar
    mtarler
    Sep 28, 2022
    most simply maybe:
    =IF(OR(K5>$K$3,AND(L5>0,L5<$L$3)),"Input correct #",$S$1)
    BTW you can do AND and OR using * and +
    =IF((K5>$K$3)+(L5>0)*(L5<$L$3),"Input correct #",$S$1)

Resources