AblebitsSumByColor function

The AblebitsSumByColor function adds values in cells with the specified in the argument background color.

For example:

  • =AblebitsSumByColor(C3:I9,N22) Adds the values in cells C3:I9 that have the same background color as N22.
  • =AblebitsSumByColor(C3:I9,255) Adds the values in cells C3:I9 that have the background color of 255 color code.
Note. Formulas created with this function will work only on machines with installed Ultimate Suite for Excel. If the workbook is opened on another computer where Ultimate Suite is not installed, the result will be lost.
Tip. You can find the complete list of custom functions on the Ablebits functions for Excel page.

Syntax

AblebitsSumByColor(range,color)

The AblebitsSumByColor function syntax has the following arguments:

  • range
    Required. The range of cells you want to add, e.g. B2:B8.
  • color
    Required. The background color of cells that should be summed. Can be a reference to one cell like B6 or color code like 255.
Note. The range can refer to a variety of different types of data, but only numbers are calculated.

Remarks

  • The AblebitsSumByColor function is used by the Count and Sum by Color add-in when you check the Insert result as formula box before pasting the result.
  • If you want to get the color code of the background color of a cell, you can use the AblebitsGetCellColor function.
  • Multiple ranges are not supported.
  • The function does not work for conditionally formatted cells and for ranges formatted as tables with colored alternate rows or columns.

Please contact us here

Our working hours:
Pacific Time (PT) 11:00 PM (previous day) – 2:00 PM
Central European Time (CET) 08:00 - 23:00
Eastern Time (ET) 2:00 AM – 5:00 PM
Central Time (CT) 1:00 AM – 4:00 PM
Pacific Time (PT) 11:00 PM (previous day) – 2:00 PM
Australian Eastern Daylight Time (AEDT) 6:00 PM – 9:00 AM (next day)
If you want to attach files (e.g. screenshots or log files), it will be possible right after you send this form and we automatically create a support ticket for you.