Conditional Formatting - 1 rule, 2 conditions

TAPS_MikeDion

Well-known Member
Happy New Years to all,
Here's another one I think those of you with far more Google Sheets knowledge than I have will be able to answer in a second. What I'm trying to accomplish is to use conditional formatting to detect when one number (H4) is higher than the number on the same row that has a checkmark (=TRUE.)

My current formula only works for a single cell and that's impractical having to change the formula for each cell I need to apply this to, which is hundreds. I have it set to apply to the range H5:H17 in my first column (H), but the conditional formatting makes the changes for each TRUE cell from H5 - H17 whether or not the value of H4 is greater than the value in the column B cell for row the which has changed to TRUE.

In the attached pic you can see that the background changed correctly in cell H5, because H4 is greater than B5, but that is not the case for cells H6, H7 and H9, which also were changed due to the conditional formatting.

My current formula (below) applies to the range H5 to H17:
=and(\$H4>\$B5,\$H5=TRUE)

The only way it works is if I change H5 and B5 for each cell as I go down (i.e Change B5 & H5 to B6 & H6 in cell H6, change to B7 & H7 in cell H7 and so on.

Help is greatly appreciated!

Thanks,
Mike

Attachments

• MrExcel_Screenshot.png
31.7 KB · Views: 7

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Try it like
Excel Formula:
``=and(\$H\$4>\$B5,\$H5=TRUE)``

Fluff to the rescue again! That's why you make the big bucks. LOL

Thank you, not only for the quick reply, but for the formula that worked!!!

Glad to help & thanks for the feedback.

Replies
0
Views
206
Replies
0
Views
185
Replies
10
Views
242
Replies
1
Views
232
Replies
1
Views
369

1,203,487
Messages
6,055,713
Members
444,810
Latest member
ExcelMuch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back