Conditional Formatting - 1 rule, 2 conditions

TAPS_MikeDion

Well-known Member
Joined
Aug 14, 2009
Messages
622
Office Version
  1. 2011
Platform
  1. MacOS
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
    MrExcel_Screenshot.png
    31.7 KB · Views: 9

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Try it like
Excel Formula:
=and($H$4>$B5,$H5=TRUE)
 
Upvote 0
Solution
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!!!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,983
Messages
6,175,778
Members
452,668
Latest member
mrider123

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top