Custom Functions and Recalculation

The proper way to make that a custom function to recalculate is to change a parameter of it. Regarding the use of NOW() and other similar built-in functions as paremeters of custom functions, from Custom functions in Google Sheets Custom function arguments must be deterministic. That is, built-in spreadsheet functions that return a different result … Read more

To exceed the ImportXML limit on Google Spreadsheet

I created a custom import function that overcomes all limits of IMPORTXML I have a sheet using this in about 800 cells and it works great. It makes use of Google Sheet’s custom scripts (Tools > Script editor…) and searches through content using regex instead of xpath. function importRegex(url, regexInput) { var output=””; var fetchedUrl … Read more

How to evaluate a spreadsheet formula within a custom function?

Spreadsheet functions from Apps-Script Not possible – This has been asked many times. Suggest you check the google-apps-script issue list to see if anything has changed. But last I checked, there is no way to do it, and they have no plan to add it. https://code.google.com/p/google-apps-script-issues/issues/list Ethercalc – java script spreadsheet formulas If you need … Read more

What is the difference between array_udiff_assoc() and array_diff_uassoc()?

They both do the same, but udiff-assoc compares the DATA with the user supplied function, while diff-uassoc compares the INDEX with the user supplied function. As an answer to @lonsesomeday : as indicated by the ‘u’, diff_assoc will use internal functions for all comparisons, and udiff_uassoc uses provided callbacks for index and data comparison. http://www.php.net/manual/en/function.array-diff-uassoc.php … Read more

Custom function throws a “You do not have the permission required to setValue” error

from the documentation : Custom functions return values, but they cannot set values outside the cells they are in. In most circumstances, a custom function in cell A1 cannot modify cell A5. However, if a custom function returns a double array, the results overflow the cell containing the function and fill the cells below and … Read more