ColorTally help
Count and sum one color
- Open your sheet, then Extensions, ColorTally, Open.
- Select the cells to count and click Use selection.
- Click one cell that has the color you want and click Use selection again. Or type a color like
#ffff00. - Click Count and sum this color.
Cell formulas
| Formula | What it does |
|---|---|
=COUNTBYCOLOR(range, color) | Counts non-empty cells with that fill color |
=SUMBYCOLOR(range, color) | Adds up the numbers in cells with that fill color |
=AVERAGEBYCOLOR, =MINBYCOLOR, =MAXBYCOLOR | Average, smallest and largest number |
=COUNTBYFONTCOLOR, =SUMBYFONTCOLOR | The same, matching the text color |
color is a cell that has the color (like D1) or a color code in quotes (like "#ffff00"). The range can be on another tab: 'March'!A2:A50.
Totals that update when colors change
Google Sheets only recalculates when a value changes, not a color. In the sidebar, tick Recalculate when colors change. ColorTally then refreshes its formulas a moment after you recolor a cell. You can also use Extensions, ColorTally, Refresh color totals at any time.
Good to know
- Conditional formatting colors can't be read by add-ons, so only colors set by hand are counted.
- Use one ColorTally function per cell. Wrapping it is fine, like
=ROUND(SUMBYCOLOR(A2:A50, D1), 2).
Questions: hello@curlydogstudios.com