Conditional Formatting Green & Red Cells

Huizar

Board Regular
Joined
Aug 11, 2016
Messages
94
Hi All,

I look for older posts,but could not find the solution to my problem. I have a cell that needs to turn Green or Red based on a Target. The target is 65.7%.

My cell that has conditional formatting, should be green because It hit the target of 65.7%, but it turns red.

my conditional formats are a follows:

Green: =AND(I33>=I32,I32<>"",I33<>"")
Red : =AND(I33<I32,I32<>"",I33<>"")

My Target is cell I32. Why does I33 turn Red? It should be green.

Thanks in advance.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
The part in red does not look valid:
Code:
[COLOR=#333333]Red : =AND([/COLOR][COLOR=#ff0000]I33[/COLOR]<i32,i32< style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">[COLOR=#ff0000]""[/COLOR],I33<>"")</i32,i32<>

Note. If some of your formula is getting cut off, surround the characters of what is being cut off by spaces.

I think the formula should look like:
Code:
Red[COLOR=#333333]: =AND(I33 < I32,I32<>"",I33<>"")[/COLOR]
 
Last edited:
Upvote 0
sorry, I pasted a bad formula. but even when I made the correct it made the cell Red. I'm still struggling why the cell is turning Red rather than Green.
 
Upvote 0
What exactly is in cells I32 and I33? Can you provide an actual example that does not work?
Are the values in your cells numeric or numbers entered as text?
Also note that 65.7% is really .657, not 65.7.
 
Upvote 0
I32 is my Target of 65.7%..It uses an Hlook up. My sheet is dynamic.
I33 is a sumif formula. Cell I33 produce a result of 65.7%, so it should format to green, but it turned Red.

Conditional Fomatting Rules

GREEN:=AND(I33>=I32,I32<>"",I33<>"")
RED: =AND(I33<i132<>,<i32,i32<>"",I33<>"")</i32,i32<></i132<> <----looks similar to the green Condition...formula keeps getting cut off
 
Last edited:
Upvote 0
You formula is still not displaying properly.
RED: =AND(I33<i32,i32< style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">"",I33<>"")</i32,i32<>

Are you rounding off your calculations? If not, it may not do what you expect.
I33 could really be something like 65.66%.
So, if you format it to only show one decimal with the percent, it looks like it is equal to 65.7%, but it really isn't.
Excel does not care how you format the results, it still tracks the full decimal and uses that in all calculations under your use the ROUND function in your formula (or elect the "Precision as Displayed" setting).
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,414
Members
448,895
Latest member
omarahmed1

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