Is there any way to count the number of colored cells? For example, I need to flag a record when it has 1 red cell or 3 yellow cells.
I am including data example.
Thanks, Mary-Lou
Is there any way to count the number of colored cells? For example, I need to flag a record when it has 1 red cell or 3 yellow cells.
I am including data example.
Thanks, Mary-Lou
Hi,
I think you'll find an answer here.....
http://www.ozgrid.com/Excel/count-sum-cell-color.htm
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
Thanks, this is cool.
However, I tried this out, but it doesn't appear to work with cells that are color-filled by conditional formatting.
I tried it out by manually filling the cells with color and it worked ok, but how do I get around the conditional formatting? Any ideas?
Mary-Lou
Does this link help?
http://www.xldynamic.com/source/xld.ColourCounter.html
oldchippy
-------------
Blessed are those who can give without remembering and take without forgetting
If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
Good evening mlk
I don't thinkOldChippy's link will give you what you want. It is extremely difficult to identify a cells colour that has been conditionally formatted, as the ColorIndex (Excel's colour identifying number) remains unchanged - you have to attempt to detect the condition and work from there. You might want to look at Chip Pearson's pages for a solution :
http://www.cpearson.com/excel/CFColors.htm
HTH
DominicB
Please familiarise yourself with the rules before posting. You can find them here.
Hi dominicb, that's exactly what I'm looking for! Thanks so much for your help!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks