I get parsing error after i use setFormula. i try spreadsheetApp.flush();
and leave out the last bracket in the formula but i still get the error.
the formula is in german but it isnt wrong, if i edit it after i run the code with out the last bracket and press enter in the cell the formula is working
for (i=1; i<50; i++)
{
var k=i+1
var formula = "=WENN(ISTFEHLER(SVERWEIS(C"+k+"&\"10\";Bonus!$P$2:$Q$595;1;FALSCH));\" \";\"Rare\")"
Sheet.getRange(i+1,26).setFormula(formula);
}