Solved

Set up conditional formatting so that it goes orange within two cells of a zero entry

Posted on 2016-10-05
4
28 Views
Last Modified: 2016-10-07
How can I apply conditional formatting to a sheet so that within 2 cells of it showing zero it goes orange. See desired effect attached sheet.
Thank you :-)
EE-CF-within-distance-of-blank-cell.xlsx
0
Comment
Question by:agwalsh
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
Comment Utility
Select the entire range from C5:N7, then go to Home|Conditional Formatting|New Rule

Select "use a formula to determine which cells to format" and enter formula:

=AND(C5<>0,OR(E5=0,D5=0))

Then click Format and choose from Fill tab.
1
 
LVL 10

Expert Comment

by:Ray
Comment Utility
The above solves it if you mean within two to the RIGHT.  If you mean within two cells left or right, you need a couple more "OR" items :-)

Great answer from NBVC though!
0
 

Author Comment

by:agwalsh
Comment Utility
@nbvc. That works well although I just had to tweak the formula to read as follows..(allowing for the different cells I put it into...). Thank you :-)
=AND($F4<>0,OR(G$4=0,H$4=0))
0
 

Author Closing Comment

by:agwalsh
Comment Utility
Had to tweak it a tiny bit but worked beautifully :-)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now