Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i wish to count the number of cells (in a given range) that contain tx
that is the colour red. so far i have been given this code to place i a standard module: Function Color(rngField As Object, intColor As Integer) Dim intCounter As Integer Dim rngAct As Range For Each rngAct In rngField If rngAct.Interior.ColorIndex = intColor Then intCounter = intCounter + 1 End If Next rngAct Color = intCounter End Function but I am now unable to progress any further. Do I have to use th =countif command? if so wot would formular be? Do I have to call upo this function in an excel cell? thanks for any help : -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Countif color | Excel Worksheet Functions | |||
count many with COUNTIF? | Excel Worksheet Functions | |||
countif based on fill color | Excel Worksheet Functions | |||
Can criteria in countif statement be a color? | Excel Worksheet Functions | |||
Countif cell color is Red? | Excel Worksheet Functions |