PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?TGVl?=
Guest
Posts: n/a
 
      30th Jun 2007
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.
 
Reply With Quote
 
 
 
 
Sandy Mann
Guest
Posts: n/a
 
      30th Jun 2007
Use Conditional Formatting with the the formulas:

=$M$3>=80

and

=$M$3<80

--
HTH

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

(E-Mail Removed)
Replace @mailinator.com with @tiscali.co.uk


"Lee" <(E-Mail Removed)> wrote in message
news:2B8A8C63-E910-4A19-BBC2-(E-Mail Removed)...
>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.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I change color of "active" cell to differentiate from rest devildog97 Microsoft Excel Misc 9 1st May 2008 03:25 PM
How to change text color in a cell "comment" in Office 2007? =?Utf-8?B?Y29uZHVjdG9y?= Microsoft Excel Worksheet Functions 1 2nd Jun 2007 02:50 AM
VBA code to "background-color" a cell obtaining a value from > Row EagleOne Microsoft Excel Misc 1 2nd Aug 2006 05:57 PM
cell to change color =IF(B7>53,"Critical","Normal") =?Utf-8?B?Zmdpb3Jk?= Microsoft Excel Misc 3 18th Aug 2005 09:57 PM
Follow up on: "Change cell background color after executing macro" Tom Microsoft Excel Worksheet Functions 0 4th Jul 2003 06:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:11 AM.