![](https://i.ytimg.com/vi/OrAvtXI8zVw/hqdefault.jpg)
Microsoft Excel
We achieve this with a simple Excel VBA function. The VBA function has two arguments. One is for color and the other the range that needs to be summed. You can use a similar technique to count cells based on color.
Credit Leila Gharani