Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 134
Default How can I return a color instead of a value using the function "if

How can I return a color (fill an specific cell with a color) using the
conditional formula "IF" instead of returning an specific value or both, a
value and a color.

In example, If AB
If false fill the cell in RED and return the value 0
If true fill the cell in GREEN and return the value 1
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default How can I return a color instead of a value using the function "if

Antonio,

Not sure what you want to do, but it sounds like you can use a normal if
statement (=if(xxx,1,0) and use conditional formatting to colour the cell
based on the value in the cell (format - Conditional formatting).

Press the Add button in the Conditional formatting box to add more review
lines, but easier is to have a standard color in normal formatting (ie green)
and only make it red using conditional formatting when the value is equal to
0.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default How can I return a color instead of a value using the function "if

Use conditional formatting. See
http://www.contextures.com/xlCondFormat01.html

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Antonio" wrote in message
...
How can I return a color (fill an specific cell with a color) using the
conditional formula "IF" instead of returning an specific value or both, a
value and a color.

In example, If AB
If false fill the cell in RED and return the value 0
If true fill the cell in GREEN and return the value 1



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
Function to return formula Edward Excel Discussion (Misc queries) 5 January 8th 07 10:28 PM
Using INDEX function to return array row. RBI Excel Worksheet Functions 1 October 4th 06 04:21 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 04:44 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 03:22 AM
Can a function return a Null (blank ) value? Maybe a custom functi colin_e Excel Worksheet Functions 2 March 16th 06 03:36 PM


All times are GMT +1. The time now is 04:01 AM.

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"