conditional formatting - problem with text cell value from formula

P

PBcorn

I wish to apply conditional formatting with three conditions based on the
cell value, resulting in three different shading colors. The cells have
formulae with if statements that return "n/a" if one of the referenced cells
contain "n/a" or are blank.

this results in the conditional formatting applying the color for the
condition >0 when the cell value is "n/a" - i want it to leave these alone
(i.e. no color)

please help
 
P

PBcorn

Problem solved - here is the solution:

cond. 1:

formula is =IF(ISBLANK(H9),"",IF(H9<-5%,H9,""))

cond. 2:

formula is =IF(ISBLANK(H9),"",AND(H9>=-5%,H9<=0%))

cond 3:

formula is: =IF(ISBLANK(H9),"",IF(H9>0%,H9,""))

this ignores all cells with text values and all blank cells.
 

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