I'm trying to add a formula to a specific cell in my French Excel, but I get an error when I try to run it. Any ideas on what to change?
Just to add, I got this English formula by using the "Inserting an action" button and it automatically translated my formula in French. The selected sheet is already defined without errors.
// Set range C11 on selectedSheet
selectedSheet.getRange("C11").setFormulaLocal("=IFERROR(SORT(FILTER('Sheet number two'!A1:I496,ISNUMBER(SEARCH(R4C4,'Sheet number two'!A1:A496))*ISNUMBER(SEARCH(R5C4,'Sheet number two'!B1:B496))*(IF(F4,'Sheet number two'!C1:C496=\"Modèle1\",FALSE)+IF(G4,'Sheet number two'!C1:C496=\"Modèle2\",FALSE))*ISNUMBER(SEARCH(R6C4,'Sheet number two'!E1:E496))),6,-1),\"Aucun résultat\")");