Condition Formatting rule

julhs

Active Member
Joined
Dec 3, 2018
Messages
476
Office Version
  1. 2010
Platform
  1. Windows
I have this CELL formula that returns the desired result.
Excel Formula:
IF(AND(E24="Enter ONLY m2",E20>0),"testing")
BUT how do I write a condition formatting rule (or rules) to fill E24 with a given fill colour
when
Excel Formula:
(E24="Enter ONLY m2",E20>0)
None of my ATTEMPTS so far have worked!!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Maybe
Excel Formula:
=AND(E24="Enter ONLY m2",E20>0)
 
Upvote 0
Solution
Check this and revert - for Conditional formatting

Excel Formula:
=And(E24="Enter ONLY m2",E20>0)
 
Upvote 0
Thank for the help.
As both solutions are the same, fairest thing to do is "Like" both.
Time and time again I make similar type mistakes when writing CF formula rules, always seem to forget that CF rules and cell formula require a slightly different syntax.
I’ve now have the required approach to utilise to all corresponding CF formatting.
Many thanks to you both.
Julhs
 
Upvote 0
As both solutions are the same, fairest thing to do is "Like" both.
If two people post the same answer, and it works, we typically just recommend marking the first one as the solution.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Just to clarify as a follow up question.
Is there EVER a use for an If in a CF rule?
Reason for question is that I vaguely thought I followed how CF rule syntax worked!
If I NOW understand CF rules correctly, a CF rule is effectively an "If Then", so consequently there is NO need to ADD the "IF" into the CF rule?
Is this correct??
 
Upvote 0
Just to clarify as a follow up question.
Is there EVER a use for an If in a CF rule?
Reason for question is that I vaguely thought I followed how CF rule syntax worked!
If I NOW understand CF rules correctly, a CF rule is effectively an "If Then", so consequently there is NO need to ADD the "IF" into the CF rule?
Is this correct??
Generally we only formulate the part which generates Answer as True, because CF shall work only 'If True'

Hope it helps you in some useful way.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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