![]() In the New Name dialog, please do as below screenshot shown: In this method, we will create a named range with the GET.CELL function, get the color code of cells, and then count or sum by the color code easily in Excel. Note: This method requires the colored cells you will count or sum are in the same column. See screenshot:Īfter filtering, both SUBTOTAL formulas counting and summing all filtered color cells in the Amount column automatically. Click the Filter icon in the header cell of the Amount column, and click Filter by Color and the specified color you will count by successively. Select the header of the table, and click Data > Filter. Note: In both formulas, E2:E20 is the Amount column containing the colored cells, and you can change them as you need.Ģ. ![]() To sum all cells with the same background color, please enter the formula =SUBTOTAL(109, E2:E20).To count all cells with the same background color, please enter the formula =SUBTOTAL(102, E2:E20).Select blank cells to enter the SUBTOTAL function. ![]() In this situation, we can filtered the Amount column by color, and then count or sum filtered colored cells by the SUBTOTAL function easily in Excel.ġ. Supposing we have a fruit sales table as below screenshot shown, and we will count or sum the colored cells in the Amount column.
0 Comments
Leave a Reply. |