Empty Cells, Spaces, Cond Format?

  • Thread starter Thread starter Ken
  • Start date Start date
K

Ken

Excel 2000 ... I run into this often & usually come up
with work-arounds, but I have decided to ask the wizards
of this board ... What should I do?

I am always having a problem with formulas when I base
them on an empty cell & then I subsequently enter a
formula to the empty cell.

Everything works fine (sample, not actual, below)

Cell A1 = Empty Cell
Cell B1 = Empty Cell
Cell C1 = Formula & Conditional Formatting (based on
Cell B1 being empty)

Now I put a formula in Cell B1 depentent on A1.

Cell B1 formula ... =if(isblank(a1),"",x)

Issue ... the formula in B1 is now causing Conditional
format formula to fail because Cell B1 is no longer a
BLANK cell.

What adjustments should I make to my Cond Formatting
Formulas so they will recognize a Cell containing a
formula (or formula producing a "space" value) the same
way it recognized the cell when it was empty???

Thanks ... Kha
 
Ken,

In your CF formula, use B1="" to check for blank. If your formula in B1
returns "" or if B1 is truly blank, that will always be true.

HTH,
Bernie
MS Excel MVP
 
have you considered using "If(iserror" so you can leave the cell with a
blank value instead of having an error show up?

I do this all the time so columns of totals, averages and standard
deviations do not come up error filled when not all the cells are used
within a range...


example:
IF(ISERROR(A1/B1),"",A1/B1)

Paul
 
you may have to nest the two types together to get your desired effect
(between the 'isblank' and 'iserror', depending upon the mathematical
expressions you are using.

Good luck
Paul
 

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

Similar Threads

refer to the cell as it is empty... 2
Format of cell 1
Format of cell 1
Conditional Formatting 6
Conditional - empty cell 2
Conditional Format 1
Format Painter in Excel 2007 4
excel 2003 formula 3

Back
Top