I want something essentially like this:function contains(arg1, arg2) {  return NOT(ISERROR(search(arg1, arg2)));}But NOT and ISERROR are undefined even though using =ISERROR(...) works in the spreadsheet view.How do I build custom formulas that can reference and combine existing formulas?
How do I reference existing formulas from custom formulas in Google Spreadsheet Scripts?
google drive;google apps;google spreadsheets;javascript
Nowadays you cannot. Here is a workaround: http://www.google.com/support/forum/p/apps-script/thread?tid=21b61c4c5bf9e27c&hl=en