Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

191
Vistas
Google Sheet AppScrip setFormula Syntax error: SyntaxError: missing )

i cant get what im missing with my script (newbie, non-coder, I only get the script in google) here is my script.

GOOGLE SHEET appscript

var ss = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("INVENTORY OUT");
ss.getRange("B2").setFormula("=IFERROR(VLOOKUP(I:I,'get sloc for picklist'!A:B,2,0),"NO STOCKS")");

error message:

Syntax error: SyntaxError: missing ) after argument list line: 52 file: ADD_1.gs

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Solution:

The solution would be to use template literals:

function myFunction() {
  var ss = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet15"); 
  ss.getRange("B2").setFormula(`=IFERROR(VLOOKUP(I:I,'get sloc for picklist'!A:B,2,0),"NO STOCKS")`);
}

In this way everything that is enclosed by the backticks (``) is considered as a type of string.

about 4 years ago · Juan Pablo Isaza Denunciar

0

You cannot use single quotes in your formula definition that is already enclosed in quotes!

ss.getRange("B2").setFormula("=IFERROR(VLOOKUP(I:I,'get sloc for picklist'!A:B,2,0),\"NO STOCKS\")");
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda