Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Color in Cell

Based upon an if statement how can I tell the cell value to display in
different font color.

Example: =if(A1=1,{display cell A1 in green},{display A1 in red})

Thanks in advance for any help,
Mike


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Color in Cell

You can use conditional formatting

Check out this great website Michael
http://www.contextures.com/xlCondFormat01.html

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Michael Kintner" wrote in message ...
Based upon an if statement how can I tell the cell value to display in
different font color.

Example: =if(A1=1,{display cell A1 in green},{display A1 in red})

Thanks in advance for any help,
Mike




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Color in Cell

Hi Mike,
If I understand you correctly, you can use normal cell formatting
for that. Of course Conditional Formatting would override
color if you used both.

Format, cells, custom
[Green][=1]"Yes";[Red]"No";[Red]"No";@

[Green][=1]General;[Red]General;[Red]General;@
shows number as green for 1, red for other numbers, black for text

In the US the list separator in Regional Settings is a semi-colon
and the thousands separator is a comma.

Regular Cell Formatting some examples
http://www.mvps.org/dmcritchie/excel...htm#cellformat

Conditional Formatting
http://www.mvps.org/dmcritchie/excel/condfmt.htm


--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Ron de Bruin" wrote ...
You can use conditional formatting
Check out this great website Michael
http://www.contextures.com/xlCondFormat01.html

"Michael Kintner" wrote ...
Based upon an if statement how can I tell the cell value to display in
different font color.

Example: =if(A1=1,{display cell A1 in green},{display A1 in 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
Can't format cell color/text color in Office Excel 2003 in fil Tony S Excel Discussion (Misc queries) 1 December 21st 07 01:41 PM
Make text color match cell color with macro? JoeSpareBedroom Excel Discussion (Misc queries) 1 June 26th 07 07:09 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
Can't format cell color/text color in Office Excel 2003 in files . albertaman Excel Discussion (Misc queries) 0 February 16th 06 03:56 AM
Default Border, Font Color, and Cell Background Color Elijah Excel Discussion (Misc queries) 1 October 28th 05 04:10 PM


All times are GMT +1. The time now is 09:37 AM.

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"