conditional formatting 2 colours for a cell.

delboy1616

New Member
Joined
Jan 2, 2017
Messages
12
Hello, I have a column that is conditionaly formatted. Cells change there fill colour depending upon the value. My cells change to red if the value <-0.1. Then green appears when the value>0.1 I have used rules type "cells that contain". but at the moment empty cells fill green. How can this be stopped with no fill.? my cell range is R4:R14
Many Thanks Del. :confused::confused:
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
8,889
Office Version
2007
Platform
Windows
Add New Rule.
Create conditional formatting rules with formula
- Select cells R14 through R14
- Then, click Home > Conditional Formatting > Manage Rules.
- The Conditional Formatting Rules Manager appears.
- click New Rule
- In the New Formatting Rule dialog box, click Use a formula to determine which cells to format.
- Under Format values where this formula is true, type the formula:

=ISBLANK($R14)

- Click Format.
- In the Color box, select None
- Click OK
- select the Stop If True check box
Note: Check that the new rule is up to the previous rules
- Click Apply
- Click Ok
 

delboy1616

New Member
Joined
Jan 2, 2017
Messages
12
Hi Dante, I tried this solution but the blank Cells did not change the fill colour. Is there anything else I could try?
Thanks
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
8,889
Office Version
2007
Platform
Windows
Add another rule but in the formula put the following:

=$R4=""
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
8,889
Office Version
2007
Platform
Windows
I'm glad to help you. Thanks for the feedback.
 

Forum statistics

Threads
1,082,295
Messages
5,364,362
Members
400,792
Latest member
Dxmiian

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top