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

208
Vistas
Timestamp when value of cell changes

I'm creating a google sheet app script that will log the timestamp to another row (Column 40) upon editing of other cell value (column 3). This is what I have so far

enter image description here

It works, however, whenever I paste values to column 3 with a range of more than 1 cell, the script is just updating the 1st row. Result is something like this.

enter image description here

Appreciate any help.

Thanks in advance.

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

0

use offset instead of getRange

e.range.offset(0,38-col).setValue(currentDate)

about 4 years ago · Juan Pablo Isaza Denunciar

0

Have you tried the alert dialog?

SpreadsheetApp.getUi().alert('row = ' + row + '\ncol = '+ col)

You can use it to debug your code. As you posted an image, I used it show where to insert this line and see what exactly are the values of your variables 'row' and 'col'.

same image of the question with red mark where to insert code

Documentation: https://developers.google.com/apps-script/reference/base/ui#alert(String)

Hope it helps.

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