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

240
Views
Google Script Editor Function to Retrieve Static Date

I am looking for a way to create a function using script editing within google sheets that would allow me to insert a static timestamp into a cell based on multiple criteria. All I need is a custom function to simply retrieve the current date. I have absolutely no background in script editing and have been struggling to no avail. Can someone provide for me a simple script that would be able to be copied and pasted?

Thank you!!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Here is a script that will set a timestamp on the neighboring cell

function onEdit(event){ 
  var f = event.source.getActiveSheet();
  var r = event.source.getActiveRange();
  if ((r.getColumn() == 2) && (f.getName() == 'mySheet') && (r.getRow() > 2)){ 
    r.offset(0,-1).setValue(new Date());
  }
}
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!