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

254
Vistas
How to copy all formulas from a row to another?

I'd like to create a new row and then copy all the formulas from the row below to this new row (with relative references, just as if I dragged the formulas manually). My purpose is to copy only the formulas, not the values. I mean, if there is no formula, only a value in the cell below, then the cell above (in the new row) shall be empty. I can have something like this:

spreadsheet.getRange('F3').activate();
  spreadsheet.getActiveRange().autoFill(spreadsheet.getRange('F2:F3'), SpreadsheetApp.AutoFillSeries.DEFAULT_SERIES);
  spreadsheet.getRange('H3').activate();
  spreadsheet.getActiveRange().autoFill(spreadsheet.getRange('H2:H3'), SpreadsheetApp.AutoFillSeries.DEFAULT_SERIES);
  spreadsheet.getRange('L3').activate();
  spreadsheet.getActiveRange().autoFill(spreadsheet.getRange('L2:L3'), SpreadsheetApp.AutoFillSeries.DEFAULT_SERIES);

(As formulas are F3, H3 and L3.)

But there I have to change the code every time I change something in the sheet. So I would need something that directly gets and sets all the formulas but only the formulas. Tried to check getFormulas() and setFormulas() but don't understand how it works.

about 4 years ago · Santiago Gelvez
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