View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Random Poster Random Poster is offline
external usenet poster
 
Posts: 3
Default help with IF statement.

"simon" wrote in
:

I've got a simple IF statement that generates some text in a cell.
[...]

=IF(C8=3,"Material must be removed, due to score of three in Box
B","No need to remove")

Lets say for arguments sake, that the cell is A15.
How can I,
A) On logical test 'True' - turn the text in Cell A15 red, but on
logical test 'False' keep it black.

B) On logical test 'True' - turn the background fill in Cell A15
red, but on logical test 'False' keep it white.

(I want either not both - I've not totally decided which I want)

SS






simon,

Conditional formatting will do the trick.

Select A15

On the menu: Format - Conditional Formatting

Change the first drop down from "Cell Value Is" to "Formula Is"

Change the formula to =C8=3

Click the format button to supply the desired format when C8=3


HTH,
RP