Counting by color

When creating tables, we often use our own markup, e.g. change the cell background color of the data we want to indicate in some way. How to automatically count them later? If we applied a filter or these cells are within a structured table, it is enough to filter the table by color, so that we can use SUBTOTAL function to find out how many cells are colored in a certain way. Can this also be done using COUNTIF?

Naming cells and cell ranges

Although each cell has its own address, so we know how to find the data it contains, sometimes it would be good if we can access the cell using the term that determines its contents more closely. With this purpose, Excel has the ability to designate a cell or group of cells. The names thus created can be used as operands in formulas, function arguments, or to enable us to selectively select a cell or group of cells.