Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mark
 
Posts: n/a
Default adding color to the results of IF statements

I am trying to make an IF statement results have different colored cells
depending on their outcome. For instance, if A=B, I want the cell to say "GO"
with green fill around it. If A does not =B, I want the cell to say "STOP"
with red fill aound it. How can I do this?
  #2   Report Post  
zackb
 
Posts: n/a
Default

In a seperate cell, enter your formulas ...

=IF(A1="B","GO","STOP")

Then select this cell, goto Format (menu) | Conditional Formatting | Formula
Is ...

=B1="GO"

Format condition to Green, confirm with the Ok button. Now set the regular
format of the cell to a background color of Red. Btw, this also assumes
that you entered this in cell B1; if not, change the B1 in the Conditional
Format formula to match that of the cell address you are inputing it on.

--
Regards,
Zack Barresse, aka firefytr


"Mark" wrote in message
...
I am trying to make an IF statement results have different colored cells
depending on their outcome. For instance, if A=B, I want the cell to say
"GO"
with green fill around it. If A does not =B, I want the cell to say "STOP"
with red fill aound it. How can I do this?



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

You need conditional formatting.

Look up 'Highlight cells that meet specific conditions' in the Answer
wizard in help


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mark" wrote in message
...
I am trying to make an IF statement results have different colored cells
depending on their outcome. For instance, if A=B, I want the cell to say

"GO"
with green fill around it. If A does not =B, I want the cell to say "STOP"
with red fill aound it. How can I do this?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM
Adding True False Results Arla M Excel Worksheet Functions 6 January 27th 05 06:29 PM
Unresolved Errors in IF Statements - Errors do not show in results Markthepain Excel Worksheet Functions 2 December 3rd 04 08:49 AM
adding if statement results Robb27 Excel Worksheet Functions 3 November 20th 04 05:27 AM
?odd results for =left(F#,2) Steven Stadelhofer Excel Worksheet Functions 1 November 4th 04 09:54 PM


All times are GMT +1. The time now is 01:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"