Cell's math by format

Use this gainful tool to search all cells in a specific range with a particular background color and to do some math with the results.
The following database will be used to explain the way this advantageous tool works (link to the database)
These are the steps:
If you wish, include the active cell in the target range, so that the cells surrounding the active cell become the target range.

Observation:

Excel doesn't allow to create formulas that contains too many characters.
If the operation's result, that you executed, thrown excessive characters, then Cell's math by format will inform you, and it, optionally, let you to paste the results of your operation, but only as values. This is a good alternative.