Conditional Formatting with Color does not work in every cell

srootes1

New Member
Joined
Jun 30, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I've looked in other theads, but I have not been able to find an answer to my issue.

I am having an issue with my conditional formatting not working for every cell in my spreadsheet. Some cells it works fine, but others it doesn't and I cant figure out why.

What I need the conditional formatting to do:
  • Display green when the cell value is equal to 100%
  • Display orange when the cell value is between 95% and 99%
  • Display red when the cell value is less than or equal to 94%
I am using the "Format only cells that contain" rule type.
The formatting is only applied to one column, but not every single cell (i.e. =$Z$4:$Z$16, $Z$19:$Z$31....etc.) (I did try changing the formula to cover the ENTIRE column, but that did change anything other than adding red wherever there was a blank space).

In this example, one cell is highlighed orange for 99%, but the cell below is not. Same with the 100% not changing to green.

1656605215508.png


I have three tabs with essentially the same layout. The conditional formatting does not work correctly in any of the tabs. I checked to see if the issue happened on the same row in each tab, but it does not.

Things that I have done to troubleshoot:
  • Ensured the formulas within the cells were correct
  • Set all cells to Percentage with no decimal places
  • A bunch of other stuff I can't think of at the moment....

Any help is appreciated!!!

Here are some other screenshots...
1656605614843.png
1656605660696.png
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
any reason for not selecting an entire range of cells

i tend to use formulas for all rules -

is that because they are blank - you could add a forth rule

anyway

Book1
A
1
210%
320%
4
540%
650%
797%
870%
980%
1090%
11100%
1210%
1320%
1430%
1598%
1650%
1760%
18
1980%
2090%
21100%
22
23
24
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A21Expression=AND(A2>=0.95, A2<1)textYES
A2:A21Expression=AND(A2<>"",A2<0.95)textYES
A2:A21Expression=A2=1textYES



Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
I've tried to install the Add-In and it does not have the same capabilities. And I am not able to send it to drop box or one drive due to the security settings at my work.
 
Upvote 0
I've tried to install the Add-In and it does not have the same capabilities. And I am not able to send it to drop box or one drive due to the security settings at my work.
ok

so have you tried setting up the 3 rules i posted

why not a complete range

$Z$4:$Z$16, $Z$19:$Z$31

whats in
Z17 , Z18
 
Upvote 0
i have just selected contiguous ranges

$A$2:$A$7,$A$9:$A$14,$A$20:$A$24

and used a rule

and just said - make RED for a rule
=AND(A2>=0.95, A2<1)

you can see it has not filled the colour on cells the range does not cover


Book1
A
2
30.95
40.96
50.95
60.95
70.95
80.95
90.95
100.95
110.95
120.95
130.95
140.95
150.95
160.95
170.95
180.95
190.95
200.95
210.95
220.95
230.95
240.95
250.95
260.95
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A7,A9:A14,A20:A24Expression=AND(A2>=0.95, A2<1)textNO
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
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