Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

Nowadays you cannot. Here is a workaround: http://www.google.com/support/forum/p/apps-script/thread?tid=21b61c4c5bf9e27c&hl=en

share|improve this answer
The link is no longer valid, so I'll downvote – Max L. Nov 7 '14 at 19:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.