Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default help with IF statement.

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
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
  #3   Report Post  
Posted to microsoft.public.excel.programming
SWT SWT is offline
external usenet poster
 
Posts: 8
Default help with IF statement.

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default help with IF statement.

In either case, look at Format=conditional formatting

--
Regards,
Tom Ogilvy


"simon" wrote in message
...
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




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 222
Default help with IF statement.

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
1Formula Is =C8=3 then click the format button and choose either the text
color or pattern color (or both - say white on red)

"simon" wrote:

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



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
Vlookup, if statement, maybe an and statement Jennifer Excel Discussion (Misc queries) 1 February 26th 10 03:30 AM
IF statement inside a SUMIF statement.... or alternative method Sungibungi Excel Worksheet Functions 3 December 4th 09 06:22 PM
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 09:07 PM
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM


All times are GMT +1. The time now is 07:17 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"