LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Counting cell colours

ryguy

You posted the correct URL for Chip's site but did not read the site
introduction info before posting.

NOTE: These functions will not detect colors that are applied by Conditional
Formatting. They will read only the default colors of the cell and its text.
For information about returning colors in effect by conditional formatting, see
the Conditional Formatting Colors page.

See Chip's site and hit the link for more info and methods.

http://www.cpearson.com/excel/CFColors.htm


Gord Dibben MS Excel MVP


On Mon, 12 Nov 2007 18:25:00 -0800, ryguy7272
wrote:

Take a look at this:
(Counting Cells With A Specific Color)
http://www.cpearson.com/excel/colors.htm


You could try this macro too:
Sub countcolor()
Dim rng As Range
Dim cnt As Long

Set rng = Range("A1:E12")
cnt = 0

For Each cell In rng
If cell.Interior.ColorIndex = 3 Then
cnt = cnt + 1
End If
Next
MsgBox cnt
Range("G1").Value = cnt
End Sub



Regards,
Ryan--


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting colours robo Excel Worksheet Functions 2 August 5th 07 07:43 PM
Counting colours robo Excel Discussion (Misc queries) 1 August 5th 07 06:39 PM
Cell Colours jmc Excel Discussion (Misc queries) 1 June 16th 07 03:06 PM
Count If on colours in a cell? Jelinek Excel Discussion (Misc queries) 2 May 11th 06 11:35 AM
Excel 2003 font colours and cell colours bretta Excel Discussion (Misc queries) 1 April 17th 05 03:45 AM


All times are GMT +1. The time now is 04:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"