Conditional Formatting on Column E based on corresponding row value in Column B

Copper Contributor

I've done conditional formatting on a column, base on the value in each row cell of that column and it works fine. Here is one example:

tonyg77_0-1685738077171.png

This formats Column B correctly:

tonyg77_4-1685738469232.png

 

I want to format Column E, based on the same value in Column B. This is what I have tried to no avail.

1) This is the Rule:

tonyg77_6-1685738657954.png

I typed this one as $B$B='Cash Receipt' and below is what it saved it as.

tonyg77_2-1685738253204.png

 

2) This is the Rule

tonyg77_5-1685738584138.png

I typed this as SEARCH('Cash Receipt', $B$B)>0 and below is what it saved it as:

tonyg77_8-1685739079879.png

 

There has to be a correct way to do this. I've read so many posts, replies, articles, etc., but have not found one that works for this.

 

Thanks in Advance

3 Replies

@tonyg77 

When you create the rule, E1 should be the active cell in the selection.

Use the following formula:

 

=$B1="Cash Receipt"

 

Note that:

  • The formula that you enter begins with =
  • There is no $ before the row number 1.

HansVogelaar_0-1685739966103.png

Yea, I tried that before just to see if I could get it to work for one row. Doesn't work. Besides, I want it to work for all rows in column B & E. 

I specified $B$B and $E$E, because that is how I did it for others what work as well as the example I showed at the beginning of my post.

 

This is the rule for the one that works.

tonyg77_0-1685740497822.png

tonyg77_1-1685740538295.png

 

 

 

 

@Hans Vogelaar 

@tonyg77 

$B$B is not a valid reference.

See the attached sample workbook for a working example.