Conditional Formatting Q

  • Thread starter Thread starter John
  • Start date Start date
J

John

I am trying to put an IF & AND function into Conditional Formating but I am
not getting the required result.

I am trying to express "If D7 = Yes AND D8=0 THEN Change Font in D8 to Red"

How would I express this in Conditional Formatting?


Thanks
 
No need for IF

=AND(D7="Yes",D8=0)

change the condition to formula is.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Good question.
I don't think you can.
I think the IF has to refer to the cell itself.
 
Hi John,

Just write the formula into conditional formatting formula box of Cell
D8
=AND(D7="Yes",D8=0)

and do the formatting as you want


this will do the required thing

thanks

Shail
 
Thanks Bob, I was trying to work the formula as you would a normal cell
formula, leaving the IF in
 
In CF that is not necessary John, as CF just wants a TRUE or a FALSE. In
other words, the IF is implied, the formatting is the action.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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

Back
Top