ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do i change font colors for different results in the same cel. (https://www.excelbanter.com/excel-worksheet-functions/159883-how-do-i-change-font-colors-different-results-same-cel.html)

kashof September 27th 07 07:46 AM

How do i change font colors for different results in the same cel.
 
for Expl:im using an IF formula: IF(Sum(E6:E15)100,TRUE,FALSE)
i want True value to be shown in same cell in Blue while False to be shown
in Red in same cell.can it be done???

JE McGimpsey September 27th 07 07:54 AM

How do i change font colors for different results in the same cel.
 
Take a look at Conditional Formatting in XL Help.

In article ,
kashof wrote:

for Expl:im using an IF formula: IF(Sum(E6:E15)100,TRUE,FALSE)
i want True value to be shown in same cell in Blue while False to be shown
in Red in same cell.can it be done???


RagDyeR September 27th 07 08:05 AM

How do i change font colors for different results in the same cel.
 
Say the cell you want to conditionally format is E1.

In E1, enter this formula:

=Sum(E6:E15)100

AND format E1 to a pattern of RED.

NOW, select E1 and from the menu bar:
<Format <Conditional Format
Change "Cell Value Is" to "Formula Is",
And enter the *same* formula in the right window:
=Sum(E6:E15)100

Click on "Format",
And set the pattern color to BLUE,
Then <OK out.

E1 will now be RED, and display FALSE until the values in E6 to E15 are
greater then 100, which will change the display in E1 to TRUE, and change
the color to BLUE.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"kashof" wrote in message
...
for Expl:im using an IF formula: IF(Sum(E6:E15)100,TRUE,FALSE)
i want True value to be shown in same cell in Blue while False to be shown
in Red in same cell.can it be done???



David Biddulph[_2_] September 27th 07 08:13 AM

How do i change font colors for different results in the same cel.
 
Yes. Look up conditional formatting in Excel help. Note that you'll need
the option for "Formula is" rather than "Cell Value is". Note also that you
need to be careful that Excel doesn't try to change the formula for you.
Start the formula with an = sign or else it'll probably start throwing quote
marks around. If you are using the formula across a range of cells you need
to be careful about the distinction between relative and absolute
addressing. When you've completed your conditional formatting, go back in
to make sure Excel hasn't changed it for you and that it's left you with the
formula you want.
It sounds like you need =Sum(E6:E15)100 for Blue and =Sum(E6:E15)<=100 for
Red
--
David Biddulph

"kashof" wrote in message
...
for Expl:im using an IF formula: IF(Sum(E6:E15)100,TRUE,FALSE)
i want True value to be shown in same cell in Blue while False to be shown
in Red in same cell.can it be done???





All times are GMT +1. The time now is 05:42 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
ExcelBanter.com