total of colored rows

  • Thread starter Thread starter cpliu
  • Start date Start date
C

cpliu

How can I calculate the total number of rows in a specific color (eg.
yellow)? I'm trying to use "Countif" or "sumproduct" but I don't know how
to indicate color?


Thanks,

cpliu
 
Frank,
Thanks for the helpful links. I tried =SUMPRODUCT(--(ColorIndex(A1:A100)=
3)) on my file and a new file, but I got #NAME? (Invalid name error??) both
times. What did I do wrong?

thanks,

cpliu
 
Hi
you also have to insert the UDF 'Colorindex' in one of your standard
modules. This only works with VBA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top