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

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

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 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