Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2007

Tip: Looking for answers? Try searching our database.

change background color of a cell with an "IF" command?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lee - 30 Jun 2007 19:28 GMT
I have a command using the IF function that is as follows:
=IF(M3>=80,"YES","NO")

I would like to be able to add a green background if the YES condition is
met and a RED background if the NO condition is met.  is there a line of code
that will do this.
Sandy Mann - 30 Jun 2007 19:41 GMT
Use Conditional Formatting with the the formulas:

=$M$3>=80

and

=$M$3<80

Signature

HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

sandymann2@mailinator.com
Replace @mailinator.com with @tiscali.co.uk

>I have a command using the IF function that is as follows:
> =IF(M3>=80,"YES","NO")
[quoted text clipped - 3 lines]
> code
> that will do this.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.