TOP

Function SumByCellColor

SUMBYCELLCOLOR() Description

Many people use colors to mark cells. Working with cell colors can facilitate understanding data in the workbook Excel (Calc).

Unfortunately, Excel (Calc) 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 become truly cumbersome. This often leads to complex formulas that are prone to errors when making changes.

The SUMBYCELLCOLOR() function sums values in cells that have a certain 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 containing the required color, and Excel (Calc) will automatically sum cells with the same color:

=SUMBYCELLCOLOR(RangeToSum; SampleCell)

We will get the following result:

Example of using the SUMBYCELLCOLOR() function
Example of using the SUMBYCELLCOLOR() function

In this example, the following values are used:

Do you recognize any of these situations?

Calculation Notes

Since Excel (Calc) recalculates a formula only if the value in a cell (to which it refers) changes, and not when colors change, some formulas on the sheet do not always run to update. In this case, you can use the F9 or Ctrl+Alt+F9 key combination to update 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 (LibreOffice Calc).


This function is available in the following extensions: YLC LightYLC FunctionsYLC Utilities

The YLC Utilities menu in LO Calc

The YLC Utilities menu in LO Calc

The YLC Utilities menu in Excel

The YLC Utilities menu in Excel