TOP

SumByCellColor function

SUMBYCELLCOLOR() Description

Many people use colors to indicate cells. Working with cell colors can make it easier to understand the data in a workbook. Excel .

Unfortunately, Excel does not have built-in functions for using cell colors as conditions in formulas. Building formulas that only count or sum cells of certain colors can get really cumbersome. This often results in complex formulas that are prone to errors when making changes.

The SUMBYCELLCOLOR() function sums the values in cells that have a specific fill color.


Main Features of the SUMBYCELLCOLOR Function

Syntax:

=SUMBYCELLCOLOR(RangeToSum; SampleCell)

Parameters:

Example Usage

The SUMBYCELLCOLOR() function is easy to use. You just need to select the desired range of cells and specify the cell that contains the desired color, and Excel automatically sums cells with the same color:

=SUMBYCELLCOLOR(RangeToSum; SampleCell)

We will have the following result:

SUMBYCELLCOLOR function usage

This example uses the following values:

Do you recognize any of these situations?

Notes on the calculation

Because Excel recalculates the formula only when the value in the cell (which it references) changes, not when the colors change, some formulas on the worksheet do not always trigger to update. In this case, you can use the F9 or Ctrl+Alt+F9 key combination to update the formulas in YLC Utilities.

Download extension

You can use the function SUMBYCELLCOLOR() by installing the extension YLC Utilities .

After that, this function will be available in all files that will be opened in Excel .