A,
Nothing in life comes easy<vbg>
Really, it only looks complicated because it is a full solution, not just an
idea or an update of existing code. If you copy the code into a standard
code module, you have a working utility that you can just use and forget
about. You don't need to understand how it works, why it works etc., just
use it. Using it is very simple, once the code is in your workbook, you get
the colour of a cell with
=ColorIndex(A1)
or the colour of the text with
=ColorIndex(A1,True)
To sum a range of cells, just use
=SUMPRODUCT(--(Colorindex(A1:A100)=3)) ' 3 is red
or better still put red in a cell say B2 and use
=SUMPRODUCT(--(Colorindex(A1:A100)=ColorIndedx(B2)))
I wrote the routine specifically to make this oft-requested function easy to
use.