View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
enna49 enna49 is offline
external usenet poster
 
Posts: 54
Default Count using Coloured Cells

Hi

I have followed the threads for this and still getting an error "NAME?
Using Excel 2007.
I have cells in B1:B17 with numerous colours. A1 to A7 I have a list
referencing the colour I would like counted. The formula is in Col D. This
is the code I am using.

=SUMPRODUCT(--(ColorIndex(B1:B16)=ColorIndex(A6)))

Thanks