Is there any way to count cells in a single column that have a fill format? Like sum all yellow cells in column A...
Is there any way to count cells in a single column that have a fill format? Like sum all yellow cells in column A...
Set C1 to the color you want to sum. Then use this: =ColorFunction($C$1,$A$1:$A$12,TRUE).
Let me know if it works.
Alternately, have a look at this web site: http://www.cpearson.com/excel/colors.aspx
Last edited by roki4; 06-05-2012 at 02:07 PM.
B.Econ, CFA
doesn't work roki4, I'm getting #NAME? error
Yes, I have also tried =SUMPRODUCT(--(ColorIndex(A1:A100)=3)), but the same result: #NAME? error...
Color is not data.
Excel has no functionality to sum our count by color.
It can filter by colour, though, but in general this is the backwards approach. Use a column to define a parameter. Then use conditional formatting based on the parameter. The color is for visual effect only. You can easily use Sumif() or Countif() to sum or count the parameters.
ColorFunction is not a native excel function,it looks like a custom udf.
what you can do is filter by colour then use the subtotal() function to count the filtered cells either the count or counta option within subtotal. if you are counting coloured cells that are blank tho' use a helper column just fill it to the end of your data with 1 then you can subtotal count that when you've filtered it.
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Beauuutiful!
Many thanks!
oh here is a example
Thanks a million martindwilson, it works though I wish excel had that ability with a simple function, but for now this will do, thanks again
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks