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
 
Hi
not with a formula. But use 'Format - Conditional Format' for this
 
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.
 

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