counting cell that are fomated a particular fill colour

  • Thread starter Thread starter Andrew@rushington
  • Start date Start date
A

Andrew@rushington

Is there a way a "Novice" could count a range of cells and return how many
are filled with red?
 
ok, thay seems to work although i have no experience with VBA i managed it,
but how do i know what colour is what number?
thanks
 
Did you read the section " Returning the ColorIndex of a cell" in the web
page I gave you?
 
yeah i have now, thank for your help.



Stephen said:
Did you read the section " Returning the ColorIndex of a cell" in the web
page I gave you?
 
No VBA or color number required:
Edit > Find > Find what: clear it if filled
Options > Format.. > Choose Format from Cell >
Click any red cell > Find All
The number of cells will appear in the lower left
corner of the Find window.
 
Versions earlier than 2003 do not have this function.

Also, if the cells are colored due to Conditional Formatting it won't work.


Gord Dibben MS Excel MVP
 
Apologies Herbert

I have not used 2002 for a couple of years so I guess I forgot 2002 had that
function.


Gord
 

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