lihatskiy,
а так?
function onEdit(e) {
var sheet = e.source.getActiveSheet();
var idCol = e.range.getColumn();
var idRow = e.range.getRow();
if ( [1, 2, 3, 4, 5].includes(+idCol) && sheet.getName() =='Лист1' ) {
var vartoday = getDate();
sheet.getRange(idRow, 6).setValue( vartoday );
}
}
|