Hi,
Can anybody tell me how to count coloured cells in excel,
For example, I have numbers with red and green colour, I just want to count
how many Red coloured cells are there and how many green coloured cells are there?
thanks
Hi,
Can anybody tell me how to count coloured cells in excel,
For example, I have numbers with red and green colour, I just want to count
how many Red coloured cells are there and how many green coloured cells are there?
thanks
Here is a great site to get a function to count colored cells
http://www.cpearson.com/excel/colors.htm
here's a code that will give you a list of the colours and their index numbers
I first found this code at Andrew's Excel tips
http://blog.livedoor.jp/andrewe/arch...at_103343.html
hit Alt f11
insert
module
copy this code into the module
run the macro
test it on a new workbook first so you see what it does first
Sub ShowColorIndex()
On Error Resume Next
Workbooks.Add
Do While ActiveCell.Row < 57
With ActiveCell
.Interior.ColorIndex = .Row
.Offset(, 1) = .Row
.Offset(1).Select
End With
Loop
Cells(1, 1).Select
End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks