help with IF statement.

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

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
 
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
 
You can accomplish this by using a conditional format (short cut keys
ALT O D). Use the "formula is" option, not the "cell value is". be
sure to be in the cell or have highlighted the cells you want to
conditionally format first, then define the conditional format for that
cell or cells. In the blank box type "= True". then choose the format
you want for text and cell. Once you have defined a cell with a
conditional format, you can copy and paste special format to another
cell.

Hope this helps.

Sean
 
You could use Conditional Formatting. The text in cell A15 changes depending
on the value in C8, so setup the conditional formatting so that Condition
1>Formula Is =C8=3 then click the format button and choose either the text
color or pattern color (or both - say white on red)
 

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