#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default IF Statement

Is there anyway to have an IF statement return a value that turns the text in
the cell a different colour or font?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default IF Statement


lindzymc;197116 Wrote:
Is there anyway to have an IF statement return a value that turns the
text in
the cell a different colour or font?


I really don't think so without VBA


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload -faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=54303

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default IF Statement

Hi,

yes you can do that. Consider this formula in cell A24

=IF(A1="Yes","Correct","Incorrect")

Now apply this conditional format to A24

Format|Conditional format - formula is and enter the formula

=$A$24="Incorrect"

Pick a font colur os (say) red and if the formula evaluates as Incorrect
then the text turns red.

Mike



"lindzymc" wrote:

Is there anyway to have an IF statement return a value that turns the text in
the cell a different colour or font?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default IF Statement

No - functions return values to their calling cells but can't change
formatting.

However, you can use Conditional Formatting to change formats based on
the contents of the cell (including results of formulae).

Take a look at Conditional Formatting in XL Help.



In article ,
lindzymc wrote:

Is there anyway to have an IF statement return a value that turns the text in
the cell a different colour or font?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default IF Statement

Use the IF statement in the FORMULA IS option of CONDITIONAL FORMATTING which
allows you to choose the Formatting of the cells based on upto three
differenct conditions (upto Excel 2003, no limit in Excel 2007)

"lindzymc" wrote:

Is there anyway to have an IF statement return a value that turns the text in
the cell a different colour or font?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default IF Statement

Not from an IF formula, but from conditional formatting. Look it up in
Excel help.
--
David Biddulph

"lindzymc" wrote in message
...
Is there anyway to have an IF statement return a value that turns the text
in
the cell a different colour or font?



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
If statement or lookup statement not sure Renegade40 Excel Worksheet Functions 2 January 18th 09 06:11 AM
Sum if statement with a left statement Eric D Excel Discussion (Misc queries) 4 July 23rd 08 05:31 PM
SUMIF statement with AND statement Eric D Excel Discussion (Misc queries) 2 July 14th 08 07:24 PM
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
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 08:47 PM.

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

About Us

"It's about Microsoft Excel"