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

Copper Contributor

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

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

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

 

@Sergei BaklanYes, 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

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


@KatWarren wrote:

@Sergei BaklanYes, 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 , to apply the conditional formatting you need to have some formal logic for such conditions, after that convert it to formulas for the rules. I didn't catch what is the logic here.

@Sergei BaklanYes.  The more I looked at it, the more I see the lack of pattern.