A
A
Ankitony2018-10-30 00:03:22
Working with date/time
Ankitony, 2018-10-30 00:03:22

How to put down the time in the next cell?

Task:
Put down the current time in a neighboring cell when filling in another cell (Google Doc)
When using the formula =IF(A1<>0;now();"wait"), the time is substituted, but when I start filling in other cells in column A, changes throughout the formula column.
How to deal with it? It is necessary that after each filled cell in column A, a new time is entered in the adjacent cell, without affecting the cells with the time above.
5bd774ecb9d4e192718614.png5bd774f015af6396429632.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor L, 2018-10-30
@Fzero0

Look for triggers

function onEdit(e) {
var ss = e.source.getActiveSheet();
  var r = e.source.getActiveRange();
  r.setComment("Изменено: " + Utilities.formatDate(new Date(), "GMT+3", "dd-MM-yyyy HH:mm:ss"));
}

5bd80d804a005397094679.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question