Trouble with conditional formatting with formulas

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
893
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
 
Data validation shouldn't make any difference.
In you recent image it does not look as though the data is in a Table, but in your images of the Rules manager it clearly states "This Table"

Is the data in a structured table & if so what is the range of it?
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
In your dummy file the CF is working exactly how I would expect it to work.
Namely, if Column F has Y then whole row turns green & if it's N then the row turns blue.
 
Upvote 0
Sorry, the dummy file is not a table but the real file is. Either way I find both are having this issue. On the dummy file did you select N or Y from the drop down? as soon as I do it only formats the 3 columns for me
 
Upvote 0
It works fine for me, I've changed the format to fill instead of font so it shows up here

Book1
ABCDEFGHIJKLMN
1Scheduled Month:Element:Severity Level:Employee:Date Completed:Filed Y/NPrevious DateFinding Raised Y/N:CAPA #:Flag DateDue DateImmediate Attention Required Y/N CodeYear
201/11/2019Name 11Employee 129/11/2019N30/01/2019NN/A30/12/201930/01/2020N12019
301/11/2019Name 21Employee 229/11/2019Y28/02/2019NN/A28/01/202028/02/2020N22020
401/12/2019Name 31Employee 3Y28/01/201928/12/201928/01/2020N32019
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:N1000Expression=$E2=""textNO
A2:N1000Expression=$F2="Y"textNO
A2:N1000Expression=$F2="N"textNO


Book1
ABCDEFGHIJKLMN
1Scheduled Month:Element:Severity Level:Employee:Date Completed:Filed Y/NPrevious DateFinding Raised Y/N:CAPA #:Flag DateDue DateImmediate Attention Required Y/N CodeYear
201/11/2019Name 11Employee 129/11/2019Y30/01/2019NN/A30/12/201930/01/2020N12019
301/11/2019Name 21Employee 229/11/2019N28/02/2019NN/A28/01/202028/02/2020N22020
401/12/2019Name 31Employee 3Y28/01/201928/12/201928/01/2020N32019
Sheet1
 
Upvote 0
This is what I am getting with the file:

1575480185745.png


As you can see only column E, F and G are affected and the other cells do not change.
 
Upvote 0
I changed the color so you can see it better. This is the exact file I uploaded so not sure what is going on....

1575480537814.png
 
Upvote 0
figured it out. Apparently formula automatic calculation was set to manual. No idea it had been set to this. As soon as I changed it to automatic it changed the entire row and not just the 3 cells.
Feeling sheepish. Strange that it would do 3 cells however....you would think with automatic calculation on manual that nothing would happen at all...
Anyway it is solved.

Thank you very much Fluff and sorry for taking up so much of your time
 
Upvote 0
I am going to write a VBA code that turns on automatic calculation as soon as the book is opened to avoid this in the future.

Take care!
 
Upvote 0
Glad you figured it out & thanks for the feedback.
It's odd that it still works for three columns, although if you scroll down so the row is hidden & then scroll back up. The entire row is colured correctly, so it looks to be more of a display thing.
 
Upvote 0

Forum statistics

Threads
1,216,217
Messages
6,129,567
Members
449,517
Latest member
Lsmich

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