Changing Background Color in "IF" statement

  • Thread starter Thread starter Paul Pruchnik
  • Start date Start date
P

Paul Pruchnik

Greetings,

Is there a way to color cell background from within an "IF" statement ?

Thanks,

-Paul
 
Paul

Not without using Conditional Formatting or VBA.

Formulas alone cannot change cell formats.

You can place an "IF" statement in CF "formula is"

Or perhaps just a "cell value is" in CF would suffice.

Gord Dibben Excel MVP
 
Hi Paul,
For help with Conditional Formatting see
http://www.mvps.org/dmcritchie/excel/condfmt.htm

The great part is that the formulas are Worksheet Function
formulas written to provide either True (not zero), or False (zero)
as the result.

You are limited to 3 colors (+ default), so if you need more
you would need to use an Event macro all described or
linked from the above web page.
 
Back
Top