Counting Cells With A Specific Color

  • Thread starter gaspard.jouandon
  • Start date
J

John Wilson

gaspard,

That formula is dependent on a custom function that Chip
created so that you could have a formula to count either
text or background colors.

You have to copy and paste Chip's function into a regular
VBA module for the formula to be able to work.

In the formula:
=COUNTBYCOLOR(A1:A10,3,FALSE)
It will return a count of the number of cells within
A1:A10 that have a color index of 3 (Red)
If you were to change the False to True, it would look at
the text color as opposed to the background color.

John
 

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

Top