title: Google script error in setFormula when using SUMIF function
body: <p>I'm trying to create a script that will fill in a Google spreadsheet with data including formulas. I can't seem to get it to accept the formula if it uses SUMIF. </p>
  
  <pre class="lang-js prettyprint-override"><code>var ss = SpreadsheetApp.getActiveSpreadsheet();
  var sheet = ss.getSheets()[0];
  var cell = sheet.getRange("D2");
  cell.setForumla('=SUMIF(B25:B, "0*", K25:K)');
  </code></pre>
  
  <p>The last line errors out with: <code>TypeError: Cannot find function setForumla in object Range.</code></p>
  
  <p>I'm just trying to sum column K if the corresponding value in column B begins with 0.</p>
  
  <p>I found a thread that suggested using  <code>\"</code> instead of <code>"</code> around the comparison value but that didn't work either. </p>