The AblebitsAvgByFontColor function returns the average (arithmetic mean) of numbers in cells with the specified in the argument font color.
Tip. You can find the complete list of custom functions on the
Ablebits functions for Excel page.
Syntax
AblebitsAvgByFontColor(range,color)
The AblebitsAvgByFontColor function syntax has the following arguments:
-
range
Required. The range of cells where you want to find the average value, e.g. B2:B8.
-
color
Required. The font color of cells to calculate the average value. Can be a reference to one cell like B6 or color code like 255.
Note. If a cell range in the first argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.