Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to build a spreadsheet containing cells with 4 different
background colors. Red, yellow, green, and white. I want to graph the results of the spreadsheet based on background color for each cell. I extracted the following formula via another discussion but do not know how to use it (call it or invoke it). Function BackColour(r As Range) Select Case r.Interior.ColorIndex Case Is = 6 'Yellow BackColour = 1 Case Is = 4 'Green BackColour = 2 Case Is = 3 'red BackColour = 3 Case Else BackColour = "Not Defined" End Select End Function Can someone tell me how to apply this and use the calculated results in a graph? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I invoke formula pattern copying? | Excel Worksheet Functions | |||
text in a cell invoke constant date in another cell - how | Excel Discussion (Misc queries) | |||
HELP: Setting CNTL-SHIFT-F to invoke Excel2007 macro | Excel Discussion (Misc queries) | |||
Call Center Management: How to calculate 'cost per call' | Excel Discussion (Misc queries) | |||
add data to combo box in excel then invoke macro | Excel Worksheet Functions |