Trouble with conditional formatting with formulas

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
888
Office Version
  1. 365
Platform
  1. Windows
I always seem to have trouble with conditional formatting.
Here are the formatting rules I have created:

1575471754728.png


What I need is as follows:

=$F2:$F1000="Y" If column F has the text "Y" in it then the entire row (from A:N) should format the text to green
=AND($F2:$F1000="N",$F2:$F1000<>"") If column F has the text "N" AND the cell beside it in Column E is not blank it should format the text to blue

The only one that seems to work is the =$E2:$E1000="" then format the font Red.
The other 2 seem to only affect column E for some reason and only work some of the time. I just cant figure it out.

Any help would be appreciated, this is probably one of the functions of excel I dread working with....

Thank you

Carla
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
The formulae should be like
=$F2="Y"
=AND($F2="N",$F2<>"")
=$E2=""
 
Upvote 0
I see.... so ranges are not required then.

When I change the cell value in F to "Y" or "N" it still only formats column E for some reason however
 
Upvote 0
I entered the new formula's but it still only applies to column E and F when I toggle the text in Column F between "Y" and "N"

1575474261451.png
 
Upvote 0
Did you change the applies to range?
To highlight the row it should still be $A$2:$N$1000
 
Upvote 0
Looking at it again, the middle formula can just be
=$F2="N"
No need for the And.

What order do you want the rules to run in?
ie should col F having Y or N overrule the condition for col E is blank?
 
Upvote 0
Ok I changed the formula to =$F2="N"

If col E is blank it should overrule the other 2. I did put that formula first.
The applies to range is still: $A$2:$N$1000
which is why it is puzzling me that it is only formatting column E and F. No idea why this is....
 
Upvote 0
Does your table cover the range A2:N1000 with the header in row 1?
 
Upvote 0
I decided to test something and it appears it has a problem with column F having data validation. Column F is a drop down where you can only select Y or N
1575477322170.png


As soon as I remove the data validation it works.... Can this be fixed?
 
Upvote 0
I uploaded a dummy file if you need to work with something...

Conditional formatting.xlsx

When I checked off the box that states "apply these changes to all other cells with the same settings" in data validation it started to format column E, F and G but that was it.
I am really puzzled on this one...
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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