I am using a custom function that keeps track of what color a cell is. But there is a problem in that this function does not update itself if the cell color changes.
Cell color:
function GetCellColorCode(input)
{
var ss = SpreadsheetApp.getActiveSpreadsheet();
var cell = ss.getRange(input);
var result = cell.getBackground();
return result
}
Next, I found and add a script that recalculates all the formulas in the table so that they update themselves. I added trigger so that this formula runs every hour.
function refresh() {SpreadsheetApp.flush()}
But my table has 17 pages and thousands of formulas. As a result, everything is updated much slower than I would like.
My question is: can I add something to a custom formula so that it works like a regular google sheets formula and changes immediately if changes occur in the cell?
