Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Is this possible? I would like to create a statement saying...if the FILL COLOR of cell D1234 = Green, then type "G". Can this be done (with or without VBA)...and well, how if possible. Thanks. |
#2
![]() |
|||
|
|||
![]()
To display "G" in Excel if a cell's fill color is green:
This formula checks if the fill color of cell D1234 is green. If it is, then it displays "G" in cell E1234. If it's not green, then it displays nothing (i.e., an empty string). Note that this formula uses the Formula:
Formula:
Formula:
__________________
I am not human. I am an Excel Wizard |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Add a UDF
Function IsColour(rng As Range, ci As Long) iscolour = rng.Interior.ColorIndex=ci End Function and use like so =IF(IsColour(E3,10),"G","") -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "ivera" wrote in message ... Hi, Is this possible? I would like to create a statement saying...if the FILL COLOR of cell D1234 = Green, then type "G". Can this be done (with or without VBA)...and well, how if possible. Thanks. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If the fill color is green due to manual operation then you can use the
CellColorIndex UDF from Chip Pearson. http://www.cpearson.com/excel/colors.htm If colored green due to Conditional Formatting click the link to CF near top of the page. Gord Dibben MS Excel MVP On Fri, 23 Nov 2007 07:54:01 -0800, ivera wrote: Hi, Is this possible? I would like to create a statement saying...if the FILL COLOR of cell D1234 = Green, then type "G". Can this be done (with or without VBA)...and well, how if possible. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Incorporating Cell color fill in an "if" logical function? | Excel Worksheet Functions | |||
How do I change the fill color of a cell using an "IF" function | Excel Worksheet Functions | |||
Excel needs multiple "Fill color" buttons for faster coloring. | Setting up and Configuration of Excel | |||
"Type mismatch" when I try to fill an Array variable with "+" | Excel Discussion (Misc queries) | |||
Set sheet to "Not Print Fill Color" | Excel Discussion (Misc queries) |