Cellhue

Help

Cellhue adds color formulas and a sidebar to Google Sheets. After you install it, find it under Extensions → Cellhue.

Formulas

Type them in any cell, like any other formula.

FunctionWhat it returnsPlan
SUMBYCOLOR(range, color)Sum of numbers whose fill color matchesFree
COUNTBYCOLOR(range, color)Number of cells whose fill color matchesFree
AVERAGEBYCOLOR(range, color)Average of numbers whose fill color matchesFree
SUMBYFONTCOLOR(range, color)Sum of numbers whose font color matchesPro
COUNTBYFONTCOLOR(range, color)Number of cells whose font color matchesPro

Examples:

=SUMBYCOLOR(A2:A50, "#ff0000")
=COUNTBYCOLOR(B2:F100, "#00ff00")
=AVERAGEBYCOLOR(A2:A50, C1)
=SUMBYFONTCOLOR(A2:A50, "#0000ff")
=COUNTBYFONTCOLOR(A:A, "#ff0000")

Choosing the color

The second argument can be:

If the color code is not valid, the cell shows Cellhue: invalid color, use a cell or "#rrggbb". Color names like "red" are not supported.

  1. Open Extensions → Cellhue → Open sidebar.
  2. Choose Fill color or Font color (font color is Pro).
  3. Select a range in the sheet and click Analyze selection. You see every color in the range with its cell count, sum and average.
  4. To keep a result in the sheet, click a color in the list, pick Sum, Count or Average, click an empty cell outside the range, then click Insert formula. Cellhue writes a formula with the color code, for example =SUMBYCOLOR(A1:A20, "#ff0000", CELLHUE_REFRESH).

Refresh and auto-refresh

Google Sheets does not recalculate a formula when only a color changes. Cellhue updates its formulas in these ways:

To refresh, Cellhue keeps a small hidden sheet named _cellhue with the named range CELLHUE_REFRESH. Please do not delete it.

Free limit

On the Free plan, a formula range or a sidebar selection can have up to 1,000 cells. Larger ranges show Cellhue Free: up to 1000 cells. Pro removes the limit. Whole-column ranges like A:A count only down to the last row with data.

Activating Pro

  1. Buy Pro: BUY_URL. Use the email of the Google account you work in Google Sheets with.
  2. You receive a license key like XXXX-XXXX-XXXX-XXXX.
  3. In Google Sheets open Extensions → Cellhue → Enter license key and paste the key. You can also paste it in the Pro box in the sidebar and click Activate.

The key works only for the Google account email it was made for. If you see "This key does not match", you are signed in to Sheets with a different account.

Known limitations

Contact

Questions or problems: idiosgamecorporation@gmail.com