Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

200
Views
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 answers
Answer question

0

use offset instead of getRange

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

about 4 years ago · Juan Pablo Isaza Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!