No, you don't need to change the --, that is meant to be there as is.
But ...
your data in A1:An looks like text to me, so you cannot sum that.
And also colorindex = 3 is red, your cells are not that colour to me, they
look like green and two shades of orange
it doesn't work on conditionally formatted cells.
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
"frustrated" wrote
in message ...
Thanks for this info. But I cant get it to work.
I am using the function SUMPRODUCT(--(ColorIndex(A1:A100)=3),A1:A100)
Do I need to substitute a number for --
Also does this work if cells in the column have a few different colours
--
frustrated
------------------------------------------------------------------------
frustrated's Profile:
http://www.excelforum.com/member.php...o&userid=27778
View this thread: http://www.excelforum.com/showthread...hreadid=493442