Conditional Formatting on empty cells

M

mgccoop

I'm setting up a new report for the month of July and creating formatting
rules for data that will be entered throughout the month. However, when I
apply my rules to cells that have not yet got data entered (eg. for next
week) it is showing up as "formatted" even though the cell is empty. Is
there an override for this conditional formatting so that it the formatting
won't show up until I enter something in that cell? I'm new to Excel 2007.
Thanks,
 
R

Ragdyer

Add an argument to your formulas that tests for that condition.

For example, if you had a formula:

=A1<100

Revise it to:

=And(A1<100,A1<>"")
OR
=And(A1<100,A1>0)
 
M

mgccoop

Thanks,
When using Excel 2007 I'm stuggling how to enter formulae like that. It was
easier to do that within the old conditional formatting process.

However using what you suggested before I was able to fix it by revising it
from:
Cell Value is less than 70
to
Cell Value is between 1 and 70.

Thanks for your help.
 
D

Dave Peterson

In xl2007, you get lots and lots of rules for conditional formatting.

You could make your first rule:
cell value is =""
and stop if true
And make it the format you like.

Or you could modify the formula so that it makes sure that the cell is nonblank.

Say you want to shade A1 if B1 contains a value > 12--but only if A1 has
something in it.

You could use:
formula is:
=AND(B1>12,A1<>"")

===
You may get a better response if you share the formula/rule that you're using.
 
M

mgccoop

My conditions are
Value >90 = red
value <>86-90 = yellow
value <> 75-85 = green
value <> 70-75 = yellow
Value <70 = red

It is the last one that is causing grief as all blank cells are showing as
red. Your example shows an absolute cell reference but if I type in a range
of cells as below I am getting an error message.
=AND($E$38,$E$6:$E$36<70,<>"")

I think I'm close but I'm still missing something.
Thanks,
 
R

Rick Rothstein \(MVP - VB\)

When using Excel 2007 I'm stuggling how to enter formulae like that. It
was easier to do that within the old conditional formatting process.

Select your cells; click on the "Conditional Formatting" button in the
Styles panel on the Home tab; select "Manage Rules" from the popup menu that
appears; click the "New Rules" button on the dialog box that appears; and
select "Use a formula to determine which cells to format"... the remainder
of the process should look familiar.

Rick
 
D

Dave Peterson

I don't know what you want or why you're specifying E6:E36, but maybe one of
these will help you with the syntax:

=AND($E$38<>"",countif($E$6:$E$36,"<70")>1)
=AND($E$38<>"",max($E$6:$E$36<70))
=AND($E$38<>"",min($E$6:$E$36<70))


If these don't help, maybe it's time to describe what you want to check.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top