Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

201
Visualizações
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 Respostas
Responde à pergunta

0

use offset instead of getRange

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

about 4 years ago · Juan Pablo Isaza Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda