Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How do I test a specific color in 2003?
I need to include a color test into If function.
Example: If font text in cell A1 is green, then write "400" (I have more colors to test than 2 so I can't use the CELL function) Thanks in advance. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How do I test a specific color in 2003?
Try this UDF:
Function fontcolor(r As Range) As Integer Application.Volatile fontcolor = r.Font.ColorIndex End Function -- Gary''s Student - gsnu200776 "Sp3ct4tor" wrote: I need to include a color test into If function. Example: If font text in cell A1 is green, then write "400" (I have more colors to test than 2 so I can't use the CELL function) Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need to test for a specific text string and write value to another | Excel Worksheet Functions | |||
Excel 2003 :Summing specific cells of a particular color in a colu | Excel Discussion (Misc queries) | |||
If statement to test font color | Excel Discussion (Misc queries) | |||
Logical Test comparison using cell color | Excel Discussion (Misc queries) | |||
Is there a way to test color formatting in countIF functions? | Excel Worksheet Functions |