Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Sam Sam is offline
external usenet poster
 
Posts: 699
Default If statement and cell format

I have a the following formula in A1 cell =if(Logic_test, A2,A3).
In A2 I have "increase" in red font and in A3 I have "Decrease" in blue
font. But when the value printed in A1 it is black no matter what. How can I
make the format (mainly color of the font) of A1 to be same as A2 or A3?

<redincrease</red
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default If statement and cell format

By adding two conditional formats
With A3 selected use: Format | Conditional Format
"Cell value is" - "Equal to " - "Increase" ----- and set the font colour
Now add the second
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Sam" wrote in message
...
I have a the following formula in A1 cell =if(Logic_test, A2,A3).
In A2 I have "increase" in red font and in A3 I have "Decrease" in blue
font. But when the value printed in A1 it is black no matter what. How can
I
make the format (mainly color of the font) of A1 to be same as A2 or A3?

<redincrease</red



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default If statement and cell format

Take a look at XL Help's "Conditional Formatting" topic.

In article ,
Sam wrote:

I have a the following formula in A1 cell =if(Logic_test, A2,A3).
In A2 I have "increase" in red font and in A3 I have "Decrease" in blue
font. But when the value printed in A1 it is black no matter what. How can I
make the format (mainly color of the font) of A1 to be same as A2 or A3?

<redincrease</red

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default If statement and cell format

You can't control the format with formulas.

However, you can use "Conditional Formatting" on the cells containing such
types of formulas, to change the cells format. depending on the return of
the formula.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Sam" wrote in message
...
I have a the following formula in A1 cell =if(Logic_test, A2,A3).
In A2 I have "increase" in red font and in A3 I have "Decrease" in blue
font. But when the value printed in A1 it is black no matter what. How can I
make the format (mainly color of the font) of A1 to be same as A2 or A3?

<redincrease</red


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
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
if statement format cell Jane Excel Worksheet Functions 2 May 9th 06 11:15 AM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Not sure how to format this if statement jimar Excel Discussion (Misc queries) 2 March 24th 06 10:36 AM
Put an if statement according to cell format Melkett Excel Worksheet Functions 1 August 31st 05 06:07 PM


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