Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is it possible to use if statements based on cell formatting?
For example: =if(cell is green,1,0) |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Colour is not possible, you would need some VBA, such as
Function ColorIndex(rng As Range, Optional text as Boolean = False) If text Then ColorIndex = rng.Cells(1,1).Font.ColorIndex Else ColorIndex = rng.Cells(1,1).Interior.ColoRindex End If End Function and in the worksheet use =IF(ColorIndex(A1)=5,1,0) -- --- HTH Bob (change the xxxx to gmail if mailing direct) "Matt" wrote in message ups.com... Is it possible to use if statements based on cell formatting? For example: =if(cell is green,1,0) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Formatting on one cell based on value in another | Excel Worksheet Functions | |||
Formatting the color of a range of cells based on the value of one cell | Excel Worksheet Functions | |||
Formatting a cell based on another cells value | Excel Discussion (Misc queries) | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
GET.CELL | Excel Worksheet Functions |